Marc Poulhiès
cbd0cde9f3
Fix init and hinge closing mode
...
Init and hinge closing mode were completely wrong.
3 years ago
Marc
d2ed70fd49
Allow for working with gravity instead of against it
...
The hinge_opening config can be used for setup where the hinge is
closing when working instead of opening.
3 years ago
Marc Poulhiès
1ca91bf7a7
Change default arduino SDK version
...
Change from 1.8.5 to 1.8.9
3 years ago
Marc Poulhiès
00a6afbf9b
bump thirdparty dep version
3 years ago
Marc Poulhiès
e7e825cdc5
move config in dedicated file, fix initial setup/reset
...
Move all user-modifiable variables in config.h. User should only need
to change items in this file.
Fix initial setup of the tracker. The initial angle depends on the
specific build.
4 years ago
Marc Poulhiès
fcaeaa4ace
Relax math precision and let GCC be more agressive
...
Use -ffast-math for building C/C++. We don't need to be exact, let GCC
be more agressive and saves few bytes (currently it saves 80bytes).
4 years ago
Marc Poulhiès
63be626f25
minor makefile tuning
...
Allow for ARDUINO_DIR variable override.
4 years ago
Marc Poulhiès
7c31d8f181
Do not build debug code
4 years ago
Marc Poulhiès
bf82db67f6
Bump StepperDriver rev
4 years ago
Marc Poulhiès
8532ab3345
bump arduino-makefile rev to latest master.
4 years ago
Marc Poulhiès
25e6a51795
Add comments
...
Add comments in makefile. I had to work a bit in order to remember how
things work; help future me by not having to redo this work again.
Clean a bit the .ino header. This was all based on jjrobots work, but it
has been all changed since.
4 years ago
Marc Poulhiès
4e83a04ded
arduino: smoother movements
...
increase microstep, reduce lib's RPM and increase freq
4 years ago
Marc Poulhiès
817a9d6c88
use submodule for arduino makefile
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
fe96c0e3dc
Add Switch submodule for arduino
...
Switch module can be used to debounce push buttons
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
Marc Poulhiès
511e65a0d3
add automata skel
5 years ago
Marc Poulhiès
6f0694d374
started modifying code from jjrobots
5 years ago
Marc Poulhiès
71b0deb184
sample arduino sketch for testing nema17
5 years ago