Arduino TRASH CAN Opener
Today i'm going to show you a simple Trash Can Opener, using Arduino.
YOU WILL NEED:
1x Arduino Uno, Due, Mega, Nano...
1x Small Breadboard (optional)
1x Micro Servo
1x Ultrasonic sensor
Jumper wires
LETS GET STARTED!
Wiring
WIRINGS:
Servo:
Servo GND(black wire) - Arduino GND
Servo VCC(red wire) - Arduino 5V (GOES TO THE SAME PIN AS SENSOR)
Servo Signal(yellow wire) - Arduino Digital Pin 2 ( D2 )
Ultrasonic sensor:
Sensor's VCC - Arduino 5V (GOES TO THE SAME PIN AS SERVO)
Sensor's TRIG - Arduino Digital Pin 3
Sensor's ECHO - Arduino Digital Pin 4
Sensor's GND - Arduino GND
Upload Code!
1.Open the file from this step
2.Click the upload button.
3.And its working.
PUT THE SERVO ABOUT FEW CENTIMETERS FROM THE OPENER AND PUT THE SENSOR AT THE TOP AS THE PICTURE SHOWS