Closed cgpgh closed 5 years ago
Bluetooth is connected to serial port on RPI3(tx rx lines) not SPI(MOSI MISO CLK). But if you want reliable serial on RPI3 read this I use one additional node for communication with RPi3. I connected arduino with RPi through serial port and it works great easpecially through USB ( bigger data buffer).
My question is not with using bluetooth. My SPI0 is used by Adafruit LCD display and I need to use the NRF24 Radio on a SPI1. The RF24 library uses SPI0 pins, how do I make it to use SPI1?
Thank you
Folks any suggestion or help on getting Nrf24 radio to work on SPI1 on raspberry pi 3?
Do you mean GPIO pins 10 - 14?
From: cgpgh notifications@github.com Sent: 02 February 2017 15:44:41 To: TMRh20/RF24Mesh Cc: Subscribed Subject: Re: [TMRh20/RF24Mesh] Using NRF24 on Raspberry Pi3B on SPI1 (#112)
Folks any suggestion or help on getting Nrf24 radio to work on SPI1 on raspberry pi 3?
- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/TMRh20/RF24Mesh/issues/112#issuecomment-276867261, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKyWpqPQdM4KgdxfO4JOw9oFEvCf1Fljks5rYV85gaJpZM4Ldidy.
Thank you for for the response.
In this example below, which I use. https://github.com/TMRh20/RF24Mesh/blob/master/examples_RPi/RF24Mesh_Example_Master.cpp
** RF24Mesh_Example_Master.ino by TMRh20
#include <RF24/RF24.h>
#include <RF24Network/RF24Network.h>
RF24 radio(RPI_V2_GPIO_P115, BCM2835SPI_CS0, BCM2835_SPI_SPEED_8MHZ);
It calls for SPI_CS0, in my case SPI0 CS0 is used by adafruit LCD on my Pi3. What can I use for CS for NRF24 radio?
I haven't experimented with doing this yet (though I have previously done penance working out how to re-allocate SPI pins on the Arduino...)
You could try the mod below - I understand that bcm2835.h supports this (see line 816 onwards)
This should allow you to connect to CE1 (GPIO 11) instead of CE0 (GPIO 10)
RF24 radio(RPI_V2_GPIO_P1_15, BCM2835_SPI_CS1, BCM2835_SPI_SPEED_8MHZ);
From: cgpgh notifications@github.com Sent: 02 February 2017 18:16:04 To: TMRh20/RF24Mesh Cc: chriskelman; Comment Subject: Re: [TMRh20/RF24Mesh] Using NRF24 on Raspberry Pi3B on SPI1 (#112)
Thank you for for the response.
In this example below, which I use. https://github.com/TMRh20/RF24Mesh/blob/master/examples_RPi/RF24Mesh_Example_Master.cpp
** RF24Mesh_Example_Master.ino by TMRh20
RF24 radio(RPI_V2_GPIO_P1_15, BCM2835_SPI_CS0, BCM2835_SPI_SPEED_8MHZ);
It calls for SPI_CS0, in my case SPI0 CS0 is used by adafruit LCD on my Pi3. What can I use for CS for NRF24 radio?
- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/TMRh20/RF24Mesh/issues/112#issuecomment-276885210, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKyWpl0qHJgENGTdZtrgfWGfS77v3fsSks5rYYK0gaJpZM4Ldidy.
Thank you chriskelman, I will try what you suggested. Thanks again for your help.
Hello,
I have a Adafruit PiTFT Plus 480x320 3.5" TFT+Touchscreen for Raspberry Pi display (https://www.adafruit.com/products/2441) on my Pi3 and it uses a custom kernel on SPI0, I would like to use NRF24 Radio on the same Pi3. I have enabled SPI1 on Pi3 and able to list the SPI device. Bluetooth is disabled on the Pi3.
root@sh-base:~/rf24libs/RF24Mesh# ls /dev/spidev* /dev/spidev0.0 /dev/spidev0.1 /dev/spidev1.0 root@sh-base:~/rf24libs/RF24Mesh#
I have connected the NRF24 pins to SPI1 pins on Pi3 based on this https://pinout.xyz/pinout/spi, but I am unable to get the Radio to work. With out the Display Radio works fine on SPI0.
Does the library needs changes to accommodate NRF24 Radio on SPI1?
Any suggestion or help is highly appreciated. Thanks in advance.