Hello,
I have been running some tests using embedded linux (specifically raspberry pi) to switch a relay off and back on with specific timing. I have been having trouble with the timing being a bit unreliable and when I time my script there is huge different between the real time and user time + sleep time. Anyone have suggestions for improving this, even something like forcing the process to keep using the cpu even when it is in a sleep.
I have been using gpio and .sh scripts, but could use also python or whatever else (though I would prefer to avoid compilation) as long as it can get the result from sshing.
I'm putting this in the single board computer section since I think this is a terrible idea for anything outside of those, but if someone knows a better section for it let me know; I'm not entirely confident it is in the right place.
Thanks for any help.
I have been running some tests using embedded linux (specifically raspberry pi) to switch a relay off and back on with specific timing. I have been having trouble with the timing being a bit unreliable and when I time my script there is huge different between the real time and user time + sleep time. Anyone have suggestions for improving this, even something like forcing the process to keep using the cpu even when it is in a sleep.
I have been using gpio and .sh scripts, but could use also python or whatever else (though I would prefer to avoid compilation) as long as it can get the result from sshing.
I'm putting this in the single board computer section since I think this is a terrible idea for anything outside of those, but if someone knows a better section for it let me know; I'm not entirely confident it is in the right place.
Thanks for any help.