Hardware Reference
In-Depth Information
GPIO.output(11,GPIO.HIGH)
motor1 = GPIO.PWM(8,1000)
motor2 = GPIO.PWM(10,1000)
5. We will start the pulse width modulaion signal (10 percent duty cycle - runs at
10 percent of the rated voltage) as follows:
motor1.start(10)
motor2.start(10)
We can vary the speed of the motor as follows:
while True:
motor1.ChangeDutyCycle(25)
motor2.ChangeDutyCycle(25)
sleep(15)
motor1.ChangeDutyCycle(50)
motor2.ChangeDutyCycle(50)
sleep(15)
motor1.ChangeDutyCycle(75)
motor2.ChangeDutyCycle(75)
sleep(15)
motor1.ChangeDutyCycle(100)
motor2.ChangeDutyCycle(100)
sleep(15)
Objective complete - mini debriefing
In this task, we implemented a motor driver circuitry and tested it.
Preparation of the line following
course
In this task, we will prepare the line following track for the robot.
Prepare for lift off
There are two approaches to building a line following track. They include the following:
1.
Print a track available from Parallax and set it on top of a posterboard.
2.
Use electrical tape and build a track using a tutorial from Pololu .
 
Search WWH ::




Custom Search