Skip to main content

Posts

💡 TECH BUZZ

TEST AR 2

Recent posts

Gesture Controlled Augmented Reality Garage

Gesture Controlled AR Car Viewer using Python This project demonstrates how to interact with a 3D car model using hand gestures in Augmented Reality using Python, MediaPipe and PyRender.    Features Real-time hand gesture tracking 3D AR model viewer Wireframe inspection mode Engine inspection mode Two finger explode animation Finger based model rotation Required Libraries Copy Code pip install opencv-python mediapipe numpy pyrender trimesh Copy the command above and run it in your terminal before running the project. How the System Works The webcam captures hand gestures. MediaPipe detects finger landmarks and based on finger positions the system loads different 3D models like car view, engine view or wireframe inspection. Python Code Copy Code import cv2 import mediapipe as mp import numpy as np import trimesh import pyrender import math # ============================= # MODEL PATHS # ============================= CAR_PATH...

🎯 AI Shooting Game Using Python & ESP32-CAM | Hand Tracking Game

In this project, we will build an exciting AI Hand Gesture Shooting Game using Python, OpenCV , and MediaPipe . Instead of using a mouse, you will control the crosshair with your finger and shoot using a pinch gesture 🤏. 💰 Pro Tip: If you want to make this project portable and advanced, you can use an ESP32-CAM module instead of a normal camera and stream video to your laptop. 🧰 1. Hardware Required 💻 Laptop / PC (Windows recommended) 📷 ESP32-CAM Module (Recommended for smart AI projects) 🔌 USB to TTL Converter (for programming ESP32-CAM) ⚡ Jumper Wires 📶 WiFi Connection 👉 Recommended Module: ESP32-CAM (OV2640 Camera) 📚 2. Python Libraries Required Open Command Prompt and install the following libraries: 📋 Copy pip install opencv-python mediapipe That’s it! Now you're ready to run the AI game 🚀 🧠 3. Complete Python Code 📋 Copy import cv2 import mediapipe as mp import random import math import time # ...

Interfacing Raspberry Pi 3 B+ with DC Motor using L298N 🚀🔧

 Controlling a DC motor with a Raspberry Pi 3 B+ is an essential project for robotics and automation. In this tutorial, we will interface a DC motor with Raspberry Pi 3 B+ using the L298N motor driver . Let’s get started! 🚗⚡ 📝 Components Required Component Quantity Description Raspberry Pi 3 B+ 1 Main Controller L298N Motor Driver 1 To control the DC motor DC Motor 1 The motor to be controlled Power Supply (12V) 1 External power for motor Jumper Wires As needed To connect components Breadboard 1 For connections (optional) 🔌 Circuit Connections L298N Pin Connects To 12V 12V Power Supply GND Raspberry Pi GND & Power Supply GND 5V Not Connected (Raspberry Pi provides 3.3V) IN1 Raspberry Pi GPIO 17 (BCM) IN2 Raspberry Pi GPIO 18 (BCM) ENA Raspberry Pi GPIO 22 (BCM) OUT1 & OUT2 DC Motor Terminals 🔴 Note: The L298N module needs an external power supply (12V) to drive the DC motor efficiently. The Raspberry Pi should not power the motor directly. 📷 Circuit Diagram...

Interfacing Water Flow Sensor with Raspberry Pi 3 🚿

Interfacing Water Flow Sensor with Raspberry Pi 3 🚿 🎯 Objective To measure the flow rate of water using a Water Flow Sensor (YF-S201) and Raspberry Pi 3. Useful in smart irrigation and water management systems. 🧰 Components Required Component Quantity Raspberry Pi 3 1 YF-S201 Water Flow Sensor 1 10K Pull-down Resistor 1 Jumper Wires As required Breadboard 1 ⚡ Circuit Connections Sensor Pin Connect To Red (VCC) 5V (Raspberry Pi) Black (GND) GND (Raspberry Pi) Yellow (Pulse Out) GPIO18 (Pin 12) with pull-down resistor 🧠 Python Code import RPi.GPIO as GPIO import time FLOW_SENSOR = 18 pulse_count = 0 def countPulse(channel): global pulse_count pulse_count += 1 GPIO.setmode(GPIO.BCM) GPIO.setup(FLOW_SENSOR, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.add_event_detect(FLOW_SENSOR, GPIO.FALLING, callback=countPulse) try: while True: pulse_count = 0 time.sleep(1) flow_rate = (pulse_count / 7.5) ...

Interfacing Raspberry Pi 3 with an Ultrasonic Sensor (HC-SR04) - English & Marathi

Introduction The HC-SR04 ultrasonic sensor is used to measure distance by sending and receiving ultrasonic waves. In this tutorial, we will interface the HC-SR04 sensor with Raspberry Pi 3 to measure the distance of an object. HC-SR04 अल्ट्रासोनिक सेन्सर अल्ट्रासोनिक तरंग पाठवून आणि प्राप्त करून अंतर मोजण्यासाठी वापरला जातो. या ट्यूटोरियलमध्ये, आपण HC-SR04 सेन्सरला Raspberry Pi 3 शी जोडून वस्तूचे अंतर कसे मोजायचे ते शिकू. Components Required | आवश्यक घटक: 1. Raspberry Pi 3 2. HC-SR04 Ultrasonic Sensor 3. Jumper Wires 4. Breadboard Circuit Diagram | सर्किट जोडणी: Connections: - HC-SR04 VCC → 5V (Pin 2) - HC-SR04 GND → GND (Pin 6) - HC-SR04 Trig → GPIO23 (Pin 16) - HC-SR04 Echo → GPIO24 (Pin 18) Python Code | पायथन कोड: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) TRIG = 23 ECHO = 24 GPIO.setup(TRIG, GPIO.OUT) GPIO.setup(ECHO, GPIO.IN) def measure_distance():     GPIO.output(TRIG, True)     time.sleep(0.00001)     GPIO.output(TRIG, False)  ...

Interfacing Rain Sensor with Raspberry Pi 3 ☔

Interfacing Rain Sensor with Raspberry Pi 3 ☔ 🎯 Objective To detect the presence of rain using a Rain Sensor module with Raspberry Pi 3 and display alerts on the console. Perfect for smart weather stations and automatic window systems! 🧰 Components Required Component Quantity Raspberry Pi 3 1 Rain Sensor Module (Analog & Digital Output) 1 Jumper Wires As required Breadboard 1 ⚡ Circuit Connections Rain Sensor Pin Connect To VCC 5V (Raspberry Pi) GND GND (Raspberry Pi) D0 (Digital Out) GPIO17 (Pin 11) 🧠 Python Code import RPi.GPIO as GPIO import time RAIN_SENSOR_PIN = 17 GPIO.setmode(GPIO.BCM) GPIO.setup(RAIN_SENSOR_PIN, GPIO.IN) try: while True: if GPIO.input(RAIN_SENSOR_PIN) == 0: print("🌧️ Rain Detected!") else: print("☀️ No Rain.") time.sleep(1) except KeyboardInterrupt: GPIO.cleanup() 📊 Output Prints "🌧️ Rain Detected!" when...