This is an old revision of the document!
L3 Motors
DC motor
drives the DC motor with the study board. When button S1 is pressed, LED1 lights up and the motor starts turning clockwise. When button S3 is pressed, LED3 lights up and the motor starts turning counter-clockwise. When button S2 is pressed, LED2 lights up and the motor comes to a halt.
simulates robot movement using two DC motors and touch sensors. Touch sensors are buttons on the study board (i.e., S1 … S3). Drive the motor according to the button pressed. S1 will stop the left motor for 2 seconds and then resume full speed of both motors. S2 will stop the right motor for 2 seconds and then resume full speed of both motors. When both buttons are pressed at the same time, the motors will reverse direction as long as the buttons are kept pressed.
accelerates the DC motor smoothly when S1 is pressed and keeps the achieved speed when it is released. When S2 is pressed, the motor should brake smoothly as long as S2 is pressed. When S3 is pressed, the motor must stop immediately (simulates emergency stop).
Servo motor
controls the servo motor by means of study board buttons. When S1 is pressed, the servo motor on the left operates; when S3 is pressed, the servo motor on the right operates; and when S2 is pressed, the servo motor in the center position operates. The seven-segment display must show the servo position in real time (every number denotes 10 degrees of rotation; the center position is number
simulates a radar. Mount the IR sensor on the servo leg to detect objects closer than 1 m. The servo should rotate continuously for 180 degrees; if an object is detected, it should stop for 10 seconds, signaling with the LED (PB7) that an object has been found.