Marc Poulhiès
4e83a04ded
arduino: smoother movements
...
increase microstep, reduce lib's RPM and increase freq
4 years ago
Marc Poulhiès
1d7cb64b47
cleanup + more helpfull debug trace
5 years ago
Marc Poulhiès
fd22a57289
new debug level, change timer arith
...
Use a 'moderate' debug level: can have impact on behavior, but is
still human readable without buffer.
Use unsigned arith for timer handling and check for underflow.
5 years ago
Marc Poulhiès
8d34196a15
use same time measure for whole function
...
should have minor impact, but use same time value for all computation.
5 years ago
Marc Poulhiès
ef7f551ca4
disable button 2 and 3
...
not yet used and leftover setup conflicts with mode pin for stepper driver.
5 years ago
Marc Poulhiès
b677f2a5bf
code cleanup and better trace output.
5 years ago
Marc Poulhiès
f8be4ab2c6
helper to keep scad and arduino values in sync
...
- run teeth_config.sh to sync scad values from gears in arduino code.
- small reindent
5 years ago
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