ESP32 with L298N DC Motor Driver

 08-06-2025🔧 Basic IntroductionL298N is a dual H-Bridge motor driver IC that allows controlling the direction and speed of two DC motors or one stepper motor.It operates on high voltage and high current, making it suitable for robotics and mechatronics applications.⚙️ Technical SpecificationsOperating Voltage: 5V to 35V (Motor supply); 5V logic supply.Current Handling: Up to 2A per channel continuously.Logic Level Inputs: Compatible with 5V logic (Arduino, ESP32, etc.).Heat Sink: Comes with a built-in heat sink to dissipate heat during high load.Control Pins: IN1, IN2, IN3, IN4 to control motor direction.Enable...

Read more...

ESP32 Setup in Arduino IDE

ESP32 Board are so popular? Mainly because of the following featuresLow-costBluetoothWiFiLow PowerDual CoreHigh GPIO PINCompatiblityMultiple Language supportSetup ESP32 with Arduino IDETo be able to program the ESP32 using Arduino IDE, you need to add support for the ESP32 boards. Follow the next steps:Go to File > Preferences.Enter the following into the “Additional Board Manager URLs” field. This will add support for ESP32 and ESP8266 boards as well.https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.jsonSee the figure below. Then, click the “OK” button.Open the Boards Manager. Go to Tools > Board >Boards Manager…Search for...

Read more...

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...