In our precious post ,we have discussed ,
What is Joystick ??
How to use Arduino joystick??
How to program Arduino Joystick??
Beginner
Before watch this ,Watch my previous Post so that you can understand this easier.
Watch the video tutorial,
If you have any Trouble Comment or Contact us : @technical_tamizha_official
Materials Needed For this Project :
Arduino
Joystick
Servo motor
Breadboard
wires
Working:
In this Arduino joystick there will be a 2 potentiometers, when you move the joystick the Potentiometer will also rotate.
The Potentiometer are variable resistance , It provide us with varying voltage depending on their rotation.
we keeping some conditions in program to rotate servo using Arduino, (eg)If the Joystick value goes bellow 300 servo will rotate 90 - 0 degree.
Joystick Pin Out :
GND - GND
VCC - 5v
VRx -> Variable Resistance x
VRy -> Variable Resistance y
SW -> Switch / Button
Connections :
*VCC -> 5v
*GND -> GND
*VRx -> A1
*VRy -> A2
*SW -> 7
NOTE : you can connect VRx and VRy to any of the Arduino Analogue pin.
SW pin to any Digital Pins
Program & Circuit Diagram :
Connect the all components according to circuit diagram:
Comments