2x UNO R4 Wifi communication flow

Hi, is it possible to program two UNO R4 Wifi to communicate between each other? Is it possible we get sensor data to one, then it sends wifi signal to the other arduino, which further sends data to computer through wifi also...
Thanks,

  • Joao

have a look uno-r4-wifi/wifi-examples

Should I use CAN Bus method? Or is there an easier way with this new R4 Wifi?

no need for Canbus the UNO R4 WiFi has builtin WiFi capability use that

instal the WiFiNINA library and seletct Tools>Board "arduino UNO R4 WiFi"
then under File>Examples>WiFiS3 you will see some example programs, e.g. try running ScanNetworks then the WiFiChatServer

you can run TCP or UDP server/clients to pass data between the R4s

e.g. one of your R4 boards could read the sensors and publish the values using a WebServer - the other R4 could connect to the Websever to download the senors

experiment with the examples under File>Examples>WiFiS3

I don't have a UNO R4 WiFi I prefer to use ESP32 microcontrollers directly, e.g. installing-the-esp32-board-in-arduino-ide-windows-instructions

I will try to build a solution that captures various sensor data, like 8 sensors, send each message to different arduino by cable (I will have also 8 arduino, 1 for each sensor), then send the message to another arduino through wifi, then the second arduino sends message to laptop through wifi again.
The sensor data will be used to control software like Blender or Touchdesigner.
Is it really necessary to have a second arduino in serial?

what cable? TTL serial, I2C, RS485, canbuss? what are the '8 arduinos'
how far apart are the sensors? what are the sensors? what interface ADC, SPI, I2C, etc ?

Cable: dupont cables
Arduino: 9 Arduino R4 Wifi https://www.amazon.es/dp/B0C8V88Z9D?psc=1&ref=ppx_yo2ov_dt_b_product_details
Sensors 1: https://www.amazon.es/dp/B0CL5ZKLW9?psc=1&ref=ppx_yo2ov_dt_b_product_details
Sensors 2: https://pt.aliexpress.com/item/1005005611426114.html?spm=a2g0o.cart.0.0.11517f06sz0DsK&mp=1&gatewayAdapt=glo2bra
Power supply: https://www.amazon.es/dp/B0B4NXMGQT?ref=ppx_yo2ov_dt_b_product_details&th=1 + 9v batteries
Sensors are being placed in an installation, it will have variable distances, ranging from 5-10 m

I'm sorry I'm not trying to hide anything. The thing is I intend to make an art installation.
Sensors will sense people in a room and this sensors will trigger modulations and effects inside software like Touchdesigner or Blender.
From laptop, software will output image to a projector where people will see the changes they are doing to the model inside Touchdesigner.
I already bought two R4 Wifi, sadly from Amazon where they are more expensive. Yes it's a big expense but I will try to apply to a funded open call.
I bought two of them last Sunday just now I remember to come here and ask... I will try to connect both. One question is: Is it possible to connect more than on R4 to a single "Master" R4? Is it worth?

Cable: dupont cables
Arduino: 9 Arduino R4 Wifi https://www.amazon.es/dp/B0C8V88Z9D?psc=1&ref=ppx_yo2ov_dt_b_product_details
Sensors 1: https://www.amazon.es/dp/B0CL5ZKLW9?psc=1&ref=ppx_yo2ov_dt_b_product_details
Sensors 2: https://pt.aliexpress.com/item/1005005611426114.html?spm=a2g0o.cart.0.0.11517f06sz0DsK&mp=1&gatewayAdapt=glo2bra
Power supply: https://www.amazon.es/dp/B0B4NXMGQT?ref=ppx_yo2ov_dt_b_product_details&th=1 + 9v batteries
Sensors are being placed in an installation, it will have variable distances, ranging from 5-10 m

Can I connect multiple R4 Wifi to a laptop? How many? Maybe I don't need a Master board like I was mentioning
At the same time, can I get multiple R4s to control different parameters inside the same software?
What other boards do you suggest?

you could consider ESP8266 WiFi modules cost about £5 on EBAY in UK - possibly running ESP-NOW
someting to watch out for - when using a HC-SR501 PIR sensors on Raspberry Pi micros I found the RPi WiFi caused spurious trigger events on some PIRs - in the end disabled the Wifi

I don't want to use USB. I intend to connect them through wifi.

The problem with ESP is I don't want to use USB, so I gotta have the R4s connected to battery.

Isn't ESP usb? How do I connect batterires to it? I bought this connectors

there are ESP32 modules with onboard battery connector or holder
try a search on Ebay/Amazon/etc for esp32 battery

Is it possible to do this without a wifi i.e. just communicating between themselves much like you would by using two NRF24L01+ to communicate between arduinos

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.