Closed knoid closed 8 years ago
You are very close to the goal. If u are using RPi2, then try to use cePin = 25, irqPin = 7 - it works for me (IRQ - the last 8 pin, in manuals is not used)
I'm using a Raspberry Pi Model B Revision 2.0 (512MB) and I understand that pin 25 is GND, so that wouldn't work.
@knoid I believe @belsource meant GPIO 25 (pin 22)?
Yeah, I first thought maybe your RX/TX addresses were swapped but looking again I think you have it correct. @jstnjns is probably on to something, a common trip-up that I need to document better:
node-nrf (well, pi-pins really) uses the "virtual" GPIO numbers, not the physical pins on the header. So please make sure that if you have cePin = 24, irqPin = 25
in your code that you plug in to pins 18 (GPIO24) and 22 (GPIO25) on the header.
Thanks for the tips, I've checked the GPIOs and it all seems to be right. I'm closing this issue for now because the problem may be the arduino's power so I will continue trying when I get my hands on a proper voltage regulator.
No worries, hope you get it sorted or otherwise feel free to ping back here. The nRF24 needs to TX to ack the packets, which could be a significant current draw change if you're e.g. just using a resistor to get to 3.3v or something.
Hi natevw, thanks for the great library!
I'm trying to connect an arduino and a raspberry PI wirelessly but I obviously can't do it. I have really simple programs in both devices. I've tried with and without capacitors (100uf, 220uf), different configurations, I can't think of anything else. I have an arduino pro mini (if that makes a difference). I guess they are properly connected because the output configuration looks right.
I've checked the spi module loading on the rpi and it loads
spi_bcm2835
. Would that work?A sample program to test with would work for me because I couldn't find an example for raspberry in nodejs and arduino in C; but meanwhile, this is what I got.
Code in raspberry pi:
Output:
Code in arduino:
Output: