This library is designed for AVR ATmega328 microcontroller, but with few adjustments can work with any AVR microcontroller with at least 3-4 Kb of flash program memory.
At the moment only one motor is supported.
Features
- the interrupt can be triggered by Timer0 or Timer1
- automatic microstepping mode selection
- can work with constant and very low speeds
- accelerated speed mode, with separate acceleration and deceleration settings
- can work with only one pin of the microcontroller if the rest are hardwired
Characteristics:
Features
|
Program Memory
|
Data Memory (SRAM)
|
All enabled
|
3552 bytes
|
40 bytes
|
Acceleration, no microstepping
|
3088 bytes
|
40 bytes
|
Microstepping, no acceleration
|
2104 bytes
|
14 bytes
|
No microstepping, no acceleration
|
1724 bytes
|
12 bytes
|
Compiled using avr-gcc (WinAVR 20100110) 4.3.3 and -Os optimization level and MATH_LIB = -lm.
If MATH_LIB = -lm is commented out in Make file, the memory with all functions enabled is 6520 bytes program and 304 bytes data memory.So allways uncomment MATH_LIB = -lm.