tinyBotQueenWave
tinyBotQueenWave
tinyBotQueenWave builds on tinyBotWave. This example waves tinyBot's channel one servo side to side.
Commands used:
robotMove(<channel>,<position>)
What We Learn:
This program uses only one command, robotMove, and is almost exactly the same as tinyBot wave. Notice the similarities with tinyBotWave. See how the <channel> parameter causes a different motion? After you've seen the program work, can you re-create it by changing tinyBotWave in mimicBlock or Arduino?
Instructions:
Download the program images HERE or click the images below. The file includes both the mimicBlock and Arduino versions of the tinyBotWave program. Copy the program using your computer, then upload it onto tinyBot. Does your robot move like the robot in the GIF at the top of the page?
Download Files:
Don't feel like copying the files? Download the complete program here.
Download tinyBotQueenWave.ino for Arduino
Download robotWave.abp for mimicBlock
Cut and paste code:
#include <robot.h>
void setup() {
// put your setup code here, to run once:
robotActivate();
}
void loop() {
// put your main code here, to run repeatedly:
robotMove(3,200);
robotMove(1,150);
robotMove(1,50);
}