I'd like to implement real-time functionality with RaspberryPI...

Asked 2 years ago, Updated 2 years ago, 103 views

The connection is
Sensor (8bit) === > GPIO
GPIO===>LED
That's it.

The idea is to ensure real-time performance with drivers that don't allow other interrupts.

Self-Driver:
Polling GPIO with for (inti=0;i<n;i++).
Turn on the LED when the pattern matches in chronological order.
Break when you reach n times.
Let's go with the algorithm.

As mentioned above, the system freezes for a few seconds, is there no problem?
How do I ban all interrupts when a driver is called?
Or is there any other good mechanism?

Thank you for your cooperation.

raspberry-pi

2022-09-30 21:44

1 Answers

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.