MichaelN:
I think you need to carefully study the schematic and existing code (particularly nordic-nRF24L01.c) and the datasheets more. You really need to understand how the software and hardware work together. The fact that you didn’t realize you were using the wrong code makes me wonder if you even read it…The FOB sample code only covers transmission of data when the buttons are pressed. It does NOT have any code for receiving data - you’ll need to add that yourself. You’ll also need to add code for flashing the LEDs etc. As previously discussed, your biggest challenge will be keeping the power consumption down (if you keep the receiver on all the time the battery probably won’t last more than a day or 2).
The “Nordic-FOB-Tester” code (although not written for the ATTINY24) has some simple code that receives data from the FOB and sends the result over a serial port. This should show you how to use some of the functions in nordic-nRF24L01.c such as receive_data().
As for connecting the LEDs, I’m not sure what the problem is- I’ve covered this several times before.
MichaelN:
3 of the pins on the programming header (1:MISO, 3:SCK, 4:MOSI) can be used for general-purpose I/O when you don’t have the programmer plugged in. You can connect an LED to one of these pins, with the other side of the LED connected to either GND or Vcc via a resistor.To make it even clearer:
Thanks
I know I’m probably making a fool out of myself on this forum, but I’m honestly giving it my best.
I learned C programming and I read the C code more than once but I still don’t understand it.
I’ll do more studying on AVR programming, and then I’ll see if I can make anything out of it.