Precio FOB
Obtener el precio más reciente|
- Minimum Order
País:
China
N º de Modelo:
-
Precio FOB:
Lugar de origen:
-
Precio de pedido mínimo:
-
Cantidad de pedido mínimo:
-
Detalle de embalaje:
-
El tiempo de entrega:
-
Capacidad de suministro:
-
Tipo de pago:
-
Grupo de productos :
China
Persona de contacto Mr. Wilson
6-703, FUYUAN COMMUNITY, YUFU ROAD, LONGGANG DISTRICT, SHENZHEN, CHINA, Muping, Sichuan
JoyStick
Module For Sensor Shield Module *1 (Arduino Compatible)
On
the principle, the control rod can be considered that it is
organized by the two potentiometer and a
Two of the
value of potentiometer are respectively to show the user
offset in the X and Y axis, and the type of offset is analog; The
is used to show whether the user push down in the Z
axis, its type is the digital quantity. Therefore the control rod
contain a total of three interface which are used to connect
X, Y, and Z
When using, it can connect with Arduino sensor
shield, and connect Arduino corresponding pins through Arduino
sensor cables. In the example below, the X axes and Y axes are
respectively link to the analog A1 and A0, and Z axis is
connected to the digital I/O 7 pin.
The corresponding code
shown below:
Int sensorPin = 5; Int value = 0; Void
setup() { pinMode(7, OUTPUT); Serial. Begin(***0); } void loop() {
value = analogRead(0); Serial. Print("X: ");
Serial. Print(value, DEC); Value = analogRead(1); Serial.
Print(" Y: "); Serial. Print(value, DEC); Value =
digitalRead(7); Serial. Print(" Z: "); Serial.
Println(value, DEC); Delay(**0); } Referring Sample Code: 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(***0); // ***0 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(**0);
}
País: | China |
N º de Modelo: | - |
Precio FOB: | Obtener el precio más reciente |
Lugar de origen: | - |
Precio de pedido mínimo: | - |
Cantidad de pedido mínimo: | - |
Detalle de embalaje: | - |
El tiempo de entrega: | - |
Capacidad de suministro: | - |
Tipo de pago: | - |
Grupo de productos : | arduino board and accessories |