-
1Setting up ESP32 and relay module
1. ESP8266 WiFi chip installation on Arduino IDE and sketch file
You need to first install Arduino Sofware (https://www.arduino.cc/en/Main/Software)
I modified the WifiClientBasic example under the File >> Examples >> Examples for LOLIN (WEMOS D1 R2 & Mini)>> ESP8266WiFi menu. Change the SSID and Password in sketch and upload it to the ESP8266 board.
2. Connect +5V and GND pins of YwRobot to WEMOS D1 Mini then connect the ESP8266 PINs to relay module:
- 5V to 5V PIN
- GND to GND PIN
- D1 to D1 PIN (Signal PIN for relay)
3. Connect the jumper cables to DC power jack supply sockets:
- Connect YwRobot DC-in +PIN to the middle socket (Common PIN) of the relay with red a cable.
- Connect NC (Normally Closed) PIN of relay module to the +12V out header.
- Connect YwRobot DC-in -PIN to the -12V out header.
4. Connect the power cables.
- Plug the 12V adapter power cable to female power jack socket on the YwRobot.
- Plug the 12V out cable to the modem power socket.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.