0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
DFR0061

DFR0061

  • 厂商:

    DFROBOT

  • 封装:

    -

  • 描述:

    GRAVITY:JOYSTICKMODULEV2

  • 数据手册
  • 价格&库存
DFR0061 数据手册
    Joystick Module For Arduino SKU:DFR0061 Contents       1 Introduction 2 Specification 3 PinOut 4 Tutorial 4.1 Connection Diagram 4.2 Sample Code 5 Trouble shooting 6 More 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(V5) (SKU: DFR0088) with supplied cables. Specification      Supply Voltage: 3.3V to 5V Interface: Analog x2,Digital x1 PH2.0 Interface Size:35x39mm Weight:15g PinOut Pin X S——Analog OUT GND——GND VCC——VCC Pin Y S——Analog OUT GND——GND VCC——VCC Pin Z DATA——Digital OUT VCC——VCC GND——VCC Tutorial Connection Diagram 连线图说明 Pin X S——A1 GND——GND VCC——VCC Pin Y S——A0 GND——GND VCC——VCC Pin Z DATA——D3 VCC——VCC Sample Code Libary installation // # // # Editor : Lauren from DFRobot // # Date : 17.01.2012 // # Product name: Joystick Module // # Product SKU : DFR0061 GND——VCC // # 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); } Trouble shooting More question and cool idea,visit DFRobot Forum Powered By DFRobot © 2008-2016
DFR0061 价格&库存

很抱歉,暂时无法提供与“DFR0061”相匹配的价格&库存,您可以联系我们找货

免费人工找货
DFR0061
  •  国内价格
  • 1+81.84567
  • 2+75.22184
  • 3+72.17943
  • 5+71.12536

库存:15