#This guide is for Arduino IDE 2.0.4
https://www.arduino.cc/en/software
https://www.wemos.cc/en/latest/ch340_driver.html
Make sure Arduino Wemos D1 is plugged in via USB
Ctrl + Comma (,) At the most bottom of Preferences, Add additional Board URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json
Click the Board Drop down beside the check, right arrow Select Other Board and port Search for Wemos Select LOLIN(WEMOS) D1 R2 & mini and the COM port of the Arduino Click Ok
A popup on the lower right should pop up to install esp8266 [v 3.1.2] click install manually
on the boards manager window, click Install
wait for it to install
Downloading packages esp8266:[email protected] esp8266:[email protected] esp8266:[email protected] esp8266:[email protected] esp8266:[email protected] Installing esp8266:[email protected] Configuring tool. esp8266:[email protected] installed Installing esp8266:[email protected] Configuring tool. esp8266:[email protected] installed Installing esp8266:[email protected] Configuring tool. esp8266:[email protected] installed Installing esp8266:[email protected] Configuring tool. esp8266:[email protected] installed Installing platform esp8266:[email protected] Configuring platform. Platform esp8266:[email protected] installed
You can now try uploading the Blink Sketch to test File > Examples > Basics > Blink Upload to Arduino
Tools > Manage Libraries
Search for pubsubclient
PubSubClient by Nick O'Leary Click Install
Downloading [email protected] [email protected] Installing [email protected] Installed [email protected]
Tools > Manage Libraries
Search for ArduinoJson
Downloading [email protected] [email protected] Installing [email protected] Installed [email protected]
Tools > Manage Libraries
Search for LiquidCrystal I2C
Downloading LiquidCrystal [email protected] LiquidCrystal [email protected] Installing LiquidCrystal [email protected] Installed LiquidCrystal [email protected]
Tools > Manage Libraries
Search for RTCLib
Downloading [email protected] [email protected] Installing [email protected] Installed [email protected] Downloading Adafruit [email protected] Adafruit [email protected] Installing Adafruit [email protected] Installed Adafruit [email protected]
Tools > Manage Libraries
Search for PZEM004Tv30
Downloading [email protected] [email protected] Installing [email protected] Installed [email protected]
https://github.com/xreef/PCF8574_library
Download Zip, extract to Documents/Arduino/libraries
NodeMCU | LCD |
---|---|
5V | VCC |
GND | GND |
D3 | SCL |
D4 | SDA |
NodeMCU | DS1307 |
---|---|
GND | GND |
5V | VCC |
D3 | SCL |
D4 | SDA |
NodeMCU | Relay |
---|---|
5V | VIN |
GND | GND |
D0 | IN1 |
D1 | IN2 |
D2 | IN3 |
//si in3 po may issue kasi ayaw umilaw then ginawa ko po is yung pin na nasa in3 ni lipat ko sa pin na in1 po, then yung mga wires na nasa designated na input ng relay 3 nilagay ko po sa relay1
NodeMCU | SD Card Module |
---|---|
D5 | SCK |
D6 | MOSO (sic) |
D7 | MOSI |
D8 | CS |
5V (extension board) | VCC |
GND (extension board) | GND |