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

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