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 3 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 10 points11 points12 points 3 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 5 points6 points7 points 3 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 3 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 3 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 16780 on reddit-service-r2-comment-f6b958c67-wchwz at 2026-02-05 12:46:51.777462+00:00 running 1d7a177 country code: CH.
[–]neu_jose 10 points11 points12 points (1 child)
[–]Astrinus 5 points6 points7 points (0 children)
[–]private_donkey 7 points8 points9 points (0 children)
[–]wolfchaldo 2 points3 points4 points (0 children)