Define "real time". How fast do you need to respond to a changed input? What is the loop response time? Can this be a simple system, or do you need a proportional–integral–derivative controller?Another question: Is it possible to achieve a real time application with python and raspberry pi os? I find it difficult now to read the values from adc and print them but want to know if a control loop with these values is possible or not with pi.
The kernel in the RPiOS is not real-time, and therefore the cycle times will be variable. At slow speeds, this won't matter, but as the control loop gets faster, bad things (TM) will happen. You might be able to use a real-time (pre-emptive) kernel, or you might do better with a microcontroller (Pico) rather than a SOC (Pi).
Statistics: Posted by davidcoton — Fri Jul 26, 2024 8:57 am