BLavery / lib_nrf24

Python library for NRF24L01+ Transceivers
71 stars 56 forks source link

radio.write() returns 0 #10

Open rbp9802 opened 2 years ago

rbp9802 commented 2 years ago

Hi, i'm sending data from an Rpi4 to and Rpi Pico. Data is received on RPi Pico but with no Ack.

setAutoAck(1) is set on both Rpi's and RPi Pico Ack works beetween 2 RPi Pico's (programmed on arduino).

I comfirmed autoAck is on by radio.read_register(NRF24.EN_AA) = 0b111111

I think ther is a problem with the code but could not find it.

manuek112 commented 1 year ago

Hi, I'm sorry you had problems and I hope you managed to resolve. Anyway I've been trying to connect a Pico and a Pi 3 via the NRF24L01 for weeks, but got no results. Could you help me? I opened a question on stackoverflow (https://stackoverflow.com/questions/75969912/nrf24l01-between-raspberry-pi-3-and-pico) You'd really be doing me a favor, thank you.

rbp9802 commented 1 year ago

Hi Manuel, I programmed my RPi Pico with Arduino IDE using Earle Philhower core for RP2040 and TMRh Library (be default it will use SPI0 Bus), take a good look to the examples. You should try it since it worked with your Arduino UNO. The library is compatible with multiple other boards which yo may use in the future. In my case I switched to ESP32-S3 boards since I needed more memory.

I also experienced problems with wiring on my protoboard. If I remember correctly, a pcb solved most of the AutoAck problems.