Manual
Table Of Contents
- 1. Introduction
- 2. FlickerLED Demo
- 3. AlarmLED Demo
- 4. AdjustLED Demo
- 5. Button Demo
- 6. SeedVoiceLED Demo
- 7. MoveBlock Demo
- 8. SeedVoiceDobot Demo
- 9. JoyStick Demo
- 10. DobotPixy Demo
- Appendix A Common Function Description
- Appendix B Installing Suction Cup Kit
- Appendix C Pixy Install and Configure Pixy
- Appendix D Vision Recognition Initialization Process
- Appendix E Multiplexed I/O Interface Description of V1 Dobot Magician
- Appendix F Multiplexed I/O Interface Description of V2 Dobot Magician
Arduino Kit Demo Description 9 JoyStick Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
31
else if(y < 400){ // JoyStick moves alongt Y-axis in the negative direction
direction = 2;
}
…...
……
Control the Dobot Magician and air pump by the joystick
Program 9.4 Control the Dobot Magician and air pump
switch(direction){
case 1:
Serial.println("forward");
Dobot_SetPTPCmdEx(MOVL_INC,20,0,0,0); //Dobot Magician moves forward
Serial.print("x=");
Serial.println(x);
Serial.print("y=");
Serial.println(y);
break;
case 2:
Serial.println("backwardss");
Dobot_SetPTPCmdEx(MOVL_INC,-20,0,0,0); // Dobot Magician moves backward
Serial.print("x=");
Serial.println(x);
Serial.print("y=");
Serial.println(y);
break;
……
……
}