Lesson Details
How to control the angle of a servo motor in PictoBlox?
Activities:
- Making a smart intrusion detection system that detects intrusion with the help of an ultrasonic sensor and prevents someone from stealing the egg by controlling the bird's movement using a servo motor.
- Duration: 60 Minutes
- Difficulty: Intermediate
- Grade: 6th, 7th
Curriculum: Physical Computing for Kids – Level 1
Classroom Bundle Used: STEM Classroom Bundle, STEM Mini Classroom Bundle
Prerequisites: Smart Hand Band for Blind People
Download Resources
Lesson Overview
In this session, students will learn how to control a servo motor using PictoBlox programming by doing the following activities:
- Setting the servo motor to a specified angle input by the user.
- Controlling the servo using the Ultrasonic Sensor.
Material Required
1 set of the following material per group of 3-5 students:
Component | Image | Quantity | Available in Bundle |
---|---|---|---|
evive | 1 | ||
Micro Servo Motor with Accessories | 1 | ||
Ultrasonic Sensor | 1 | ||
Male to Female Jumper Cable 20cm | 5 | ||
Glue Gun and Glue Sticks | 1 |
Lesson Outline
How to control servo motor using PictoBlox? - 10 minutes
- What is a servo motor?
- How to control the servo position using pulse width modulation?
- How to control the servo motor using a set servo on () to () angle block in PictoBlox?
Activity 1 - 10 minutes
- Make a program that set the servo motor to a specified angle input by the user.
Activity 2 - 40 minutes
- In this activity, we will control the servo motor angle depending on whether the ultrasonic sensor detects the object.