AZIBOt for Educators
Lesson One: Driving Straight
- November 7, 2015
- Posted by: Alex
- Category: Beginner lessons
We will first learn to drive the AZIBOt in a line. Open Ardublocky with a clear workspace. Under the motor tab, select two servo blocks. Put them together and fill in the values as shown:
There are two parts to each of these blocks. First is the pin number. These use 10 and 11. This is because these are the pins that the drive servos are attached to. The second is the degrees the servo is supposed to turn to. Since the drive servos are continuous rotation servos, the numbers act more like a speed control.
Notice three things about the speed numbers. The first is that they are different. This is because one servo is flipped on its back so it has to spin the other way. The second thing to notice is that the speeds chosen are centered on 90. This is because when using a continuous rotation servo, the speed 90 is stop. Zero is full speed in one direction and 180 is full speed in the other direction. Numbers between 0 and 90 go in the same direction, but at different speeds. Numbers between 90 and 180 go the other direction but at different speeds. Pin 10 is told to go 40 less than 90. Pin 11 is told to go 40 more than 90. This keeps the wheels at the same speed.
If you want to learn more about speeds, check out the tutorial for experiment one.