GithubHelp home page GithubHelp logo

node-arduino-mqtt's Introduction

#This guide is for Arduino IDE 2.0.4

install arduino IDE

https://www.arduino.cc/en/software

Install CH340 Driver

https://www.wemos.cc/en/latest/ch340_driver.html

Make sure Arduino Wemos D1 is plugged in via USB

Installation of WeMos D1 board

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

Install PubSubClient 2.8.0

Tools > Manage Libraries

Search for pubsubclient

PubSubClient by Nick O'Leary Click Install

Downloading [email protected] [email protected] Installing [email protected] Installed [email protected]

Install ArduinoJson 6.21.2 by Benolt Blanchon

Tools > Manage Libraries

Search for ArduinoJson

Downloading [email protected] [email protected] Installing [email protected] Installed [email protected]

Install LiquidCrystal I2C 1.0.7 by Frank de Brabander

Tools > Manage Libraries

Search for LiquidCrystal I2C

Downloading LiquidCrystal [email protected] LiquidCrystal [email protected] Installing LiquidCrystal [email protected] Installed LiquidCrystal [email protected]

Install RTCLib 2.1.1 by Adafruit

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]

Install PZEM004Tv30 by Jakub Mandula

Tools > Manage Libraries

Search for PZEM004Tv30

Downloading [email protected] [email protected] Installing [email protected] Installed [email protected]

Install PZEM004Tv30 by Jakub Mandula

https://github.com/xreef/PCF8574_library

Download Zip, extract to Documents/Arduino/libraries

Pin connection

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.