1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00
Go to file
ekozlenko 847816739f Update stepper library: High-speed stepping mod and timer rollover fix
When using the stepper library with a 1.8 degrees per step motor, and at high angular speeds, the current Stepper library leads to really loud and jittery rotation. This is due to the fact that the timing is calculated in milliseconds, and the delay length between steps is only 2.5 milliseconds when trying to spin at 120 rpm. Since only integer math is performed, you end up actually bouncing between different step delays, and thus speeds, from step to step instead of giving the motor a constant input.  Which causes the motor to freak out.

Changing the library to calculate the step delays in micros() solves that problem for any speed you can reasonably demand from your stepper motor. The down side is that the micros() counter rolls over every hour or so, and any move you perform after that point will hang your code. Easy fix for that is to add an || micros() - this->last_step_time < 0 to the while loop if statement in Stepper.cpp.
2015-06-05 16:18:46 +02:00
.settings Update eclipse java-formatter settings 2015-03-27 14:51:11 +01:00
app Boards/Lib manager: added "Close" button at lower right corner, so users with ungrateful window managers can close that modal using the mouse. Fixes #2884 2015-06-05 14:40:06 +02:00
arduino-builder Created 'arduino-builder' project. 2014-11-13 16:34:25 +01:00
arduino-core Boards/Lib managers: use system proxy settings (got rid of our proxy settings 2015-06-04 13:34:44 +02:00
build Update install.sh 2015-06-04 20:18:55 +03:00
hardware add Arduino Gemma Bootloader source files 2015-06-01 20:00:54 +02:00
libraries Update stepper library: High-speed stepping mod and timer rollover fix 2015-06-05 16:18:46 +02:00
.classpath Windows: got rid on JNA, thus no more UnsatisfiedLinkError (at least when accessing native OS functions). Fixes #3190 2015-05-20 16:33:33 +02:00
.gitignore New modal dialog for adding additional boards manager url: with a wide text area, inputing is much easier 2015-05-13 16:24:37 +02:00
.project Fix eclipse project files 2012-01-11 14:18:48 +01:00
format.every.sketch.sh Added script to run astyle every once in a while against all .ino files 2013-12-11 21:55:00 +01:00
lib_sync Added lib_sync, utility script 2015-04-23 17:46:20 +02:00
license.txt adding LGPL (a bit late, whoops). 2007-10-12 01:58:48 +00:00
README.md Due to website configuration changes, every url starting with http://arduino.cc has been changed to http://www.arduino.cc. Fixes #3191 2015-05-20 17:10:06 +02:00

Arduino

Installation

Detailed instructions are in reference/Guide_Windows.html and reference/Guide_MacOSX.html. For Linux, see the Arduino playground: http://www.arduino.cc/playground/Learning/Linux

Credits

Arduino is an open source project, supported by many.

The Arduino team is composed of Massimo Banzi, David Cuartielles, Tom Igoe, Gianluca Martino, Daniela Antonietti, and David A. Mellis.

Arduino uses the GNU avr-gcc toolchain, avrdude, avr-libc, and code from Processing and Wiring.

Icon and about image designed by ToDo