انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents
Robo Maker: home
0. Lab tour1
1. The start: the Arduino6
2. Wiring and the traffic light4
3. Inputs: the button4
4. Sound and movement5
5. Sensors and numbers5
6. Distance, the screen and colours5
7. Motors and the car4
8. The project: the city's smart gate3
9. From blocks to C++ code5
10. Sensors and screens in code5
11. Smart systems5
12. Bluetooth: control from the phone1

The servo motor

Section 4: Sound and movementLesson 4.2 · ⏱ 8 min

The servo is a small motor that turns to a set angle from 0 to 180 degrees and stops there. We use it for doors, arms and the robot's head.

🧩 A robot waving
Blocks: loop — repeats forever
🖥️ What happens on the stage?
The servo's arm moves back and forth as if it were waving.

📌 Another example: the servo goes through three angles

0, then 90, then 180, a second for each angle.

🧩 The servo goes through three angles
Blocks: loop — repeats forever
0
0
90
90
180
180
✍️ Practise
Put the servo in the middle (90).
✍️ Practise here in the lessonor open the lab in a new page ↗
✍️ Practise
The robot waves.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Turn the servo to angle 45.

👀 Show the solution
🧩 Solution
Blocks: loop — repeats forever
In the lab
In the lab

Result: the arm is at 45.

Medium

Waving: between 60 and 120, every half second.

👀 Show the solution
🧩 Solution
Blocks: loop — repeats forever
In the lab
In the lab

Result: it waves.

Hard

From 0 to 180 in steps of 45, then back to 0.

👀 Show the solution
🧩 Solution
Blocks: loop — repeats forever
In the lab
In the lab

Result: it goes through five angles.

Finished the lesson? Mark it so your progress counts.