I am working on a project for one of my subjects for which I need to connect different sensors (e.g., light, current, gas, optical, etc.) to a master arduino board wirelessly. Then based on the status of these sensors, the arduino switches on and off certain LEDs. Can someone help me with how I can form these wireless connections between the sensors and the arduino?
- Review this link.
Little more precisely..?
Could be IR, bluetooth, wifi, lora... and so on.
what is the distance between modules?
do you have local WiFi coverage?
Begin by defining the message format and data that you will need to communicate the data from the sensors, including a code to identify which sensor the data is coming from. Then define the message format the master unit will use to ask each sensor for it's data. You need no hardware to do do that.
Only then begin to implement the hardware part, beginning with the master Arduino. Bild the simplest slave/sensor unit so you can test the master unit.
we're thinking wifi
distance between the modules should be around 4-5 metres and we do have local wifi coverage
we're thinking wifi, but if that's too expensive to carry out then we'll look for a cheaper option.
you could use ESP32 micros (with onboard WiFi, bluetooth classic and BLE) cost about £7 on Ebay in UK - the ESP32 is supported by the Arduino IDE
the master could run an Access Point remote ESP32's could send sensor data to it
or look at ESP-NOW
You find esp8266 boards at $2 for wifi, so while IR could be one option for that distance, it's not worth the trouble.
Setup is so simple, sensors connect to one Esp and master"LED" Esp receives sensor values from it (or multiple of them).
If budget can stretch to $5, I suggest Esp32 though.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.