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 http://amzn.to/2eUd2gx
[✓] MicroUSB cord (to connect the NodeMCU to your laptop) http://amzn.to/2wZhUL9
[✓] Photoresistors http://amzn.to/2xvF8dd
[✓] Jumper Wires http://amzn.to/2wZwfFQ
[✓] Breadboard http://amzn.to/2f33Euu
[✓] LEDs http://amzn.to/2wnH0zE
[✓] 10K Resistors http://amzn.to/2wZ7BXf
– 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 http://amzn.to/2f4fvbG
– 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) http://amzn.to/2f35qMa
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
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: https://mokosmart.com/contact/
Address: 4F, Building #2, Guanghui Science Park, MinQing Rd, Longhua, Shenzhen City, China 518109