Hey all, trying to get my head around the Arduino Uni Wifi to build a on off switch for a remote electrical pump. Component wise I am set, i have the board and the relay switch. but just trying to get my head around the differences between MCU and ESP.
Essentially i am looking to connect Blynk to trigger the on off on the board. I have a USB dongle that will provide the wifi AP. Any tips or suggestions would be appreciated?
what Arduino and WiFi module do you have if any?
have a look at ESP0101S-RELAY-MODULE-TUTORIAL which describes remote control of a relay from a web page
you mention a remote electrical pump - how remote? is it in a WiFi reception area?
if you don't have WiFi coverage you probably need another wireless technology such as LoRa
how large is the pump? the typical Arduino relays should not be used for more than 2 or 3 amps of inductive load
So i have the arduino uno wifi with the ESP8266. My connection to the internet is a 4g usb dongle.
My power is not grid connected. I have a 3000w pure sine inverter that has a RJ45 remote switch button that plugs into it to start up and shut down the inverter. I am going to cut the wires on the inverter remote switch and use the cable and wires to connect the relay. My relay is a 5VDC 10a.
When the switch turns on the inverter the pump will then operate automatically from the inverter power.
the arduino instructions for the board are a bit confusing. It has MCU and ESP coding. I saw a sample that makes the led turn on and off but it loaded code to both MCU and ESP. Do you need to load code to both all the time or just one? If its only one, which is better MCU or ESP?
you have two seperate microcontrollers on the board - in effect a UNO and an ES8266 linked by serial communications
you have to program both using the DIL switchs to select the target
you program the ESP8266 to communicate with Blynk to receive the ON/OFF commands which you transmit over the serial link to the UNO
the UNO receives the commands from the ESP8266 and operates the relay on/off
these boards with two processors selecting the operations using DIL switches are not easy to use
still think the ESP-01s relay module would do what you require without the overhead and complication of programming two different processors and UNO<>ESP8266 communications