Rubbish Bin Using Joystick Module and Arduino

by hughalfy14 in Circuits > Arduino

224 Views, 1 Favorites, 0 Comments

Rubbish Bin Using Joystick Module and Arduino

WhatsApp Image 2024-02-14 at 7.54.25 PM (2).jpeg

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

WhatsApp Image 2024-02-16 at 12.16.29 PM.jpeg

First, attach the servo to the side of the rubbish bin opening

ATTACHING THE JOYSTICK MODULE

WhatsApp Image 2024-02-16 at 12.16.29 PM (2).jpeg

After attaching the servo motor, attach the JOYSTICK module anywhere you like.


ATTACHING THE ARDUINO BOARD

WhatsApp Image 2024-02-16 at 12.16.27 PM.jpeg

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

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.