I put" RF24 radio(5, 4);" because CE is not connected and pin5 is unusable as it is the reset pin.
So, it's working well but I tried different things I saw on internet to free one pin but it doesn't work.
I tried to disconnect miso pin because I only need to receive data from NRF but it doesn't work.
Any idea ?
I think u cannot change the default spi communication pins as they are necessary. Now comes the part to mess with csn or ce pin. They are involved in setting different modes, and we would need a much better perspective of how are u using your nrf- like only to communicate, or to use both master and slave function, etc. from code it seems that u are using only the master function here. hmmmm
Rather than trying to free up a pin, how about adding one and using the reset pin for I/O?
A while back, I found myself in a situation where I needed all 6 I/O pins on an 85 and so I built myself a high voltage ATtiny85 programmer with a Nano, a handful of resistors, an NPN transistor and one of those ubiquitous boost converters. I started with the following:
The modified ArduinoISP sketch has an additional command for manually setting the 85s fuses. Then you just use it like the normal ArduinoISP programmer to upload your sketch. Here's what the breadboarded version ended up looking like:
a source says that if u set the csn pin low (connect to gnd), the nrf starts listening as u said, ur only using your receive func here, so maybe this works?
source:Getting started with nrf module
read the point about CSN pin
I am also going to connect my nrf's csn pin to gnd and see if this works.(on the receiver board)
Maybe some luck with pin 3 of your attiny?
Yes maybe the high voltage programmer will be the solution but as I saw 3pins attiny85 is possible I'm wondering to make it work like this with the simple usb programming.
Thanks arunav, I tried but CSN to the ground doesn't work...