This project is part of the second task in the Smart Methods training program under the Electronics track.
The goal is to control 4 servo motors using Arduino and the Sweep example.
- Program 4 servo motors to perform a Sweep motion (0° to 180°) for about 2 seconds.
- After that, set all servo motors to hold at 90 degrees.
- Write a simple algorithm to describe the walking motion for a humanoid robot.
- Arduino Uno R3
- 4 × Micro Servo Motors
- Jumper Wires
- USB Power Source
| Circuit Only | Circuit + Code |
|---|---|
![]() |
![]() |
The code is written in Arduino C++ and saved in the file:
servo_movement.ino
It uses the standard Servo.h library and performs sweep + hold motion.
1. Start the robot system.
2. Move front-left and back-right servos forward (step 1).
3. Pause briefly.
4. Move front-right and back-left servos forward (step 2).
5. Repeat steps 2–4 for continuous walking.
6. Stop all movement and hold servos at 90°.

