Page 118 - TCS ICT Book 8
P. 118
The City School 2021-2022
In the code, we are instructing the Pi to start the wave at 24% using the start command.
Then we use the command ChangeDutyCycle() which understands the value in
percentage format, referring to the on-time of signal or to change the angle. We just
have to input the percentage of on-time signal to rotate servo motor to a particular
angle. This is the standard method to program a servo motor.
The ChangeDutyCycle() is in while True loop which means that the servo motor will
keep changing its angle after a particular time.
5.14. Building Smart Robotic Car
Bumble Pi is an educational robot kit
specially designed for beginners to learn and
get hands-on experience with mechanics,
electronics, and Computer Science. Bumble
Pi is easy to assemble. Follow the step-wise
instruction for making Bumble Pi.
Equipment needed
• Raspberry Pi (with Raspbian OS)
• Pi Shield
• Screw Set
• Chassis (Upper and lower planks
and side planks)
• Battery with a zip tie
• DC Motors Chassis (upper and lower planks) DC Motors
• SONAR with Holder
• Servo Motor
• Wheels & Caster Wheel
• Android Mobile Device with
TechTree Bumble Pi Application
installed in it.
Wheels for DC Motor Caster wheel for the front
118

