4 ms·
Do you have a link or a more-searcheable term? This sounds like a fantastic rabbit hole to do down, given I spent a significant proportion of the last week tuni
by photojosh 9y ago
Do you have a link or a more-searcheable term? This sounds like a fantastic rabbit hole to do down, given I spent a significant proportion of the last week tuning PID to run well at very low motor RPMs... (have a look at the repos for the hardware and firmware for the VESC motor controller for some fun: https://github.com/vedderb https://github.com/vedderb)
The problem with Pis is going to be that running Linux they're at best soft real-time. Sampling, PID, etc needs hard real-time.
- dahart 9y agoI just looked for "atmel brushless motor control" and got this, which looks similar to the document I read before, but it's for the atmega32 instead of the atmega8: https://www.researchgate.net/profile/Mohamed_Mourad_Lafifi/post/how_to_designa_hardware_MRAC_for_BLDC_motor/attachment/59d6534d79197b80779ab434/AS:516438487646208@1500139938189/download/Brushless+DC+Motor+Control+using+ATmega32M1.pdf https://www.researchgate.net/profile/Mohamed_Mourad_Lafifi/p... I can also see a ton of PID controller projects on various microcontrollers searching for pid and brushless controller and esc and motor controller and things like that.
- photojosh 9y agoThanks. I was specifically intrigued by your description of the microcontroller inside the motor, thinking it must be just for sensing and PID control, since unlikely it would have enough room to do the actual power drive. That Power Stage Controller is interesting, but somewhat obsolete since everyone's moving to Field-Oriented Control now, which requires a lot more grunt than an 8-bit micro.