Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide

Components and supplies

SparkFun esp8266
×1
Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide
Arduino UNO
×1
Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide
SparkFun Logic Level Converter - Bi-Directional
×1
Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide
Breadboard (generic)
×1
Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide
Jumper wires (generic)
×1

Apps and online services

Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide
Arduino IDE
circuito.io
Firmware.ino
Software serial

About this project

Our goal was to create an Esp8266 AT command library (based on the ITEAD library), that would work well on software serial on most ESP8266 devices, provided they have firmware that responds to AT commands (which is usually the manufacturer default).

We are distributing this preliminary library for testing and would appreciate your feedback and improvements through the Github Repository.

1. Stuff you need:

  • Arduino Uno (and Arduino IDE installed)
  • ESP8266
  • Logic Level Converter

2. Wiring

connect the ESP8266 via Software Serial to your Arduino Uno board using a logic converter, as shown in the wiring figure attached.

Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide

3. Connect to your home Wi-Fi

Open the Firmware.ino library from Github and enter your SSID and the PASSWORD to your Wi-Fi:

const char *SSID= "WIFI-SSID";
const char *PASSWORD="WIFI-PASSWORD";

4. Upload the sketch to your Arduino

Connect the Arduino to your computer and upload the sketch.

5. Open serial monitor in Arduino IDE

Click on the Serial monitor button in the Arduino IDE (in the top-right corner). If everything is OK, you should see the following output on the serial monitor:

Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide

6. Troubleshooting

If you get no response, try updating the ESP firmware to the one provided below. Use a 3.3v FTDI board like this one.

Integrating Arduino Uno with ESP8266: A Step‑by‑Step Guide
  • Hookup the ESP to the FTDI Get the ESP8266Flasher
  • Get the 1.1.1.1 Firmware
  • Flash the ESP

If you receive partial response from the esp8266 when using software serial, go to: C:\ProgramFiles(x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial\src\SoftwareSerial.h

Change line 42:

#define _SS_MAX_RX_BUFF 64 // RX buffer size

To:

#define _SS_MAX_RX_BUFF 256 // RX buffer size. 

This will enlarge the software serial buffer. Sometimes setting the baud rate on initialization fails, try resetting the Arduino, it should work fine. If for some reason, you are still having trouble, please comment here so we will try to locate the problem. If you have any improvement suggestions, please do a pull request on Github.

Generally, this code should work for all Arduino Uno ESP8266-01 versions.

Your feedback is most welcome!

Code

Arduino Uno ESP 8266-01 software serial integration
This is the GIT repository you'll need in order to make the connectionhttps://github.com/Circuito-io/ESP8266_SoftwareSerial

Schematics

Integrating Arduino Uno with ESP8266: A Step‑by‑Step GuideIntegrating Arduino Uno with ESP8266: A Step‑by‑Step GuideIntegrating Arduino Uno with ESP8266: A Step‑by‑Step Guide

Manufacturing process

  1. DIY Arduino Word Clock – Build a Sleek Real-Time Display
  2. DIY Arduino USB Gaming Controller – Build Your Own High-Performance Gamepad
  3. Build a Basic Calculator with Arduino UNO – Easy Project
  4. Build a Portable Persistence of Vision Display with Arduino UNO and ATtiny85
  5. Effortless Arduino Stopwatch: Build a Button-Activated Chronometer
  6. Smart Gesture-to-Text Hand Glove for Sign Language
  7. Arduino DMX-512 Tester Controller – Full Parts Kit for Reliable Lighting Control
  8. Smartphone-Based Temperature Monitoring System with Arduino and Bluetooth
  9. Arduino Laser Tripwire Project: Build a Simple Intrusion Detector
  10. Arduino UNO Guitar Pedal: DIY, Open‑Source, Beginner‑Friendly