@skywatch said in Integrating NRF24 to Raspberry Pi:
@huseyinozsut said in Integrating NRF24 to Raspberry Pi:
Thank you for reply! I couldn't solve the problem.
I know, I went throught the same thing!.
After some tests, I also found out that, relay actuator with button node sketch does not work without nrf24 connection.
This is surprising, can you post a link to the relay sketch better your actual code here (using code tags)?
frits explained the solution to the problem. I am a begginner and my technical English is a bit weak, so my research capacity for this project is a bit low. Sorry.
So, I tried to use an arduino with serial gateway sketch uploaded in to it. This way nodes connects to gateway and even if raspberry is closed, switch works!
Yes, this is also something I did. At least we have independently found the same issue with different hardware, cables, power supply etc. This makes it much more likely that the issue is global in nature.
I plugged the arduino to Raspberry with USB. And tried several configurations. None of them was successful. If you know the serial gateway configuration, can you tell me? I made several searches here but could not make it work. I tried /dev/ttyUSB0 and several other possible options. What would be the configuration script?
There is no configuration script for nrf attached to arduino.
If I were you I would wipe the memory card of the pi and reinstall all fresh.
I did this. Nothing changed. By the way I was using rasberry pi os + home assistant supervised, because I use ssd, not sd card. I found out that Version 5 series of HASS OS (beta version) supports SSD boot. So I used that. But again, no luck. It could not pass the boot screen. But 64 bit version worked. As I understand, in 64 bit version there is no GPIO support. So I ditched the plan for directly using NRF24l01 on Raspberry Pi through GPIO out. I will stick to wifi gateway or ethernet gateway. I will test ethernet gateway also, and check whether it consumes less or more power than wireless gateway.
Make sure to erase the eeprom on the arduino using the clear eeprom sketch in mysensors library, not the other one that comes with arduino. Also, when you reload the gateway sketch be sure to turn off debug as that sends stuff down the serial port and will corrupt everything ....
Then get something like this.....
Plug it in and dev/ttyUSB0 should work. It is the path I took and it works.
I will definately try this also. Thank you!