Introduction: Rubbish Bin Using Joystick Module and Arduino

About: I'm just a kid with a passion for robotics

This is an example of a rubbish bin being controlled by a joystick module, a servo motor and an Arduino UNO board


Supplies

Step 1: ATTACHING THE SERVO

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

Step 2: ATTACHING THE JOYSTICK MODULE

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


Step 3: 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

Step 4: 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

Step 5: 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

Step 6: UPLOADING THE CODE

Then, upload this code

Step 7: 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.