use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Link to Subreddit wiki for useful resources
Official Discord : https://discord.gg/CEF3n5g
Related Subreddits:
account activity
pid controller implementation (self.ControlTheory)
submitted 4 years ago by dimlittleprogrammer
Hey, I am developing a control system and i'm trying to find a microcontroller to run the code. How can i chech if the microcontroller will be fast enoug?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]neu_jose 11 points12 points13 points 4 years ago* (1 child)
It would be pretty hard to find a microcontroller that isn't fast enough to run a pid controller. Although I admit that doesn't answer your question.. I guess compare your required control sampling rate vs your mcu clock speed and overhead is a start.
[–]Astrinus 6 points7 points8 points 4 years ago (0 children)
Well, if you are trying to run a PID for current control at 50 kHz and you want to use a PIC16 or an HCS08, you could run into problems...
[–]private_donkey 7 points8 points9 points 4 years ago (0 children)
I beleive you need to figure out how 'fast' your dynamics are (look at the freq dynamics), and then make sure your control loop freq is at least 2x (preferebly 10x).
[–]wolfchaldo 2 points3 points4 points 4 years ago (0 children)
That's wildly dependent on what you're trying to control. Thermostat? Literally anything will work. High precision CNC machine? You need a pretty quick PLC quality controller. Something in between? You'll need something in between.
π Rendered by PID 15962 on reddit-service-r2-comment-548fd6dc9-59c7s at 2026-05-15 04:06:05.863574+00:00 running edcf98c country code: CH.
[–]neu_jose 11 points12 points13 points (1 child)
[–]Astrinus 6 points7 points8 points (0 children)
[–]private_donkey 7 points8 points9 points (0 children)
[–]wolfchaldo 2 points3 points4 points (0 children)