Showing posts with label RoboticsProjects. Show all posts
Showing posts with label RoboticsProjects. Show all posts

Tuesday, 13 May 2025

Hand Gesture Controlled LEDs with ESP32 and Python

Hand Gesture Controlled LEDs with ESP32 and Python

This project demonstrates how to control LEDs using hand gestures by integrating an ESP32 microcontroller with Python-based computer vision libraries. Utilizing OpenCV and MediaPipe, the system captures hand gestures via a webcam and translates them into commands sent to the ESP32 over Wi-Fi. The ESP32 then controls LEDs connected to its GPIO pins based on these commands.

Components Required
  • ESP32 Board
  • 5 LEDs (representing Thumb, Index, Middle, Ring, Pinky)
  • 5 Resistors (220Ω each)
  • Breadboard and Jumper Wires
  • Webcam
  • Computer with Python Installed
Circuit Setup for ESP32 Hand Gesture Project
Circuit Diagram of Hand Gesture Controlled LEDs with ESP32 and Python


Each LED is connected to a specific GPIO pin on the ESP32 (e.g., GPIO14, GPIO27, GPIO26, GPIO25, GPIO33). A 220Ω resistor is placed in series with each LED to limit current. The anode of each LED connects to the GPIO pin, and the cathode connects to the ground.


Python Script for Gesture Detection

On the computer, a Python script uses OpenCV to capture video from the webcam and MediaPipe to detect hand landmarks. It determines which fingers are raised and sends corresponding HTTP requests to the ESP32 to control the LEDs. For instance, raising the index finger sends a request to /led/index/on. If all fingers are lowered, a special command can be sent to perform a predefined action, such as turning off all LEDs.

In practice, this system allows for intuitive control of LEDs through simple hand gestures. Raising a specific finger turns on the corresponding LED, while lowering it turns the LED off. This real-time interaction demonstrates the seamless integration of computer vision and microcontroller-based hardware control. The project serves as a foundational example for more complex gesture-controlled applications, such as home automation or robotic control systems.

ESP32 Hand Gesture Project - Working Demo

ESP32 Hand Gesture Project - Working Demo

Thursday, 27 March 2025

Interfacing Arduino with Servo Motors and Potentiometer – Beginner’s Tutorial



Arduino Servo Motor


Whether you’re building a robotic arm, an automated door, or a pan-tilt camera system, servo motors are the go-to choice for accurate angular movement. With the help of this guide you can learn how to interface a servo motor with Arduino, make it work, and control its position with the help of provided code.

What is a Servo Motor?

A servo motor is a type of motor used in various applications to precisely control the position, speed, and angular rotation of mechanical systems. 

It consists of:

  • DC Motor – The main driver
  • Gear System – Reduces speed, increases torque
  • Control Circuit – Receives signals & adjusts position
  • Feedback Mechanism – Ensures accurate movement
SG90 Servo Motor Pinout




Unlike DC motors, servo motors rotate within a fixed range (0° to 180°) and hold their position when powered.

Components Required

For this project, you’ll need:

  • Arduino Uno
  • SG90 or MG995 Servo Motor
  • Jumper Wires
  • External Power Source (if using a high-torque servo)
pinout of the potentiometer


Circuit Diagram of Interfacing Arduino with Servo Motors and Potentiometer

Circuit Diagram of Interfacing Arduino with Servo Motors and Potentiometer

Applications of Servo Motors

  • Robotic Arms & Grippers
  • Automated Doors & Windows
  • RC Cars & Airplanes
  • Pan-Tilt Camera Systems
  • DIY Animatronics & Smart Toys

Servo motors are easy to use and extremely useful for precise motion control in Arduino projects. With just a few lines of code, you can make them rotate, hold positions, and automate movements in your projects.

Thursday, 9 May 2024

"How to Create Animated Eyes Using Arduino and OLED Displays?


Are you interested in making your own robots come to life with expressive eye animations? If you've been scouring the internet for ways to do this using Arduino and OLED displays but feel overwhelmed by all the information out there, don't worry! We've got you covered with a simple guide (
Arduino OLED Eyes)  to get you started.


What You'll Need


To begin, gather these basic components:


  • Arduino UNO

  • OLED Display (the small, square kind)

  • Breadboard

  • Jumper Wires (the male-to-male kind)

  • USB Cable for Programming




Setting Up the Circuit

First things first, let's connect the OLED display to the Arduino UNO. We'll use a special way of talking between them called the I2C protocol. This just means we'll connect some wires between the Arduino and the display. Also, remember that the OLED display with Arduino needs a special amount of power, so we'll connect it to a specific spot on the Arduino.


Exploring Different Eye Animations

Now comes the fun part – making the eyes move! We've found five different ways people have done this, and each has its own special features.


Option 1: Eye Animation by Intellar

Introducing a repertoire of eye expressions including Normal, Sleep, and Smile, Intellar's approach emphasizes simplicity and ease of use. With functions for adjusting eye position and size, it's ideal for projects requiring basic yet effective animations.


Option 2: Animated Eye by SpiderMaf

SpiderMaf's creation adds a human touch with customizable eye size and position. Compact and efficient, this method employs circles and pupils for precise eye movements, catering to projects seeking a more lifelike appearance.


Option 3: Akno by AbdulsalamAbbod

AbdulsalamAbbod's Akno offers a wide range of expressions, making it perfect for robotic projects. While lacking human-like characteristics, its versatility across various display types makes it a lightweight yet functional choice for hobbyist robots.


Option 4: OLED Moving Eyes by Vinny

Vinny's approach utilizes bitmap images for eye animations, enabling limitless customization. While offering extensive expression sets, memory consumption poses a challenge, restricting its compatibility with Arduino UNO due to space constraints.


Option 5: Robotic Eye Animations by Picaio

Picaio's method stands out with realistic eye movements and a diverse range of expressions. By optimizing bitmap usage, it achieves versatility without compromising on memory. Although slightly complex, it caters to projects demanding nuanced animations.


Now that you know the basics of creating animated eyes with Arduino and OLED displays, it's time to start experimenting! Whether you're building a simple robot or a complex machine, adding expressive eyes will bring your creation to life. So, grab your Arduino and get ready to make some eyes that sparkle with personality!


Discover Arduino Robotics: Beginner-Friendly Projects to Get Started

 

Arduino projects have gained immense popularity among both seasoned makers and beginners due to their ability to blend innovation and fun. Whether you have years of experience or are just starting out, Arduino offers a user-friendly interface that makes it easy to get started. Additionally, the vast community support surrounding Arduino ensures that you will never be alone in your journey. From online forums to tutorial videos, there are plenty of resources available to help you along the way.


One of the most exciting aspects of Arduino projects is the endless possibilities they offer. Whether you are interested in robotics, home automation systems, or interactive art installations, Arduino provides the tools and resources you need to bring your ideas to life. The flexibility of Arduino allows for customization and creativity, enabling you to tailor your projects to suit your specific needs and interests.


Captivating Arduino Projects in Robotics and its Endless Possibilities:


In this article, we will take you on a journey through captivating Arduino projects in robotics. These projects are not only designed to inspire and educate, but they also showcase the incredible potential of Arduino in the field of robotics. From simple obstacle avoidance robots to more complex autonomous drones, these projects demonstrate the power of Arduino in creating intelligent and interactive machines. 


Whether you are a student looking to expand your knowledge, an engineer seeking to enhance your skills, or simply someone who enjoys tinkering with technology, Arduino projects offer a world of opportunities. With its user-friendly interface and vast community support, Arduino is the perfect platform for turning your imagination into reality. So why wait? Start exploring Arduino projects today and embark on a journey of innovation and fun.


Discovering the Versatility of Arduino in DIY Robotics:


Obstacle Avoiding Car:

The Obstacle Avoiding Car project is an exciting entry into the world of robotics. By utilizing ultrasonic sensors, this project allows beginners to learn how to build a car that can detect obstacles and maneuver around them independently. It serves as an excellent introduction to Arduino and robotics, making it the perfect choice for individuals who are interested in exploring sensor integration and autonomous navigation. With step-by-step instructions and a complete video tutorial, this project provides all the guidance needed to successfully create an obstacle avoiding car using Arduino.


Smart Vacuum Cleaning Robot:

On the other hand, the Smart Vacuum Cleaning Robot project offers a convenient solution to manual floor cleaning. Powered by Arduino, this robotic vacuum cleaner eliminates the need for human intervention by intelligently navigating through the space and cleaning efficiently. Equipped with sensors and smart algorithms, it can detect obstacles and adjust its path accordingly, ensuring a thorough cleaning experience. This project showcases the potential of Arduino in creating advanced home automation devices and provides a hands-on opportunity to learn about programming, electronics, and robotics.



Web-Controlled Raspberry Pi Surveillance Robot:

Upgrade your home security with the Web-Controlled Raspberry Pi Surveillance Robot. This project is a combination of Raspberry Pi and Arduino, which allows you to monitor your home remotely through a user-friendly web interface. With this sophisticated yet accessible DIY solution, you can enhance your home surveillance and have peace of mind knowing that your home is secure no matter where you are. The Raspberry Pi Surveillance Robot offers advanced features such as live video streaming, motion detection, and even the ability to control the robot's movements from your smartphone or computer. This innovative technology provides a convenient and effective way to protect your home and loved ones.


Automelette: Automated Articulated Omelets Cooking Robot:

In the kitchen, automation is becoming increasingly popular, and the Automelette cooking robot is a perfect example of this. By utilizing the Arduino platform, this robot chef is designed to prepare omelets with precision and efficiency. With the Automelette cooking robot, you can say goodbye to the hassle of flipping omelets and worrying about overcooking or undercooking them. This innovative device takes care of all the cooking steps, from cracking the eggs to whisking them to perfection, and even flipping the omelet at just the right moment. With its articulated arm and precise controls, the Automelette ensures consistent results every time. Whether you're a professional chef or just someone who enjoys cooking at home, this automated cooking robot can revolutionize your culinary experience by saving time and effort while delivering delicious omelets on demand.




PCA9685 Multiple Servo Control:

The PCA9685 Multiple Servo Control project is an excellent opportunity to elevate your robotics skills and take them to new heights. By learning how to simultaneously control multiple servos, you'll open up a world of possibilities in robotics design and implementation. This project allows you to explore complex robotic movements and master precise control mechanisms, giving you a comprehensive understanding of servo motor control. Whether you're a beginner looking to expand your knowledge or an experienced hobbyist seeking a new challenge, this project offers a deep dive into the exciting world of robotics.


Mars Rover Robot:

The Mars Rover Robot  project offers an exciting opportunity to embark on a simulated Martian exploration mission. Inspired by NASA's exploration rovers, this DIY rover showcases the potential of Arduino in space exploration. By building and programming your own Mars rover, you'll gain hands-on experience in designing and operating robotic vehicles for extraterrestrial missions. This project is not only engaging but also highly educational, allowing you to learn about the challenges and complexities of exploring other planets. As you navigate the simulated Martian terrain, you'll develop important skills in robotics, programming, and problem-solving. 



Arduino Color Sorter Machine:

The Arduino Color Sorter Machine project showcases the immense power of industrial automation. With the integration of TCS3200 color sensor technology, this machine is able to accurately sort objects based on their color, making it a valuable tool for a variety of industrial applications. By automating the sorting process, businesses can significantly increase their efficiency and productivity. The Arduino Color Sorter Machine is a practical solution that highlights the capabilities of Arduino in streamlining processes and improving overall operational efficiency. Whether it's in manufacturing, logistics, or quality control, this project demonstrates the potential of industrial automation to revolutionize various industries.


Bluetooth Biped Bob Robot:

Another exciting project that allows users to interact with robotics in a fun and engaging way is the Bluetooth Biped Bob Robot. This friendly biped robot is designed to respond to commands from a smartphone via Bluetooth communication. With its interactive features, the Bluetooth Biped Bob Robot offers an immersive experience that combines technology and entertainment. Users can control the robot's movements, engage in simple tasks, and even play games with it. This project not only showcases the capabilities of Bluetooth technology but also emphasizes the potential of robotics in enhancing our daily lives.


Whether you're a seasoned maker or just starting out, there's something truly exciting about taking a collection of simple components and turning them into something amazing. And that's exactly what Arduino projects allow you to do. You'll learn new skills, gain a deeper understanding of electronics and programming, and have a lot of fun along the way.


So gather your components, fire up your creativity, and let's embark on this journey together. Get ready to be amazed at what you can create with Arduino. The only limit is your own imagination!