The Craziest Arduino Project You’ve Ever Seen Using an IR Sensor | Using Arduino UNO

🖱️ DIY IR Sensor PC Link Opener Using Arduino

Ever wanted to open a website with just a wave of your hand? In this project, you’ll learn how to use an IR sensor with Arduino to automatically open a browser link on your PC. A great mix of electronics and programming, perfect for beginners and automation enthusiasts!


🎯 Project Overview

Objective: Use an IR sensor to detect motion and trigger your PC to open a specific website
Skill Level: Beginner
Estimated Time: 30–45 minutes
Platform: Arduino Uno + PC (Python Script)


🧰 Components Required

  1. Arduino Uno

  2. IR Sensor Module

  3. Jumper Wires

  4. USB Cable (for Arduino to PC connection)


📥 Download Project Files


🛠️ Step 1: Wiring the Circuit

IR Sensor to Arduino:

  • OUT → Pin 2 (Arduino Digital)

  • VCC → 5V

  • GND → GND

💡 Place your hand or any object in front of the IR sensor to trigger the output signal.


💻 Step 2: Upload the Arduino Code

  1. Open Arduino IDE.

  2. Select your board: Arduino Uno

  3. Upload the IR detection sketch from the GitHub repo.


🐍 Step 3: Setup PC Communication

You’ll use a Python script to monitor the Arduino’s serial output and open a URL when motion is detected.

  1. Install Python on your PC (if not already installed).

  2. Use VS Code or any Python IDE to open the provided script.

  3. Install required packages:

bash
pip install pyserial webbrowser
  1. Run the Python script. It listens to the Arduino and opens a website when a signal is received.


🌐 Step 4: Test It Out!

  1. With everything running, move your hand in front of the IR sensor.

  2. The Arduino sends a signal via USB.

  3. The Python script receives the signal and opens the designated URL in your default browser.

✅ Try changing the URL in the Python script to link to your favorite website or automation dashboard!


✅ Result

You’ve just built a gesture-controlled web launcher! Perfect for kiosk setups, automation triggers, or just showing off cool tech tricks to friends.


🔗 Useful Links


☕ Support My Work

If you love these DIY projects, help support future creations:
👉 Buy Me a Coffee


📱 Follow Me for More Fun Builds

Scroll to Top