Network of Arduino's with WiFi

Hi,

I was wondering what would the most efficient way there is to implement a network of Arduino's using WiFi such that I have one Arduino that can send independent HTTP requests to three other Arduino boards when prompted, and one of the three Arduino boards would also need to send information back to the main board repeatedly at a given time interval. I'm just not sure how to configure a web server such that three different boards can independently receive an HTTP request from another board. Thank you.

A web server is probably the wrong interface. You should look at ESP-NOW or some mesh type interface.

2 Likes

how far apart are the nodes?
do you have local WiFi?

Thank you for all of the responses. The nodes would be about 30 ft apart. I do have WiFi.

as mentioned by @oldcurmudgeon worth experimenting with ESP-NOW

I read your entry post like following. You have got 4 "Arduinos"
"one Arduino sends HTTP requests to three"

A (client) -> B (server)
A (client) -> C (server)
A (client) -> D (server)

one of the three Arduino boards would also need to send information back to the main board repeatedly at a given time interval.

I pick out C. C has the role of a client now, and A needs to be server

C (client) -> A (server)

So you would need to setup a client and server on A and C.
You would need to setup a server on B and D.

Based on the microcontroller you are using that should be possible. It looks quite easy on an ESP32/ESP8266 (using HTTP is really easy on these) - it might be more work on an Arduino Uno but for sure doable.

My first questions would be:

  • What microcontroller needs to be used (and when you stick to an UNO R3 or Mega - WHY)?
  • What kind of data (from which sensor) do you want to transmit from A and from C? (this is just to get a figure how many resources you need beside the server/client topic)
1 Like

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