Skip to content

Instantly share code, notes, and snippets.

@iayanpahwa
Last active February 17, 2020 17:52
Show Gist options
  • Save iayanpahwa/d62f5d8d2d6389f3ed7bd90010465f11 to your computer and use it in GitHub Desktop.
Save iayanpahwa/d62f5d8d2d6389f3ed7bd90010465f11 to your computer and use it in GitHub Desktop.
Getting up and running on Arduino for IoT using ESPxx
Step 1 : Install latest Arduino IDE
Go to https://www.arduino.cc/en/Main/Software and install latest arduino IDE for your OS
Step 2 : Install USB to TTL Drivers
NodeMCU bords which we will be using in this workshop comes with SiliconLabs CP2102 USB to TTL convertor.
While most OS these days support this chip out the box, if not !! install the drivers from here:
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
Step 3: Install ESP core for Arduino IDE
This step will install the board support package for ESP8266 boards as well as compiler and flashing tool
3.1 Open Arduino IDE > file > prefrences and add following url to Additional Board Managers url field: https://arduino.esp8266.com/stable/package_esp8266com_index.json
3.2 Go to tools > Board Manager and search for "ESP8266"
3.3 Install the latest version
3.4 Close and restart the arduino IDE
3.5 Go to tools > boards and select > NodeMCU 1.0 (ESP 12-E Module)
Step 4: Install required libraries
4.1 Go to sketch > Include Library > Manage Library
4.2 Search for "DHT11"
4.4 Install DHT sensor library, a pop up will ask to install depenedent libraries > click downlod all
4.5 In same way install "PubSubClient" library
5.6 Close and restart the arduino IDE
Step 5: Verify everything works
5.1 Go to and open file > examples > basic > blink
5.2 Make sure nodeMCU board is selected from step 3
5.3 Go to sketch > verify/compile
5.4 The program should compile without any error if not check above steps
Step 6: Buckle up for the workshop, it's gonna be amazing because if you've successfuly completed above steps:
YOU ARE AMAZING ^_^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment