Commit Graph

15 Commits

Author SHA1 Message Date
Hakan Bastedt
e641fd04b7 First component placement 2024-01-25 00:27:56 +01:00
Hakan Bastedt
e7fc20fec5 micros() in irq is suspicous. Some optomization of stepper parameters. Comments. 2024-01-23 22:40:15 +01:00
Hakan Bastedt
b534e3d4da Kludge with 'tone' of steppers. Gives ferror, but nice tone 2024-01-21 23:29:59 +01:00
Hakan Bastedt
1f97534133 New pwmCycleTime different from sync0CycleTime 2024-01-20 12:37:42 +01:00
Hakan Bastedt
9e311038c1 TIM8 replaced with TIM3. TIM3,chan4 works on PC9. TIM8,chan4 should work but doesn't. How should one know? 2024-01-18 17:21:12 +01:00
Hakan Bastedt
9ab4afabe4 New enable input. Add dc ability. Set only SM2 synchronization. Various to make lathe work 2024-01-18 14:26:51 +01:00
Hakan Bastedt
760944afe5 Various improvements. New pdo variable stepsPerMM. 2024-01-17 00:24:17 +01:00
Hakan Bastedt
044e8fd2c5 Removed unnecessary condition in timerCB, was aleady test on ´steps´ 2024-01-15 23:10:25 +01:00
Hakan Bastedt
697ea19dae Bug, digitalWrite of stepPin should be dirPin in timerCB. Reshuffling 2024-01-15 23:07:46 +01:00
Hakan Bastedt
20ca9d4974 Maybe works better now. Using G0 can not provoke the scrape sound. Jogging for a long while can provoke still. 2024-01-15 21:12:23 +01:00
Hakan Bastedt
c6857d0be2 Still problem with overlapping cycles in stepgen. TIM8 works for stepgen now. 2024-01-15 20:21:14 +01:00
Hakan Bastedt
5df911296c sync0CycleTime static member of StepGen 2024-01-11 10:54:13 +01:00
Hakan Bastedt
f8fc5fccd6 Max step-rate introduced - solves initial step storm 2024-01-10 20:08:30 +01:00
Hakan Bastedt
f6abd73c58 Split class into cpp and h file. Works at commands, but initial isn't ok 2024-01-10 18:59:16 +01:00
Hakan Bastedt
c5a95074dc Moved stepper into C++ class. Seems to work. Basic 2024-01-10 18:44:58 +01:00