Skip to main content

Posts

ESP32 Web Server LED Control - ESP32 IOT Projects

  Components Required ESP32 Development Board 2 × LEDs (any color) 2 × 220Ω resistors Breadboard & jumper wires USB cable for programming ESP32 Circuit Connection : Connect LED1 anode (long leg) → 220ohm resistor → GPIO16. Connect LED2 anode (long leg) → 220ohm resistor → GPIO17. Both LED cathodes (short leg) → GND. Step 1: Install Arduino IDE & ESP32 Board Download and install the Arduino IDE from Arduino.cc . Add ESP32 board support: Go to File > Preferences. In Additional Board Manager URLs, add: https://dl.espressif.com/dl/package_esp32_index.json Go to Tools > Board > Board Manager, search ESP32, and install. Step 2: Connect ESP32 and Select Board Plug ESP32 into your computer with USB cable. In Arduino IDE: Go to Tools > Board → Select ESP32 Dev Module. Select the correct Port. Step 3: Full Arduino Code #include <WiFi.h> // Replace with your network credentials const char* ssid = "YOUR_WIFI_SSID"; const char* password = "YOUR_WIFI_PASSWORD...

Controlling Servo Motor With MPU6050 Gyro Sensor Using ESP32 Beginners Projects

  Controlling Servo With MPU6050 Gyro Sensor Using ESP32 - Servo Control Using ESP32 MPU6050 measures accelerometer + gyroscope. Code calculates pitch from accelerometer (X tilt). The pitch (range -90° to +90°) is mapped to servo angles (0°–180°). The servo on GPIO 13 moves according to tilt. 📌 Wiring:- MPU6050 → ESP32 VCC → 3.3V GND → GND SDA → GPIO 21 (default I²C SDA on ESP32) SCL → GPIO 22 (default I²C SCL on ESP32) Servo → ESP32 Signal (orange/yellow) → GPIO 13 VCC (red) → 5V (use external supply if possible, not directly from ESP32) GND (black/brown) → GND (common ground with ESP32 & MPU6050) ⚠️ Important: Servos draw a lot of current → use an external 5V supply for the servo, not just the ESP32’s 5V pin. Full Code:-  #include <Wire.h> #include <Adafruit_MPU6050.h> #include <Adafruit_Sensor.h> #include <ESP32Servo.h> Adafruit_MPU6050 mpu; Servo myServo; int servoPin = 13;  // PWM pin for servo void setup() {   Serial.begin(1152...

DIY ORTOMI ROBOT FACE USING ESP32 CONNECTION DIAGRAM

  0.96” I2C   28x64 SSD1306 OLED Display Wiring :- VCC – 3.3V GND – GND SCL(OLED) – GPIO 22 ( ESP32 ) SDA(OLED) – GPIO 21 ( ESP32 )   TTP223 Touch Sensor Wiring :- VCC – 3.3V {Add 10R resistor with this pin} (ESP32) GND – GND (ESP32) I / O   – GPIO 14 (ESP32)   Speaker OR Buzzer :-   + POSITIVE –   GPIO 25 (ESP32) - NEGETIVE - GND (ESP32)   Required Libraries to Install:- Adafruit_GFX Adafruit_SSD1306 Wire     Note:- Download Emotions.h and SoundFX.h file for link below and paste in same folder where code.uno file save.     Full Code:- RobotFace.ino #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> //#include "Emotions.h" #include "Emotions_CLEAN.h" #include "SoundFX.h"   #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 #define OLED_RESET     -1 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_H...

Clap On Off Switch Circuit Using Arduino

  Arduino Clap LED program #define MicAO 8 int ledPin = 13; int clap = 0; long detection_range_start = 0; long detection_range = 0; boolean status_lights = false; void setup() {   pinMode(MicAO, INPUT);   pinMode(ledPin,OUTPUT);   } void loop() { int status_MicAO = digitalRead(MicAO); if (status_MicAO == 0) { if (clap == 0) { detection_range_start = detection_range = millis(); clap++; } else if (clap > 0 && millis()-detection_range >= 50) { detection_range = millis(); clap++; } } if (millis()-detection_range_start >= 400) { if (clap == 2) { if (!status_lights) { status_lights = true; digitalWrite(ledPin, HIGH); } else if (status_lights) { status_lights = false; digitalWrite(ledPin, LOW); } } clap = 0; } }

LED Chaser Using Arduino Nano Project For Beginners

Creating a Swastik style LED chaser using an Arduino Nano is a fascinating project that combines art and technology, allowing you to explore the realms of electronics and programming while producing a visually striking display. The Swastik symbol, with its rich cultural and historical significance, makes for a unique LED pattern that can bring vibrancy to any setting. In this project, you'll learn how to wire up multiple LEDs to your Arduino Nano, write a simple program to create a mesmerizing chaser effect, and gain hands-on experience with coding, circuit design, and troubleshooting. Whether you’re a beginner or an experienced maker, this guide will walk you through the entire process, from setup to execution, ensuring that you can create your own stunning LED display in no time. Let’s illuminate your creativity! Here is the code below,- void setup() {  pinMode(2,OUTPUT);  pinMode(3,OUTPUT);  pinMode(4,OUTPUT);  pinMode(5,OUTPUT); } void loop() {  //effect 1 ...

How To Make Radar With Arduino UNO Using Ultrasonic Sensor

  Creating a radar system with an Arduino UNO and an ultrasonic sensor involves a few straight forward steps. First, you'll need to connect the ultrasonic sensor's trigger pin to one of the Arduino’s digital output pins and the echo pin to a digital input pin. Then, write a simple Arduino sketch to send a pulse from the trigger pin and measure the duration of the pulse received on the echo pin. This duration, proportional to the distance of an object from the sensor, can be calculated using the speed of sound. By continuously taking readings and mapping them to distances, you can plot these measurements to visualize objects in your environment, effectively creating a basic radar system. To display the results, you could use a serial monitor or even integrate an LCD display for real-time feedback. Here is the code below ,- //radar.ino #include <Servo.h>  const int trigPin = 9; const int echoPin = 8; long duration; int distance; Servo myServo;  void setup() {   p...

Patanjali Divya Medha Vati Extra Power Benefits - Patanjali Divya Medha Medha Vati Ke Fayde

Patanjali Divya Medha Vati Extra Power benefits and side effects. Patanjali Divya Medha Vati ke fayde,पतंजलि दिव्य मेधा वटी एक्स्ट्रा पावर के फायदे।  Patanjali Divya Medha Vati Extra Power : Amazon Click Here Patanjali Official Site Click Here