2

According to this datasheet this sensor puts out signals < 10ms.

When using RPi.GPIO and the add_event_detect callbacks, is there a chance that I will miss information because of the processing speed of the Raspberry Pi and my Python program?

In other words, what is the maximum rate at which signals can be detected / logged accurately in Python using RPi.GPIO?

Startec
  • 297
  • 1
  • 3
  • 8

1 Answers1

3

I doubt you will reliably be able to read NEC IR signals with RPi.GPIO.

The combination of Linux scheduling and GPIO interrupt handling and Python will likely conspire to miss transitions.

I suppose that is something you will have to find out for yourself by trying.

My pigpio Python module will capture the data.

See the following examples.

http://abyz.me.uk/rpi/pigpio/examples.html#Python_monitor_py http://abyz.me.uk/rpi/pigpio/examples.html#Python_ir_hasher_py http://abyz.me.uk/rpi/pigpio/examples.html#Python_irrp_py

joan
  • 71,852
  • 5
  • 76
  • 108