This tutorial is brought to you by ALP Electronic Innovation
Our Coin bank Rabbit equipped with Ultrasonic Distance Sensor.
Download our FREE Arduino Project Code here.
Step 1: Prepare all the components
HC-SR04 Ultrasonic Sensor
Step 2: Build the circuit
Construct the circuit as shown.
Step 3: Add the Ultrasonic Sensor
Connect the following:
VCC to arduino 5v
GND to arduino GND
Echo to Arduino pin 3
Trig to Arduino pin 2
Step 4: Add Optocoupler
The sound is optional if you have a separate project kit.
Use the Optocoupler and connect to Pin 4 of Arduino Uno.
Step 5: The Coin Rabbit
Install all LEDs inside the Coin rabbit's eyes & hands.
Also, the Ultrasonic distance sensor.
Step 6: Test the project
Test the sensor.
Supply 9 volts battery of from Power Digital Supply to your Arduino.