JoyStick Sensor module
Introduction:
Lots of robot projects need joystick. This module provides a affordable solution to that. Simply connect to two analog inputs, the robot is at your commands with X,Y control. It also has a switch that is connected to a digital pin. This joystick module can be easily connect to Arduino by IO Expansion Shield For Arduino with supplied cables.
Specification
* Supply Voltage: 3.3V to 5V
* Interface: Analog x2,Digital x1
* PH2.0 Interface
* Size:35x39mm
* Weight:15g
PinOut
Tutorial
Connection Diagram
Sample Code
// #
// # Editor : letheascetic from PCBWay and FizzyStudio
// # Date : 02.08.2017
// # Product name: Joystick Module
// # Product ID : SENZ003
// # Version : 1.0
// # Description:
// # Modify the Sample code for the Joystick Module
// # Connection:
// # X-Axis -> Analog pin 0
// # Y-Axis -> Analog pin 1
// # Z-Axis -> Digital pin 3
// #
int JoyStick_X = 0; //x
int JoyStick_Y = 1; //y
int JoyStick_Z = 3; //key
void setup()
{
pinMode(JoyStick_Z, INPUT);
Serial.begin(9600); // 9600 bps
}
void loop()
{
int x,y,z;
x=analogRead(JoyStick_X);
y=analogRead(JoyStick_Y);
z=digitalRead(JoyStick_Z);
Serial.print(x ,DEC);
Serial.print(",");
Serial.print(y ,DEC);
Serial.print(",");
Serial.println(z ,DEC);
delay(100);
}
JoyStick Sensor module
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(1)
- Andy Little Oct 18,2017
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
2design
-
3usability
-
4creativity
-
5content
More by PCBWay Team
- Low Noise 45V-4A Dual Rail Power Supply Using Enhanced Capacitance Multiplier The core element of any electronic device is the power supply. Any instability or malfunction of the...
- PCBWay Christmas Sock Designed by PCBWayer Jorge @akirasanJust put a cell coin, CR2032 (3V) on it, it will going to shine....
- PCBWay Christmas Star V2 Designed by PCBWayer Jorge @akirasanJust put a cell coin, CR2032 (3V) on it, it will going to shine....
- PCBWay Christmas Snowflakes Designed by PCBWayer Jorge @akirasanJust put a cell coin, CR2032 (3V) on it, it will going to shine....
- PCBWay Christmas Badges Gingerbread Man Just put a cell coin, CR2032 (3V) on it, it will going to shine.The Christmas badges are designed by...
- PCBWay Christmas Badges Tree Just put a cell coin, CR2032 (3V) on it, it will going to shine.The Christmas badges are designed by...
- PCBWay Christmas Star Designed by PCBWayer Jorge @akirasanJust put a cell coin, CR2032 (3V) on it, it will going to shine....
- PCBWay Christmas Ball Designed by PCBWayer Jorge @akirasanJust put a cell coin, CR2032 (3V) on it, it will going to shine....
- PCBWay Christmas Reno Designed by PCBWayer Jorge @akirasanJust put a cell coin, CR2032 (3V) on it, it will going to shine....
- PCBWay Christmas Badges Ball Just put a cell coin, CR2032 (3V) on it, it will going to shine.The Christmas badges are designed by...
- High Precision Digital AC Energy Meter Circuit Voltage-Current-Power-KWh Dealing with the 220V-AC mains voltage and measuring the AC loads' true power, voltage, and current ...
- 36V-3A Adjustable Efficient DC to DC Step-Down Converter A DC-to-DC converter is one of the most commonly used circuit topologies in electronics, especially ...
- PWM Cooling-FAN Control and Over Temperature Protection using LM35 and ATTiny13 Proper thermal dissipation is an essential rule for nowadays electronics. The best operating tempera...
- An Ultrasonic Range Finder Using an SRF05 and an ATTiny85 An ultrasonic range finder is a useful tool in a variety of real-life and robotic applications, such...
- PCBWay 7th Anniversary Badge PCBWay 7th anniversary first version badge is coming.It is like Batman's darts,and we add PCB elemen...
- NeoPixel Ring - 16 x 5050 RGB LED with Integrated Drivers This is the 16 LED NeoPixel Ring from Adafruit, a small chainable 1.75" (44.5mm) outer diameter boar...
- Automatic Hand Sanitizer Dispenser (Version 2), Using ATTiny13 As we all know, the COVID-19 outbreak hit the world and changed our lifestyle. In this condition, al...
- Battery capacity measurement using Arduino The true measurement of a battery’s capacity is essential for many scenarios. A capacity measurement...
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
154 1 1 -
-