Help with Faster Responses to Sensor Changes

the microcontroller can handle REAL-TIME events, and can use interrupts.
the Pi, linux, or xojo simply can’t. (and all of them together is worse)
it’s ok for many things, but if your timing is tight, then they simply can’t handle it.

I made a small clock, with an esp8266, and using an event loop you can see the seconds are not at the good timing, by eye ! if you use interrupts, it’s dead on.

Norman’s of course … :face_with_hand_over_mouth:

Thanks for all of the suggestions. Part of the app already runs a Python script via shell process to read a sensor using i2c. It probably makes sense to move additional functionality to Python and keep the UI in Xojo. We will try different things learned in this thread.

1 Like