Home/Support/Support Forum/Xbee 3.0 Digimesh IR Receiver.

Xbee 3.0 Digimesh IR Receiver.

0 votes
Hi, in my application i need to connect xbee 3.0 with digimesh on board with IR Receiver VS1838B. When IR signal is receiver digimesh need to send a message to central. I do not know which IR library use or is there no possibility to make IR Receiver? I am programming in PyCharm in MicroPython
asked Feb 18 in XBee3 DigiMesh by Ceranthor New to the Community (0 points)

Please log in or register to answer this question.

2 Answers

0 votes
This looks like it is an Digital IO type sensor. So I would suggest using the Digital IO status functions and not Micro Python.
answered Feb 18 by mvut Veteran of the Digi Community (15,223 points)
Yes and No. Yes it is digital but it has to be decoded from 0 and 1 to actual data and it need to be quick (1000 us) pulse time and I need an interrupt for it cause I will loose data. After the signal is receiver the message is send to coordinator than going back with the answer and put some digital pins high turn on some neopixels or turn a servo that what I need. That’s why I need it programmed in micropython
0 votes
The XBee3 most likely can't read the input that fast. If you are simply passing the raw input state change, the Xbee can only work at 1kHz https://www.digi.com/support/forum/78407/xpee3s-gpio-max-rate

If you are looking to read it in MicroPython I think you will get a "better" rate but I haven't found any documentation that will suggest the frequency the pin can be read at. Even then, you can't thread in MicroPython on the XBee so interrupts would be only possible in a callback.

https://www.digi.com/support/forum/80924/threads-in-micropython-for-xbee-3

Whilst the underneath EFR32MG can read the input fast enough I highly doubt Digi's XBee layer will present it to MicroPython quick enough.

Your best bet would be to externalise an MCU and send the data via SPI or UART.

Nicholas Wilson
Your IoT
https://www.YourIoT.com.au
answered Feb 20 by NicholasYourIoT Seasoned Professional (232 points)
...