Project
I made this project for detecting intruders on the entrance of my room.
Step 1: Prepare Your Working Environment
Collect Materials
- Arduino UNO
- Ultrasonic Sensor (HC-SR04)
- Servo Motor 9g
- Breadboard
- Piezo Buzzer (You can add a relay here instead of Piezo buzzer for setting of something.)
- Couple of jumper wires
Step 2: Follow the diagram and firmly connect all the components
- Ul Trigger on D3
- Ul Echo on D2
- Servo pin D9
Step 3
Upload the code to Arduino board using Arduino IDE, then open Processing. Download the code I provided. Don't forget to change the com port that you use.
Step 4: Test The Gimmick
Connect the Arduino to your PC open processing run the code you can see the visualised data from the sensor.
If error occurs change the screen resolution in the processing code or change the com port I use Com3. Fire ait and rectify any issues.
Step 5: Neat and Tidy
Enclose your project into some boxes or jar (use creativity/imagination here). (I used an ice cream jar and painted with black glued Arduino and breadboard using hot glue gun to inside of it and connected Arduino with external switch and battery.)
SCHEMATICS
Circuit Diagram For Connecting Components
Full Project Page
More Details Here
CODE
Aurdino Radar With Processing
Codes For Aurdino Radar And Digitalising