Rubbish Bin Using Joystick Module and Arduino
by hughalfy14 in Circuits > Arduino
256 Views, 2 Favorites, 0 Comments
Rubbish Bin Using Joystick Module and Arduino
This is an example of a rubbish bin being controlled by a joystick module, a servo motor and an Arduino UNO board
ATTACHING THE SERVO
First, attach the servo to the side of the rubbish bin opening
ATTACHING THE JOYSTICK MODULE
After attaching the servo motor, attach the JOYSTICK module anywhere you like.
ATTACHING THE ARDUINO BOARD
Next, attach the Arduino UNO board not too far from the components.
As the example shown above. You can put it at the side or anywhere you like
CONNECTING THE SERVO MOTOR TO THE ARDUINO BOARD
Next, connect the servo motors: Brown wire to Ground
Red wire to VIN
Yellow wire to Digital Pin 4
CONNECTING THE JOYSTICK MODULE TO THE ARDUINO BOARD
Connect the joystick module pins to these pins on the Arduino board :
GND to GROUND
+5V to 5V
VRX to Digital Pin 2
VRY to A1
SW to A0
UPLOADING THE CODE
Then, upload this code
Downloads
CONRATULATIONS
Congratulations! You have just made a rubbish bin controlled by a Joystick module and ARDUINO
The video above is an example of it working as it should.