Marc Poulhiès
aee94f61e7
change DRV8825 mode pins
...
for easier routing, mode pins have swapped.
5 years ago
Marc Poulhiès
9b88cdcb43
refresh config code for stepper direction
5 years ago
Marc Poulhiès
fa2ee719c0
change microstepping config and rotation freq
...
microstepping 2->16
freq: 0.5Hz -> 5Hz
5 years ago
Marc Poulhiès
fa1260305c
code cleaning + add startup state
...
remove unused code, add startup state.
5 years ago
Marc Poulhiès
1f0424d8b6
add weak debug routines + better state change traces
5 years ago
Marc Poulhiès
98a85ba9f6
control automata basics
...
start in IDLE.
IDLE :: 1 press => RUN ; 2 press => RESET
RUN :: 1 press => IDLE
RESET :: end_stop => IDLE
Stepper direction can be changed.
Stepper microstepping can be changed.
Some debug print used.
5 years ago
Marc Poulhiès
e603f80c2c
ask emacs to use c++ mode for the .ino
5 years ago
Marc Poulhiès
8999c3ff2f
Add simple debug routine
5 years ago
Marc Poulhiès
3378960dc5
some cleaning + initial code for reset position
...
remove dead code commented out
initial routine for reseting position on long press
5 years ago
Marc Poulhiès
fa1cce253b
fix angle compute + use millis
5 years ago
Marc Poulhiès
037bfdb820
rework float computation
...
looks like the arduino float is not a good fit for this one: results are
diverging after few seconds. Fallback to some hardcoded numerical
values.
known problem: timer does not tick periodically
5 years ago
Marc Poulhiès
fa4247f5ac
initial work for computing rotation
5 years ago
Marc Poulhiès
3bc62a462c
use StepperDriver lib
5 years ago
Marc Poulhiès
1e0fe2f077
use timer1 and use makefile
...
use timer1 (initial code)
use makefile instead of arduino IDE.
5 years ago