I tried to use the library but this error occurs: I would like to create a RF network with 6 nRF24L01+ working with a SAMD21 processor (Adafruit Feather M0 Basic Proto).
#How to connect receptor rf 433mhz to avr codevision code
Here I used switched CE (to PB1) and CSN (to PB0) to just check if my wiring was off Ĭould you tell me what I might be doing wrong? In the code I saw your using PB0 as CE and PB1 as CSN (SS) right? Why then is there the PB2 (SS) defined in the SPI library? Here are a few screenshots of my logic analyser and terminal (ignore the last 3 channels) The 328P is running at 8Mhz and my power supply is fine, I already included an extra 10uF cap. The problem is that it's giving me failes on sending data all the time.įor my setup I'm using a Atmega328P and I allready updated the uart library to the latest one from the website of Peter Fleury. I'm trying to include your code into my domotica project for my house, sadly I'm experiencing that the code is not working. stop if max_retries reached or send is ok Spi_writereadbyte(NRF24L01_CMD_W_TX_PAYLOAD) With my scope i can see that the payload and bufferout data are correctly outputted on the mosi. When i read the status register in this loop it outputs 0000 1110.
It seems that i get stuck in the loop where the function "nrf24l01_write()" polls the MAX_RT and TX_DS bits in the status register. I don't have a logic analyzer or arduino.