Product parameters:
Product Name: Rocker Module (Double Axis Button Rocker)
Product size: 34.0mm * 26.0mm* 32.0mm (length x width x height)
Colour: Black
Product performance:
1. Input voltage range: DC 3.3V to 5V
2. Output signal: The module te sets two analog outputs and one digital output interface. The output values correspond to (X, Y) biaxial offsets respectively, and the type is analog; the button indicates whether the user presses on the Z axis. Its type is digital switching.
3. It can be programmed by Arduino controller, and the sensor expansion board can be plugged in to complete the creative remote interactive work.
4. The cross rocker is a bidirectional 10K resistor, and the resistance of the tap changes with the direction of the rocker. This module uses 5V power supply. In the original state, the X and Y read voltages are about 2.5V. When pressed in the direction of the arrow, the read voltage value increases with the value of 5V. When the arrow is pressed in the opposite direction, the voltage value is read. Reduced. Small is 0V.
test program:
int JoyStick_X = 0; //x
int JoyStick_Y = 1; //y
int JoyStick_Z = 3; //key
void setup() { pinMode(JoyStick_X, INPUT);
pinMode(JoyStick_Y, INPUT);
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);
4 GREAT REASONS TO BUY FROM US:
- Over 37,000 happy customers worldwide
- Real people on our support team ready to help
- We proudly offer a full satisfaction guarantee. Our highest priority is to make you happy, so every order comes with a 60-day money back guarantee!
- 100% Safety & Security Guaranteed. At electrongo.com, we take your security and privacy very seriously. Shop safely using the world’s most popular and trustworthy payment methods!
BUY WITH CONFIDENCE
We truly believe in the best customer support, meaning we will do whatever it takes to make sure you have a positive purchase experience. We respond to emails within 24 hours and always make sure all your concerns are answered ASAP.
- Easy Returns. All our products are backed with 60-day money back guarantee. Just contact us and we will refund the purchase price.
- Risk-Free Purchase: Our Buyer Protection covers your purchase from click to delivery so you can shop with peace of mind.
- 100% Satisfaction Guarantee: All our products are backed with 60-day money back guarantee. If for any reason you’re not completely satisfied with your purchase, contact us for a product refund. We’ll be more than happy to assist you.