parts:
- L6234 Three phase motor driver (essentially 3 half bridges) from the drotek.fr guys (recommended)
- teensy 3.0 (yeah, overkill – but it was at hand) – btw: Paul rocks – as do his microcontrollers and libraries!
- GBM4108-120T brushless motor (lying around for a future gimbal build)
code:
- github
- what it boils down to
analogWrite(phase1Pin, sin_tbl[phase]); analogWrite(phase3Pin, sin_tbl[uint8_t(phase+85)]); analogWrite(phase2Pin, sin_tbl[uint8_t(phase+171)]);
pictures: