![]() In this example, the robot goes straight when there is no obstacle, and turns right when obstacle is detected. Since the ultrasonic can be reflected, if the obstacle is not in the front of the robot, but is at an angle with the robot, the distance measured between the robot and the obstacle may be inaccurate.Ĭompile and download the program Ultrasonic-Infrared-Obstacle-Avoidance. ![]() Then, the monitor displays the current measured distance.Ĭompile and download the program Ultrasonic-Obstacle-Avoidance. Open the serial monitor, and set the baud rate to 115200. In this example, the robot goes straight when there is no obstacle, and turns right when obstacle is detected.Ĭompile and download the program Ultrasonic_Ranging. In case that the LEDs are always off or always on, you can try to adjusted the potentiometers on the bottom of the robot to make the LEDs work properly. When the obstacle is detected, the green LEDs will light up. When there is no obstacle ahead of the robot, the green LEDs on the robot are off. You can modify the program as required.Ĭompile and download the program Infrared-Obstacle-Avoidance. The key encoding may change with different Infrared remote controller. Keys “-“ and “+” can adjust the speed of the robot, and “EQ” can restore the default setting of the speed. You can control the smart robot by pressing down the numeric keys on the infrared remote controller, in which, “2”is for go forwards, “8” for go backwards, “4” for turn left, “6” for turn right, and “5” for stop. If the wheel(s) runs in the wrong direction, you should modify the settings of the corresponding pins.Ĭompile and download the program IR. When there is a key pressed down, the buzzer sounds and the motor rotates in the direction according to the key.ģ. Then, the monitor displays the current key press. This Joystick has 5 control directions: Up, Down, Left, Right, and Center (Enter).Ģ. ![]() Compile and download the Joystick program. In the event that all the wheels run in a wrong direction, you should modify the settings in the demos, like:ġ. For right wheels, exchange the settings of BIN1 and BIN2. If left wheels of the robot run in a wrong direction, you should exchange the settings of AIN1 and AIN2. 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. Normally, the smart robot moves forward when the program runs and drives the motor to rotate. If yes, it means the libraries are imported successfully.Ĭompile and download the program Run-Test. Then, restart the Ariduino IDE, and click File-> Example to see if there is an option TRSensors. To apply these examples to your application, you need to copy the file libraries under the directory of Arduino into the folder libraries under the installation directory of Arduino IDE. You can get the example programs described in the following sections from AlphaBot2-Demo. We have provided the control programs for Arduino, which can implement many functions, such as tracking, obstacle avoidance, remote control and so on. 0.96inch OLED SSD1306 driver, 128圆4 resolution.Xbee connector: for connecting dual-mode Bluetooth module, remotely control the robot via Bluetooth.Arduino interface: for connecting Arduino compatible controller.Arduino expansion header: for connecting Arduino shields.AlphaBot2 control interface: for connecting AlphaBot2-Base.Battery holder: supports 14500 batteries. ![]() ![]() Rubber wheels diameter 42mm, width 19mm.N20 micro gear motor reduction rate 1:30, 6V/600RPM.Potentiometer for adjusting obstacle avoiding range.ITR20001/T: reflective infrared photoelectric sensor, for line tracking.ST188: reflective infrared photoelectric sensor, for obstacle avoiding.AlphaBot2 control interface: for connecting sorts of the controller adapter board.This page describes the compatible accessories for Arduino UNO board. After a few minutes spent on hardware assembling, you're almost there, our open source demo codes are ready to help you get started fast.Īccessories may be different in the different product packages. Thanks to the highly integrated modular design, it is fairly easy to assemble by a snap, with no soldering, no wiring. The robot supports Arduino with an AlphaBot2-Ar adapter board. 3.14.1 Bluetooth control smart robot (JSON formatted command)ĪlphaBot2 robot building kit for Arduino.ĪlphaBot2-Ar robot kits include a chassis (AlphaBot2-Base chassis) and an adapter board AlphaBot2-Ar.3.7 Ultrasonic infrared obstacle avoidance. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |