Aversive/Modules/devices/brushless motors
De Wikidroids
Modules Brushless
This modules are intended for driving brushless motors. This is basically done with polling hall sensors, and updating PWM with a predefined sequence. This polling is optimized in order to permit high rotation speeds
forseen are : - 3-phase brushless motor with digital hall sensors - 3-phase brushless motor with analog hall sensors - perhaps other versions one day
you can see an equivalent project here : http://atmel.com/dyn/resources/prod_documents/doc2596.pdf
These modules run completely on own interrupts (no manage function)
interface will be following :
- init of functions :
void brushless_init(void)
- setting a consign. The speed is optionnal
void brushless_set_parameters(brushless_speed speed, brushless_torque torque)
- get current position and speed. The speed is optional
brushless brushless_get_mesures(void)
- set position counter
void brushless_set_position(brushless_position p)
- register a periodical event
void brushless_register_periodic_event(void (*f)(brushless))