micropython NRF24L01 compatibility with Arduino NRFlite/NRF24L01?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
juggler
Posts: 5
Joined: Sat Nov 17, 2018 10:51 pm

micropython NRF24L01 compatibility with Arduino NRFlite/NRF24L01?

Post by juggler » Mon Dec 14, 2020 3:18 am

Hi!
I have just started playing with the NRL24L01 radios and would like to use them for battery powered sensors. I had the thought of using the Arduino NRFlite/NRF24L01 on an ATtiny85 talking back to a "hub" running micropython on an ESP8266 or ESP32.

I'm running NRlite as a receiver on an 8266:
https://github.com/dparson55/NRFLite/bl ... SP8266.ino

And the micropython example as transmitter:
https://github.com/micropython/micropyt ... l01test.py

I modified the addresses (wasn't sure which endian to use)
# Addresses are in little-endian format. They correspond to big-endian
# 0xf0f0f0f0e1, 0xf0f0f0f0d2
#pipes = (b"\xe1\xf0\xf0\xf0\xf0", b"\xd2\xf0\xf0\xf0\xf0")
#pipes = (b"\x00\x04\x03\x02\x01", b"\x04\x04\x03\x02\x01")
pipes = (b"\x01\x02\x03\x04\x00", b"\x01\x02\x03\x04\x04")

And set the channel and speed to match the NRFlite example.

I don't see anything showing up on the receiver.
The circuitpython documentation (which I understand is based on the micropython library) mentions a number of settings that have to match for these to talk, but my expertise here is limited and did not see a way to check whether those matched without digging into the libraries further.

Any suggestions before I dive deeper into this?
Thanks,
--Doug

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: micropython NRF24L01 compatibility with Arduino NRFlite/NRF24L01?

Post by pythoncoder » Mon Dec 14, 2020 6:45 am

A number of people have done this and a forum search throws up a good deal of advice. See this thread.
Peter Hinch
Index to my micropython libraries.

juggler
Posts: 5
Joined: Sat Nov 17, 2018 10:51 pm

Re: micropython NRF24L01 compatibility with Arduino NRFlite/NRF24L01?

Post by juggler » Tue Dec 15, 2020 3:49 am

Sorry about that! I need to get better at searching on this forum or doing so when I've had more sleep! I took a snippet of the Arduino receiver code from the post you mentioned and I think I'm on the right track now.

Thank you,
--Doug

Post Reply