Git Product home page Git Product logo

arduino-esp8266-nodemcu's Introduction

Arduino-ESP8266-NodeMCU

A collection of simple Arduino examples for using the NodeMCU (ESP8266) within the Arduino programming environment (IDE).

The code examples were created for an »Introduction to NodeMCU« Workshop, at the Retune Festival in 2018 (https://retunefestival.de).

If you are about to start with NodeMCU, we recommend you to start with the first example and go through them step by step, as the examples will become more advanced.

We also recommend checking out the following links to get you into it:

Quick-Notes

Node MCU driver: https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

Add ESP8266 as Additional Boards to your Arduino IDE

Arduino adding boards

http://arduino.esp8266.com/stable/package_esp8266com_index.json

Arduino Settings for NodeMCU Arduino Settings

NodeMCU Pin Map Pin Map Images

Examples

01 Local Server

examples using the NodeMCU (ESP8622) as a local server to interact or display sensor data via basic html pages

a_localServer_led

LED controlled by local Webpage (served by the ESP-Module itself) first example webpage

b_localServer_led_hostName

LED controlled by local Webpage (served by the ESP-Module itself) + create hostname using mDNS (Multicast DNS) Serial-Console, host name example

c_localServer_led_hostName_moreAdvancedServer

more advanced local web server running on the NodeMCU (ESP8266), still turning on the on-board LED, but the website looks better more advanced web server

d_localServer_sensorValue

reading a light sensor (LDR) and displaying the value on a local Webpage (served by the ESP-Module it self).

LDR setup

Be aware: Input voltage range of bare ESP8266 is 0—1.0V. The operating Voltage is 3.3V. Therefore the NodeMCU (v1.0) has a voltage-divider circuit at Pin A0. If you have a different Board-Setup please check if you need to add the voltage divider circuit to your setup.

Voltage Divider

LDR webpage

02 web example (easyIOT-cloud.com)

EasyIotCloud https://easyiot-cloud.com/ is a free of charge IOT online plattform, offering an Arudino library to send and receive data tru an RestApi. EasyIOT-Could is very convenient for storing and displaying data, Remote controlling outputs,or being used as a bridge between an input and an output device.

Further tutorials and guidance can be found here: https://iot-playground.com/build

You can dowload the arduino library here: https://iot-playground.com/blog/2-uncategorised/67-arduino-esp8266-ide

a_EasyIotCloud_button

reading the onboard button input (D3 / GPIO 0) and sending »button pressed« to EasyIotCloud https://easyiot-cloud.com/

easyIOT-cloud website showing a button recording

if you want to use an external button and led you can set it up as following:

button + led scematic

button + led breadboard

b_EasyIotCloud_ldr

Sending value of the analogInput pin (ADC / A0) to EasyIotCloud https://easyiot-cloud.com/--> sending LDR sensor value to a web server

easyIOT-cloud website showing a LDR sensor recording

Copyleft

The examples are based on several different sources. Please see the individual example files for references.

Licensed under the GNU Lesser General Public License. See license.txt for further details.

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.