Waveshare AlphaBot 2 User Manual page 25

Table of Contents

Advertisement

share awesome hardware
AlphaBot 2 User Manual
In case that the direction of motion is wrong, you may need to modify the motor
wring or change the pin settings in your program. We recommend the latter one. If
left wheels of the robot run in a wrong direction, you should exchange the settings
of ain1 and ain2. For right wheels, exchange the settings of bin1 and bin2.
5-way joystick
Enter the Linux terminal, and input the following commands:
cd ~/AlphaBot2/python
sudo python Joystick.py
Expectation result: This Joystick has 5 control directions: Up, Down, Left, Right and
Center (Enter). Open the serial monitor, and set the baud rate to 115200. Then, the
monitor displays the current key press. When there is a key pressed down, the
buzzer sounds and the motor rotates in the direction according to the key. If the
wheel(s) runs in the wrong direction, you should modify the settings of the
corresponding pins.
Infrared remote control
Enter the Linux terminal, and input the following commands:
cd ~/AlphaBot2/python
sudo python IRremote.py
Expectation result: You can control the smart robot by pressing down the numeric
25

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot 2

Table of Contents