4 ms·
Fun fact: PID controllers are embedded into the wiring of today's brushless hobby motors, the kind used for drones, for example. The last motor I dissected had
by dahart 9y ago
Fun fact: PID controllers are embedded into the wiring of today's brushless hobby motors, the kind used for drones, for example. The last motor I dissected had a tiny little ATMEL 8-bit 1Mhz chip shrinkwrapped into the wires that controls the phase of the magnets that drive the motor, to make sure it matches the spin rate and make sure it doesn't skip or get out of phase. ATMEL published a whitepaper on the PID controller that says it runs the chip at around 10% load, meaning it could handle the PID calculations for 9 motors and still have some spare cycles.
A Raspberry Pi is powerful enough to run hundreds or thousands of PID controllers simultaneously, depending on your sample rate.
- hexane360 9y agoNot surprising, given that we had mechanical PID controllers working with extreme accuracy (steering a ship in severe weather) in 1922.
- photojosh 9y agoDo 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.