ESP32 with Ultrasonic Sensor (HC-SR04)

🧠 What is an Ultrasonic Sensor?An ultrasonic sensor is a device that uses sound waves to detect how far something is.🧩 HC-SR04 Ultrasonic Sensor: Pinout and FunctionThe HC-SR04 sensor has 4 pins:PinNameFunction1VCCPower supply (+5V)2TrigTrigger pin – sends sound3EchoEcho pin – receives sound4GNDGround (0V)🔌 Pin Details and Use:VCC: Connect to +5V from your microcontroller or Arduino.GND: Connect to ground (GND).Trig (Trigger):You send a short pulse (about 10 microseconds) to this pin.This starts the sound wave.Echo:This pin goes HIGH (on) when the echo is being received.You measure how long it's HIGH to calculate distance.📏 Connection Example...

Read more...

How do I run a script at Pico on boot?

As per official documentation Step by step process for pico program run after power on:Save your python program on whatever device you're running thonny/vs code on.Make a copy of it called main.py Disconnect the pico.Now Hold down the bootsel button and reconnect the pico.Release the bootsel button once the pico has booted and the USB host has detected it as a mass storage device.Copy main.py to the mass storage device provided by the pico.Thats it your first program is ready to...

Read more...

ESP32 with Dot Matrix Display (MAX7219)

What is the Dot Matrix Display with MAX7219?A Dot Matrix Display is an arrangement of LEDs in a grid (commonly 8x8) used to display text, symbols, numbers, or animations. When combined with the MAX7219 driver chip, it becomes much easier to control multiple displays using just 3 wires (SPI) from the ESP32.🧠 Key Features of Dot Matrix with MAX7219FeatureDetailsDisplay TypeLED Dot Matrix (8x8 per module)Module DriverMAX7219InterfaceSPI-compatible (DIN, CLK, CS)Voltage5V (logic safe for ESP32)CascadableYes (multiple modules side-by-side)Control LibraryMD_Parola / MD_MAX72xxBrightness ControlYes (adjustable via software)⚙️ Pinout of MAX7219...

Read more...

ESP-NOW with ESP32

What is ESP-NOW?ESP-NOW is a wireless communication protocoldeveloped by Espressif, allowing ESP32 boards to send and receive data directly without Wi-Fi or internet.🧠 Key Features📡 Peer-to-peer communication (up to 20 devices)⚡ Low power and fast (few milliseconds delay)🔐 Encrypted data transmission🚫 No Wi-Fi router or internet needed🔁 Bi-directional communication supported🔌 Where to Use (Use Cases)🎮 Wireless joystick controller🏠 Smart home automation🚨 Personal safety devices (like Safeguard+)🌱 Remote environment sensors🚗 Vehicle-to-vehicle communication🎓 College projects requiring mesh or local network🛠️ Components Needed✅ 2x ESP32...

Read more...

ESP32 Joystick Controlled Robot Using ESP-NOW Protocol & L298N Motor Driver

ESP32 Joystick Controlled Robot Using ESP-NOW Protocol & L298N Motor DriverWireless bot control with speed adjustment via joystick tilt📝 IntroductionIn this project, we built a wireless robotcontrolled via a joystick and two ESP32 boardsusing the ESP-NOW communication protocol. Unlike Wi-Fi or Bluetooth, ESP-NOW enables fast, peer-to-peer data transfer between ESP32 devices using MAC addresses, making it ideal for real-time robot control.The robot’s movement and speed are controlled through analog joystick input, and an L298N motor driver handles motor driving on the receiving end.🔧 Hardware UsedComponentDescription2x ESP32One for sending...

Read more...