IOIO-BOT
: Android Robotics
53
In case Up condition, it is stop motor. It means IOIO-BOT have to stop. The duty
cycle is clear to 0. The slider position is set to center of Linear Layout.
The duty cycle value is stored to dutyLeft and dutyRight variable depend on touching
side of controller. dutyLeft is for Left controller and dutyRight for Right controller.
6.3.2
IOIO-Q
board operation
For working with IOIO-Bot app, set the IOIO-Q I/O pins to interface with DC motor
driver boards. For IOIO-BOT used only M1, M2, M5 and M6 output. The pin assignment is
show below :
1
IOIO-Q
pin
Variable
in Code
Motor
output
D1A
1
2
D1B
3
PWM1
4
D2A
5
D2B
6
PWM2
2
16
D5A
17
D5B
13
PWM5
5
18
D6A
19
D6B
14
PWM6
6
To driving the motors, IOIOQ will check the value of dutyLeft and dutyRight variable.
If more than 0, drive motors with forward direction. If less than 0 (or negative value), drive
motors with backward direction. If equal to 0, stop motors in each side.
Summary of Contents for IOIO-BOT
Page 1: ...IOIO BOT Android Robotics 1 IOIO BOT Android Robotics...
Page 2: ...2 IOIO BOT Android Robotics...
Page 4: ...4 IOIO BOT Android Robotics...
Page 12: ...12 IOIO BOT Android Robotics...
Page 38: ...38 IOIO BOT Android Robotics...
Page 46: ...46 IOIO BOT Android Robotics...
Page 51: ...IOIO BOT Android Robotics 51 Figure 6 5 IOIO Bot app flowchart final...
Page 55: ......
Page 56: ......