Internet of Things Project: An ESP8266 Example using the ESP8266 Arduino IDE

Today on Tinker & Build we’re building a beginner internet of things project. We explore how to use the ESP8266 Arduino IDE with the ESP8266 NodeMCU Development board to make an IOT project.

First, we walk through the steps of how to set up the NodeMCU dev board with the Arduino IDE, then we go through two common IOT tasks for your internet of things projects:

1.) Writing output over the ESP8266 wifi
2.) Reading input over wifi with the ESP8266 analog input

We use an LED for the output and a photoresistor for the input to the NodeMCU analog input. The NodeMCU connects to wifi and we can control the LED over wifi, which is a pretty good intro IOT project.

And that’s it for our Arduino ESP8266 Tutorial! Links to the parts, circuit diagrams, and credits below:


The Code and Circuit Diagrams:

Where you can buy the tools and materials:

[✓] HiLetgo NodeMCU LUA WiFi Internet ESP8266 Development
[✓] MicroUSB cord (to connect the NodeMCU to your laptop)
[✓] Photoresistors
[✓] Jumper Wires
[✓] Breadboard
[✓] LEDs
[✓] 10K Resistors

– OR –

Instead of buying resistors and LED’s separately, it might be a good idea to get a starter kit of a variety of components so you have them on hand. There are lots on Amazon, here’s a good example of one:

[✓] Variety of Electronic Components

– OR –

You also can get a variety of components in an Arduino starter kit if you plan on doing any Arduino projects (NOTE: It does NOT include the NodeMCU board, that’s a different thing – and the kits for the NodeMCU aren’t great yet because its still new) – here’s the kit I’ve used in the past:

[✓] Arduino Starter Kit with board (LEDs, Resistors, Breadboard included)


This video was inspired by this Instructables Blog:

More info on how to use a photoresistor:

Links about NodeMCU Esp8266 Pin Mappings

Fritzing NodeMCU part courtesy of squix78

ESP8266: NodeMCU V1.0 part created for Fritzing


Esp Module OEM Located in China

Shenzhen Eastwin Trading Limited.

Shenzhen Eastwin Trading Limited is devoted to Esp Module mfg based in Shenzhen , China. We provide you with extensive solutions, for instance R&D support, prototype service, technical consultation, material sourcing, Esp Module producing solution, conformal coating, washing, in-circuit test, functionality test, burn-in test, environment test, logistics and after-sales service. We continually work to offer the highest quality service to our customers with constructive techniques and constant device quality.

We have helped a great number of well-known shoppers who give full attention to marketing and advertising and designing. Our things are largely utilised in the safety and security, industrial, health related, network, automatic, measuring, counter device and various other domains. With several years of expertise, we have received a good name among customers in the electronic production field for fair prices, rich resources and quick delivery. Our mfg plants comprise clean work spaces and reliable speedy SMT production lines.

We have won ISO9001:2000, ISO14001, UL and additionally RoHS qualifications. Nowadays our Esp Module capacity daily goes to 1,000 square meters, and Esp Modules can easily achieve 100million units on a monthly basis.

We’ll persist the supervision concept of “Quality superior, Service supreme, Reputation first” to make available the most beneficial service for our worldwide shoppers. We are getting excited about being your long-term business partner!

Get in Touch with Us

Name: Alex Ke(Marketing Representative)
Telephone Number: +86-755-23573370-803
Cell Phone: +86-13420963146



MOKOSmart White Label Plan

MOKOSmart is a skilled developer specializing in the research, development and producing of smart devices. We offer a selection of options for our prospective partners just like wholesale program, white-label solution, EMS(Electronics Manufacturing Service) and ODM program. Basically, we can offer fully developed items for you to direct sell, and likewise supply you with a custom-made service to suit your requirement.

At present, our enterprise has over 200 team members, of which around 20 technicians center on activity trackers. Our one-stop service comprises of design, development, manufacturing, and after-sales service. We have created a modern production line for activity tracker business, which is backed up with state-of-the-art manufacturing technology to ensure the best quality.

Nowadays, our products include activity tracker, WIFI smart plug, Bluetooth beacon, Bluetooth modules, Esp Modules, etc.

Get in Touch with Us

Contact form:
Address: 4F, Building #2, Guanghui Science Park, MinQing Rd, Longhua, Shenzhen City, China 518109


Leave a Comment

Your email address will not be published. Required fields are marked *