Motion Detected: ESP32 with PIR Sensor (HC-SR501)

🧠 What is a PIR Sensor?PIR = Passive Infrared SensorA PIR sensor detects motion by measuring changes in infrared radiation.Every warm object (like humans and animals) emits infrared (IR) radiation.PIR sensors don’t emit anything; they only detect IR changes. That’s why they are called passive.🧪 How Does It Work?The PIR sensor has two slots made of pyroelectric sensors.When a human or animal moves in front of the sensor, one slot sees more IR radiation than the other.This sudden change causes a voltage difference and the sensor outputs HIGH (3.3V or 5V) for a short...

Read more...

ESP32 with SIM900A GSM Module

📡 What is SIM900?The SIM900 is a GSM/GPRS module from SIMCom. It allows microcontrollers like ESP32 or Arduino to:✅ Send/receive SMS✅ Make/receive phone calls✅ Connect to the Internet (GPRS)✅ Send data to servers via HTTP, MQTT, TCP/IPIt communicates via UART (TX/RX) and uses AT commands.📦 Features of SIM900FeatureDescriptionNetwork2G GSM (850/900/1800/1900 MHz)CommunicationUART (AT commands)Baud RateDefault 9600SIM CardStandard-size SIM (2G supported)Power Supply5V–12V, 2A recommendedAntennaRequired for GSM signalOptionalMic & Speaker (for calls)🔌 SIM900 to ESP32 ConnectionSIM900 PinESP32 PinTXGPIO 16 (ESP32 RX)RXGPIO 17 (ESP32 TX)GNDGNDVCC⚠️ External 5V 2A power supply⚠️ DO NOT power SIM900 directly from ESP32 or USB....

Read more...

Rotary Encoder with Esp32

 23-07-2025📌 What is a Rotary Encoder?A rotary encoder is an electro-mechanical sensor that converts the angular position or motion of a rotating shaft into digital signals. Unlike a potentiometer, it can rotate infinitely in either direction and is commonly used in digital volume knobs, step selection, or menu navigation.In this blog post, we will explore the functionality, applications, and code implementations of rotary encoders with the ESP32 microcontroller.They are crucial for applications requiring precise control and feedback, making them essential components in various electronic devices and systems.There...

Read more...

DFPlayer Mini with Esp32

🎵 What is DFPlayer Mini?The DFPlayer Mini is a tiny, standalone MP3 audio player module. It can play audio files (MP3/WAV) stored on a microSD card. You can control it through:Serial communication (UART with ESP32 or Arduino)Built-in IO pins (for button-triggered audio)Library-based commands to control volume, play/pause, next, loop, etc.📦 DFPlayer Mini PinoutPinFunctionVCCPower (3.2V–5V)GNDGroundTXSerial Transmit (connect to ESP32 RX)RXSerial Receive (connect to ESP32 TX)SPK1, SPK2Speaker output (mono, 3W)DAC_L/RStereo line out (for headphones/amp)IO1/IO2Button controlBUSYLOW when playing🔌 Wiring DFPlayer Mini with ESP32🔧 ESP32 to DFPlayer Mini (Serial Connection):DFPlayer PinESP32...

Read more...

ESP32 with TCS34725 RGB Sensor

🎨 What is the TCS34725?The TCS34725 is a color sensor made by AMS (now part of Renesas).It detects Red, Green, Blue, and Clear light (ambient).🧠 Key Features:Detects RGB colorsI2C interface (perfect for ESP32)Built-in IR filter for accurate color detectionBuilt-in white LED for illuminationMeasures light intensity (lux) and color temperature (K)🧰 What You NeedComponentDescriptionESP32 boardAny variant (e.g., DevKit V1)TCS34725 sensor moduleUsually via I2CJumper wiresFemale-to-male if neededLibraryAdafruit_TCS34725📌 TCS34725 PinoutTCS34725 PinConnect To ESP32VIN3.3V or 5VGNDGNDSDAGPIO 21 (I2C SDA)SCLGPIO 22 (I2C SCL)You can change SDA/SCL in software if needed, but 21/22 are default.📚 Step 1: Install Libraries in Arduino IDEGo to Sketch...

Read more...