Sending sensor data from raspberry via NRF24L01+ to arduino
-
I have been looking at instructions to set up a communication system where I can send my Arduino data to a Raspberry Pi via a NRF24L01+.
I have used this link: https://www.youtube.com/watch?v=_68f-yp63ds&lc=z12wivkbyr3uzleri04ccblr3wflyntwpgk
While everything run there is no data sent or received.
If anyone could give me an advice or correction or even provide me with a new insturction link it would help !
I am planning to send ultrasonic data or a HMC5883L data to the pi.
-
I have been looking at instructions to set up a communication system where I can send my Arduino data to a Raspberry Pi via a NRF24L01+.
I have used this link: https://www.youtube.com/watch?v=_68f-yp63ds&lc=z12wivkbyr3uzleri04ccblr3wflyntwpgk
While everything run there is no data sent or received.
If anyone could give me an advice or correction or even provide me with a new insturction link it would help !
I am planning to send ultrasonic data or a HMC5883L data to the pi.
@LaMB95 welcome to the MySensors community!
Doing that with MySensors is fairly easy. Create a gateway, either directly attached to the raspberry pi gpio pins (https://www.mysensors.org/build/raspberry ) or using a serial gateway (https://www.mysensors.org/build/serial_gateway )An example for sending data from a ultrasound distance sensor is available at https://www.mysensors.org/build/distance
Be aware that using MySensors is VERY different from the instructions provided in the video you linked. You might want to start reading the getting started guide, https://www.mysensors.org/about
-
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
-