Input Shield For Arduino SKU DFR0008
Part | Datasheet |
---|---|
![]() |
DFR0008 (pdf) |
PDF Datasheet Preview |
---|
Input Shield For Arduino SKU DFR0008 Contents • 1 Introduction • 2 Specification • 3 Pin Allocation • 4 Sample Code1 • 5 Sample Code2 • 6 Version history Introduction The upgraded Arduino Input Shield includes a two axis mini joystick with moment switch as well as four colored push buttons Red,Yellow,Blue,Green . The reserved APC220 Radio Data Module SKU:TEL0005 interface and the Xbee interface is deisgned to facilitate the realization of wireless rocker button controller. The shield can be easily stacked on top of your Arduino boards. It can also connect with OLED2864 & OLED9664. Specification • Dual axis mini joystick • Connects to your Arduino using male to male pin headers • Comes with 2 colored push buttons • The use of imported high-quality potentiometers and the PS button rocker. The rocker output an analog signal is *to achieve vertical and horizontal control, which is attached to four keys at the same time. It also has two *great circle button caps cap color random round keys , a rocker button and a reset button. • The use of stack design is so that the plug can easily on Arduino Duemilanove or DFRduino Romeo. • The reserved APC220/Bluetooth module interface is to facilitate the realization of wireless rocker button controller. • The remaining unused ports are extended out of standby. Pin Allocation Pin Digital 8 Analog 1 Digital 9 Digital 12 Analog 3 Analog 2 Function UP Down Left Right X axis Y axis Sample Code1 function: created: #define up_button #define down_button #define left_button #define right_button test dfr0008 lisper 2013-11-04 8 A1 9 12 #define stick_button A0 #define level_stick A3 #define vertical_stick A2 void setup Serial.begin 9600 ; pinMode left_button, INPUT pinMode right_button, INPUT pinMode up_button, INPUT pinMode down_button, INPUT ; pinMode stick_button , INPUT pinMode level_stick , INPUT pinMode vertical_stick, INPUT ; void loop int left_state = digitalRead left_button int right_state = digitalRead right_button int up_state = digitalRead up_button int down_state = digitalRead down_button ; int stick_state = digitalRead stick_button ; int level_value = analogRead level_stick int vertical_value = analogRead vertical_stick ; Serial.print "up=" Serial.print up_state Serial.print " down=" Serial.print down_state Serial.print " left=" Serial.print left_state Serial.print " right=" ; Serial.print right_state Serial.print " stick=" Serial.print stick_state ; Serial.print " vertical=" Serial.print vertical_value Serial.print " level=" Serial.println level_value ; delay 500 ; Sample Code2 function: created: #include <Arduino.h> test dfr0008 lisper |
More datasheets: D6L90 | D6 R 00 | D6 R 60 | D6 R 90 | D6 R 40 | D6 R 10 | CY7C1550V18-375BZC | 37-1-R7C-ARTC-AM | HMC398QS16GTR | HMC398QS16G |
Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0008 Datasheet file may be downloaded here without warranties.