Ahhhh, thanks @alowhum , what you said makes so much more sense. I also see some people have attempted to stream audio with Domoticz. Ok now I have a better sense of direction on what to research next. Thank you
Posts made by july
-
RE: Beginner question about mysensor and usage for raspberry pi and arduino project
-
Beginner question about mysensor and usage for raspberry pi and arduino project
I am really new to the world of IoT, and I'm trying my first RPi and Arduino project. Someone suggested the tools offered by MySensor might help me, but it wasn't clear to me how. So some of my questions are going to be extremely novice.
My objective is to have my Raspberry Pi 3 B+ act as a gateway to receive audio data from several arduinos. The RPi and arduinos are each equipped with an nrf24l01.
I want to know specifically how MySensor tools fits into my overall project. For example, I successfully followed each of the steps in this guide here https://www.mysensors.org/build/raspberry . Although I see that running my
mysgw
command produces the same output shown in the guide, it's not clear to me how I determine values like Receiving Address, Receiving Channel, Receiving Data Rate etc... I'd imagine these are values that I would need to write into my Sketch file which would then be uploaded to my Arduino? Specifically, how do I determine the values needed to be written into the brackets in the sketch code below?#include <SPI.h> #include <RF24.h> RF24 radio(7,8); void setup(){ Serial.begin(115200); Serial.println(0); //start radio.begin(); radio.setPALevel(RF24_PA_MIN); radio.setDataRate(<data rate must be same as rpi>); radio.setChannel(<channel must be same as rpi>); radio.openWritingPipe(<pipe must be same as rpi>); radio.enableDynamicPayloads(); radio.powerUp(); } void loop() { const char text[] = "Hello"; radio.write(&text,sizeof(text)) }
And subsequently, where does my RPi save the data it receives?
Maybe I've completely misunderstood the purpose of mysensor. So any clarification would be great, thanks!