Sending sensor data from raspberry via NRF24L01+ to arduino
-
Thank you so much for getting back to me!
When you mean serial gateway is it something where the Arduino is directly connected to the pi?
I wasn't sure which code to implement on the Arduino to send the sensor data.
What I need is a code from the Arduino to send the data from an ultrasonic sensor to a database (or something) on the pi using the NRF modules. -
Thank you so much for getting back to me!
When you mean serial gateway is it something where the Arduino is directly connected to the pi?
I wasn't sure which code to implement on the Arduino to send the sensor data.
What I need is a code from the Arduino to send the data from an ultrasonic sensor to a database (or something) on the pi using the NRF modules. -
I have been working on the installation of the libraries.
I have Added them to the Arduino ide software but when I run the gateway serial code it shows that
fatal error: MySensors.h: No such file or directory
compilation terminated.What is causing this?
PS I am using a Macbook -
I have been working on the installation of the libraries.
I have Added them to the Arduino ide software but when I run the gateway serial code it shows that
fatal error: MySensors.h: No such file or directory
compilation terminated.What is causing this?
PS I am using a Macbook -
I have been working on the installation of the libraries.
I have Added them to the Arduino ide software but when I run the gateway serial code it shows that
fatal error: MySensors.h: No such file or directory
compilation terminated.What is causing this?
PS I am using a Macbook -
Just resolved the issue !
Apparently my Arduino Ide wasnt updated to the lastest version which explains why I never found the Library Manager :P
-
Great that you found the problem @LaMB95, thanks for reporting back. It might help someone else in the future if they have the same problem :)
@mfalkvidd
Thanks !
However I am still facing some issues trying to set up a gateway with the raspberry pi,Do you know who could help me with that ?
-
@mfalkvidd
Thanks !
However I am still facing some issues trying to set up a gateway with the raspberry pi,Do you know who could help me with that ?
-
Hi,
I'm having problems exactly the same as @LaMB95
The MySensors library is installed, at least is says so doing as shown in the link @mfalkvidd sent.
This is my error:
"
DallasTemperatureSensor.ino:36:25: fatal error: MySensors.h: No such file or directory
Compilation terminated.
"Thanks
-
Hi,
I'm having problems exactly the same as @LaMB95
The MySensors library is installed, at least is says so doing as shown in the link @mfalkvidd sent.
This is my error:
"
DallasTemperatureSensor.ino:36:25: fatal error: MySensors.h: No such file or directory
Compilation terminated.
"Thanks
-
Hi,
I'm having problems exactly the same as @LaMB95
The MySensors library is installed, at least is says so doing as shown in the link @mfalkvidd sent.
This is my error:
"
DallasTemperatureSensor.ino:36:25: fatal error: MySensors.h: No such file or directory
Compilation terminated.
"Thanks
-
-
I am facing an issue while sending data from an Arduino pro mini 5V to an arduino UNO. Receiving a lot of garbage from the Pro mini.
Any idea why ? -
@LaMB95
do you have a log to take a look? Just to understand what is the garbage you are talking about.
What NRF24 library are you using? I'm using the one from Maniacbug@gohan

Code in Pro Mini:#include <HardwareSerial.h> #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> RF24 radio(9, 10); const byte rxAddr[6] = "00001"; void setup() { while (!Serial); Serial.begin(9600); radio.begin(); radio.openReadingPipe(1, rxAddr); radio.startListening(); } void loop() { if (radio.available()) { char text[32] = {0}; radio.read(&text, sizeof(text)); Serial.println(text); } }Code in Uno:
#include <SPI.h> #include <nRF24L01.h> #include <RF24.h> RF24 radio(9, 10); const byte rxAddr[6] = "00001"; void setup(void) { radio.begin(); //Serial.println(F("*** PRESS 'T' to begin transmitting to the other node")); radio.setRetries(15, 15); radio.openWritingPipe(rxAddr); radio.stopListening(); } void loop(void) { const char text[] = "Hello World"; radio.write(&text, sizeof(text)); delay(1500); }I have set the processor to 3.3V 8MHz.
I have connected the Pro mini to the computer via a CP2102 breakout board.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login