MPU6050 Accelerometer and Gyro with Arduino: Tilt Angle
Wire an MPU6050 (GY-521) to Arduino over I2C, read raw accelerometer and gyro data, calculate tilt angle with atan2 and smooth it with a complementar…
Namaste, maker 👋
Build your first circuit, program a microcontroller, and learn how everyday electronics work.
Browse tutorials Watch on YouTube
Wire an MPU6050 (GY-521) to Arduino over I2C, read raw accelerometer and gyro data, calculate tilt angle with atan2 and smooth it with a complementar…
Measure a 12 V or 7.4 V battery with Arduino A0 using a voltage divider. Formula, wiring table, calibration, low-battery alarm code and fixes.
Learn to use a 5V relay module with Arduino to switch a 12V DC lamp or fan. Pinout, COM/NO/NC, active-LOW logic, code and safety rules.
Build a learning gas and smoke alarm with the MQ-2 sensor, Arduino Uno and buzzer. Wiring, warm-up, calibration, code and safety notes.
Build a motion alarm with an HC-SR501 PIR sensor, Arduino Uno, LED and buzzer. Pin table, commented code, sensor tuning and troubleshooting.
Build an Arduino distance meter with the HC-SR04 ultrasonic sensor and a 16x2 I2C LCD. Wiring table, full code, calibration and fixes.
Upload your first Arduino Uno program. Install Arduino IDE, fix COM port and CH340 driver issues, and blink the built-in and an external LED.
Build a 4-servo robotic arm controlled by potentiometers with Arduino. Separate 5 V servo supply, wiring table, smooth jitter-free code and fixes.
Detect a coloured ball with OpenCV on a Raspberry Pi using HSV masks and contours, then steer an Arduino robot over USB serial. Code, tuning and FPS …
Choose the right motor and battery for your Arduino robot car: BO, N20 and metal gear motors compared, AA vs NiMH vs 18650 packs, voltage matching an…
Build a Bluetooth controlled car with Arduino Uno, HC-05 and L298N, driven from an Android phone. Wiring, voltage divider, code and fixes.
Build an obstacle avoiding robot car with Arduino, HC-SR04, servo scanning and L298N. Parts, wiring, commented code, testing and fixes.
Build a line follower robot with Arduino Uno, two IR sensors and an L298N driver. Parts, wiring table, tested logic, code, tuning and fixes.
Control a DC motor's speed and direction with an L298N driver and Arduino Uno. Pin table, 5V jumper rules, PWM code and troubleshooting.
Train a gesture recognition model with Edge Impulse and run it on an ESP32 with an MPU6050. Data collection, training, int8 deployment and testing.
Upload code to the ESP32-CAM with a USB-serial adapter, fix brownout and Connecting errors, use the GPIO4 flash LED, and take a PIR motion photo.
Build a learning prototype that detects tilt with an MPU6050 on an ESP32 and sends alerts over LoRa to a gateway. Wiring, code, testing and limits.
Build a rooftop water tank level monitor with ESP32 and a JSN-SR04T or HC-SR04: level % formula, median filter, phone page, night leak alert and mois…
Publish DHT11 readings from an ESP32 over MQTT to your own Mosquitto broker, then build a Node-RED gauge and chart. Topics, wildcards and security ex…
Use ESP32 deep sleep with timer and button wake-up, keep data with RTC_DATA_ATTR, measure sleep current with a multimeter and estimate real battery l…
Which ESP32 GPIO pins are safe to use? Flash pins, strapping pins, input-only pins, 3.3 V logic and why ADC2 analog reads fail when Wi-Fi is on.
Beginner guide to 18 electronic components: resistor, capacitor, diode, LED, transistor, MOSFET, regulator and more. Types, symbols, units and mistak…
Learn to read any electronics datasheet fast: absolute maximum ratings, operating conditions, electrical characteristics, pinout and typical applicat…
Wire an MPU6050 (GY-521) to Arduino over I2C, read raw accelerometer and gyro data, calculate tilt angle with atan2 and smooth it with a complementar…
Build a 4-servo robotic arm controlled by potentiometers with Arduino. Separate 5 V servo supply, wiring table, smooth jitter-free code and fixes.
Detect a coloured ball with OpenCV on a Raspberry Pi using HSV masks and contours, then steer an Arduino robot over USB serial. Code, tuning and FPS …
Arduino Uno, ESP32 or Raspberry Pi? Compare logic voltage, Wi-Fi, OS, real-time control and power, then pick the right board for 10 common projects.
Train a gesture recognition model with Edge Impulse and run it on an ESP32 with an MPU6050. Data collection, training, int8 deployment and testing.