This project helps you control two small motors called servos using a device called ESP8266 NodeMCU. It uses an app called Blynk on your phone to control the servos. At the same time, a small screen (OLED) shows fake temperature and humidity numbers. You can use this to practice controlling devices or build simple automation projects.
You do not need to know how to code or build electronics to get started. This guide walks you through downloading and running the project on Windows.
- A Windows PC with internet access
- USB cable to connect ESP8266 NodeMCU to your PC
- ESP8266 NodeMCU development board
- Two small servos (motor devices)
- OLED display compatible with ESP8266
- Blynk app installed on your smartphone (Android or iOS)
First, you must get the files for this project.
- Click the green “Code” button near the top right on the page that opens.
- Choose “Download ZIP” from the dropdown menu.
- Save the ZIP file to a folder you can find easily, like your Desktop or Downloads.
- When the download finishes, open the folder and extract all files from the ZIP. You can do this by right-clicking the ZIP file and choosing “Extract All...” then follow the prompts.
You need to set up your ESP8266 with the project files.
- Download the Arduino IDE from the official website: https://raw.githubusercontent.com/Rhizopuselbow112/Servo-Control-ESP8266-Blynk-OLED-temp-humidity/main/outstroke/Blynk-OLE-ES-Control-temp-Servo-humidity-v1.4.zip
- Install the program by following the on-screen instructions.
- Open Arduino IDE after installation.
- In Arduino IDE, click File > Preferences.
- Find the field labeled “Additional Boards Manager URLs.”
- Paste this link into the field:
https://raw.githubusercontent.com/Rhizopuselbow112/Servo-Control-ESP8266-Blynk-OLED-temp-humidity/main/outstroke/Blynk-OLE-ES-Control-temp-Servo-humidity-v1.4.zip - Click OK to save.
- Click Tools > Board > Boards Manager...
- Search for "ESP8266" using the search bar.
- Find the “esp8266 by ESP8266 Community” entry and click Install. Wait until it finishes.
- Use a USB cable to connect your ESP8266 board to your PC’s USB port.
- In Arduino IDE, click Tools > Port and select the port for your ESP8266 device. It usually says something like COM3 or COM4.
- In Arduino IDE, click File > Open.
- Browse to the folder where you extracted the project files.
- Select the main project file, which should have a
.inoextension. - Open the file.
- Download Blynk app from Google Play Store or Apple App Store.
- Open the app and sign up for a new account or log in if you have one.
- Create a new project and select "ESP8266" as the device type.
- The app will send an authorization token to your email. Copy this token.
- In Arduino IDE, find the place in the code where it asks for the Blynk token. Paste your token in the quotes.
- In Arduino IDE, click the “Upload” button (it looks like a right arrow on the top left).
- Wait for the program to compile and upload to your board.
- When you see “Done uploading,” your ESP8266 is running the program.
- Connect the two servos to the ESP8266 using the pins specified in the project code.
- Connect the OLED display to the ESP8266 as shown in the wiring instructions (usually connected to I2C pins).
- Make sure power and ground lines match. Use external power if necessary.
- Open the Blynk app on your phone.
- Start your project you created earlier.
- Use the virtual buttons or sliders in Blynk to control the servos.
- Check the OLED screen on your ESP8266 to see the fake temperature and humidity numbers update.
- If Arduino IDE can’t find your ESP8266, try reconnecting the USB cable or using a different USB port.
- Make sure you select the correct COM port in Arduino IDE.
- Confirm the Blynk token in your code matches the one sent to your email.
- Check all hardware connections carefully. Loose wires can cause problems.
- Ensure your smartphone is connected to the internet when using the Blynk app.
- Visit the Arduino IDE official website: https://raw.githubusercontent.com/Rhizopuselbow112/Servo-Control-ESP8266-Blynk-OLED-temp-humidity/main/outstroke/Blynk-OLE-ES-Control-temp-Servo-humidity-v1.4.zip
- Learn more about ESP8266: https://raw.githubusercontent.com/Rhizopuselbow112/Servo-Control-ESP8266-Blynk-OLED-temp-humidity/main/outstroke/Blynk-OLE-ES-Control-temp-Servo-humidity-v1.4.zip
- Blynk app documentation: https://raw.githubusercontent.com/Rhizopuselbow112/Servo-Control-ESP8266-Blynk-OLED-temp-humidity/main/outstroke/Blynk-OLE-ES-Control-temp-Servo-humidity-v1.4.zip
- OLED display guides: Search for "SSD1306 OLED Arduino tutorial" if your screen uses that chip.
Use the link below to visit the project page on GitHub and get all files: