Manual 2
Manual 2
ForwL; ForwR;
BackL; BackR;
StopL; StopR;
Stop;
Whiskers
ObsL ObsR
Loudspeaker and arduino led
SpOn; LedOn;
SpOff; LedOff;
SpToggle: LedToggle;
Examples:
ForwL; ForwR;
delay (1000); Stop;
Move for 1 second
if (ObsR | ObsL) {
SpOn; delayMicrosecond (500);
SpOff; delayMicrosecond (500);
}
Beep if against an bstacle
If you are not familiar with #defines and reference files, see www.didel.com/coursera/LC.pdf (in
french)
and www.didel.com/diduino/ArduinoInclude.pdf
See www.didel.com/diduino/ArduinoInclude.pdf
You can use Arduino functions in the definition, It makes the program longer and slower,
but this is not a critical point. What is important is the program must refer to any robot with 2
motors and 2 whiskers.