ESP8266

Unlock the potential of the ESP8266. Explore beginner-friendly guides, cost-effective project builds, and essential tips for using this popular and affordable Wi-Fi enabled microcontroller. Ideal for those venturing into the world of IoT on a budget.

15 tutorials in this category
Getting Started with ESP82661

Getting Started with ESP8266: A Beginner’s Guide

Introduction The ESP8266 is one of the most popular Wi-Fi microcontrollers used in IoT (Internet of Things) and embedded systems. It’s low-cost, powerful, and easy to program, making it perfect for beginners who want to build smart devices such as Wi-Fi switches, temperature monitors, and home automation systems. In this tutorial, you’ll learn what ESP8266 […]

LED Blink ESP8266 Example2

LED Blinking with ESP8266: Step-by-Step Tutorial for Beginners

Introduction The Blink LED program is the first step for anyone learning micro controllers. With the ESP8266 Wi-Fi micro controller, it’s even more exciting because you can later control LEDs through Wi-Fi and IoT platforms. In this tutorial, we’ll blink an external LED using ESP8266 and Arduino IDE as in the previous tutorial we explained […]

LDR measure light level using ESP82663

LDR with ESP8266: Measure Light Intensity Step by Step

Introduction The LDR (Light Dependent Resistor) is a simple but powerful sensor that detects light intensity. Its resistance decreases when light falls on it, and increases in darkness. By connecting an LDR with an ESP8266 Wi-Fi microcontroller, you can build smart IoT projects like: In this tutorial, you’ll learn how to connect an LDR with […]

RGB LED Blinking Example using ESP82664

RGB LED with ESP8266 (NodeMCU / Wemos D1 Mini)

Introduction RGB LEDs are special LEDs that combine Red, Green, and Blue in one package. By adjusting the brightness of each color, you can create millions of colors 🌈. In this tutorial, you’ll learn: This project is beginner-friendly and helps you understand analogWrite (PWM) on ESP8266. What You Need Understanding RGB LEDs There are two […]

LED Brightness Control using PWM on ESP82665

LED Brightness Control using PWM on ESP8266

Introduction The ESP8266 does not have a true analog output, but it uses PWM (Pulse Width Modulation) to simulate it. With PWM, you can adjust the LED brightness smoothly instead of just turning it ON or OFF. In this tutorial, you will learn: What is PWM? PWM stands for Pulse Width Modulation. On ESP8266, the […]

ESP8266 Buzzer6

Buzzer with ESP8266 (NodeMCU/Wemos D1 Mini)

Introduction Buzzers are small devices that produce sound. They are often used in alarms, timers, and notification systems. With ESP8266, you can control buzzers to create beeps, tones, and even simple melodies. There are two types of buzzers: 👉 In this tutorial, we’ll cover both. Components Required Circuit Diagram Text description (for D5 / GPIO14): […]

Push Button with ESP8266 (NodeMCU / Wemos D1 Mini)7

Push Button with ESP8266 (NodeMCU / Wemos D1 Mini)

Introduction A push button is a simple switch that connects or disconnects a circuit when pressed. With ESP8266, push buttons are used for: In this tutorial, we’ll learn how to: Components Required Circuit Diagram We’ll connect the button to GPIO D5 (GPIO14). Wiring: 👉 This means the button is normally HIGH, and goes LOW when […]

DHT11 / DHT22 with ESP8266 (NodeMCU / Wemos D1 Mini)8

DHT11 / DHT22 with ESP8266 (NodeMCU / Wemos D1 Mini)

Introduction The DHT11 and DHT22 are widely used sensors to measure temperature and humidity. In this tutorial, you’ll learn how to: Introduction The DHT11 and DHT22 are widely used sensors to measure temperature and humidity. In this tutorial, you’ll learn how to: DHT11 vs DHT22 Comparison Feature DHT11 DHT22 (AM2302) Temperature Range 0°C to 50°C […]

MQ-2 Gas Sensor with ESP8266 | Gas & Smoke Detection Tutorial9

MQ-2 Gas Sensor with ESP8266 | Gas & Smoke Detection Tutorial

Introduction The MQ-2 gas sensor is one of the most popular sensors used in embedded systems and IoT projects for detecting harmful gases in the air. It can detect gases like LPG, methane, butane, smoke, alcohol, and hydrogen. Because of its low cost and wide availability, it is commonly used in home safety systems, industrial […]

Single Channel Relay with ESP8266 (Step-by-Step Guide)10

Single Channel Relay with ESP8266 (Step-by-Step Guide)

Introduction A relay module is an electrically operated switch that allows the ESP8266 to control high-voltage devices like lamps, fans, and home appliances using its low-voltage GPIO pins. Since ESP8266 works at 3.3V logic, it cannot directly switch high-power loads. That’s why we use a single channel relay module, which acts as a bridge between […]

ESP8266 Potentiometer11

Trimmer Potentiometer with ESP8266 (Step-by-Step Guide)

Introduction A potentiometer is a variable resistor that allows you to adjust resistance manually. A trimmer potentiometer (or trimpot) is a small, adjustable version usually used on PCBs for fine-tuning voltage, brightness, contrast, or calibration in circuits. When we connect a trimmer potentiometer with the ESP8266, we can use it as an analog input device. […]

ESP8266 Potentiometer LED12

Trimmer Potentiometer Controlling LED Brightness with ESP8266

Introduction A trimmer potentiometer is a small adjustable resistor used to vary voltage levels in a circuit. The ESP8266 has an ADC pin (A0) that can read the voltage from the potentiometer and convert it into values between 0 and 1023. On the other hand, the ESP8266 supports PWM (Pulse Width Modulation) on most GPIO […]

ESP8266 PIR Motion Sensor13

HC-SR501 PIR Motion Sensor with ESP8266

Introduction The HC-SR501 PIR (Passive Infrared) Motion Sensor is one of the most widely used sensors for detecting human and animal movement. It works by detecting changes in infrared radiation (heat) emitted by living beings. When motion is detected, the sensor outputs a HIGH signal, which can be read by a microcontroller like the ESP8266. […]

ESP8266 Soil Moisture Sensor14

Capacitive Soil Moisture Sensor with ESP8266

Introduction A Capacitive Soil Moisture Sensor is an advanced version of the traditional resistive soil moisture sensor. Unlike resistive sensors, which corrode easily due to direct exposure to water and soil electrolytes, the capacitive sensor uses capacitance to measure moisture levels. This makes it more durable, accurate, and long-lasting. When soil is wet, its dielectric […]

ESP8266 HC-SR04 Distance Sensor15

HC-SR04 Ultrasonic Sensor with ESP8266

Introduction The HC-SR04 Ultrasonic Sensor is widely used to measure distance by emitting ultrasonic waves and measuring the time it takes for the echo to return. It works like sonar: The ESP8266 reads this timing and converts it into centimeters (cm) or inches (in). Ultrasonic sensors are commonly used in robotics, automation, parking sensors, and […]