Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending fails, wrong pin? #34

Open
JockeyDoe opened this issue Sep 11, 2021 · 1 comment
Open

Sending fails, wrong pin? #34

JockeyDoe opened this issue Sep 11, 2021 · 1 comment

Comments

@JockeyDoe
Copy link

Hi,
I am not able to send or receive anything.

var rf24 = new nrf24.nRF24(19, 0);
 rf24.begin();

 rf24.config({
   PALevel: nrf24.RF24_PA_MAX,
   DataRate: nrf24.RF24_1MBPS,
   Irq: 16
 });

 console.log(rf24.present());

 var data = Buffer.from("Turn LED on");
 rf24.useWritePipe("0xF0F0F0F0E1", true);
 console.log(rf24.write(data));

 rf24.destroy();

Output:

true
0

The wiring is correct, but the second output tells me nothing was sent. Also my receiver doesn't receive any data.

Is it possible, my code doesn't work because I am using another CE Pin?

@ludiazv
Copy link
Owner

ludiazv commented Sep 13, 2021

CE selectable. I see that you are using GPIO19. Try to use other pin as in the RPI this pin is also used for the second SPI interface (MISO signal). Maybe there is some conflict if the kernel is actualy managing these SPI interface.

Also for troubleshooting is better to disable IRQ signal in config (Irq:-1).

See here:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants