🎯 Learning Objective
This lesson introduces students to P.E.D.R.O the Programmable Educational Robot, fully 3D-printed, open-source robot designed to make robotics learning fun and hands-on. By the end of this session, students will:
• Understand the basics of robotics and embedded systems• Learn how 3D printing works and how robots are designed• Assemble and control their own Pedro robot• Upload code to Pedro using the Arduino IDE• Identify and explain the main components of a robot
👨🏫 Instructor Notes
• Recommended age: 12 years and older• Ideal for STEM clubs, classroom workshops, or science projects• Students should have basic computer literacy• Duration: ~2 hours
🧰 Required Materials
🧩 Final Activity
…
🎯 Learning Objective
This lesson introduces students to P.E.D.R.O the Programmable Educational Robot, fully 3D-printed, open-source robot designed to make robotics learning fun and hands-on. By the end of this session, students will:
• Understand the basics of robotics and embedded systems• Learn how 3D printing works and how robots are designed• Assemble and control their own Pedro robot• Upload code to Pedro using the Arduino IDE• Identify and explain the main components of a robot
👨🏫 Instructor Notes
• Recommended age: 12 years and older• Ideal for STEM clubs, classroom workshops, or science projects• Students should have basic computer literacy• Duration: ~2 hours
🧰 Required Materials
🧩 Final Activity
At the end of the workshop:
• Students complete a 30-question quiz to review key concepts.• Teachers can discuss real-world applications of robotics and 3D printing.
1. Materials Check
Make sure you have all the parts before starting the assembly.
Check all the parts by putting an ✅ next to each part of Pedro robot.
✅ All Pedro 3D printed parts✅ Pedro Rev3 Electronic Board✅ 2 ball bearings 8x22x7 mm✅ 4 continuous rotation (360°) servomotors✅ 7.4V DC battery
💡 What You Should Know About Pedro
All the parts of Pedro are 3D printed. As you can see, there are no screws in the pieces that make up Pedro. Which makes Pedro a 100% 3D-printed robot.
2. What Is 3D Printing?
3D printing is a technology that allows us to create solid objects by melting and layering plastic filament (PLA or ABS). Before printing a part, several important steps are needed:
2.1 Design (CAD):
The first step is to design the part using a CAD (Computer-Aided Design) software. This program lets us draw the object in three dimensions on a computer.
2.2 Export to STL:
Once the design is finished, it is converted into an STL file. This file describes the shape of your object using a set of precise coordinates and numbers.
2.3 Generate the G-code:
The STL file is then converted into a G-code file. G-code contains the exact instructions the 3D printer follows to create the part layer by layer. Usually, the G-code is saved on a microSD card, which is then inserted into the 3D printer to start printing.
Only four STL files available on the Pedro Github repo (https://github.com/almtzr/Pedro) allow to print entirely the Pedro robot as described on the following image above:
3. Design
3.1 The Pedro Anatomy
As robotic arm Pedro is equipped with four servomotors, each serving a distinct purpose in its movement. Three servomotors control the movement axes, while the fourth servomotor is dedicated to the gripper.
• The first servomotor controls the base rotation, facilitating horizontal movement translation.• The second servomotor manages the shoulder, enabling vertical rotation.• The third servomotor operates the elbow, facilitating pick-up movements.• Finally, the fourth servomotor controls the gripper, enabling Pedro to grasp objects securely.
Together, these servomotors enable Pedro to perform a wide range of precise and coordinated movements, making it an effective tool for various robotic applications.
3.2 Planetary Gear System
Pedro features three planetary motion modules, fully 3D-printed. These modules enable smooth and precise movements, powered by a continuous servomotor motor placed at the center of each joint.
3.3 What is a planetary gear system in robotics?
A planetary gearbox is a gear mechanism that optimizes motion transmission by reducing speed and increasing torque. It consists of:
⚙️ The sun gear: the central gear (driven by the motor)⚙️ The planet gears: three gears rotating around the sun⚙️ The ring gear (here replaced by Pedro’s structure), holding everything together
3.4 Why use a planetary system on Pedro?
✅ Increased power and precision✅ Compact and robust design✅ Fully 3D-printable with no complex parts
This system allows Pedro to execute smooth and precise movements in its three main joints: the base, shoulder, and elbow. No screws, no glue just 100% 3D printed.
4. The Pedro Board
The Pedro Board is the brain of the robot. It is an Arduino-compatible microcontroller board (ATmega32u4) specially designed for the Pedro robot. It connects and controls all of Pedro’s parts from the motors to the sensors and communication modules.
4.1 Main Features
• Arduino Micro compatible – easy to program with the Arduino IDE• 4 servo motor outputs – control the arm, base, and gripper• Integrated OLED screen (128×64) – displays mode, messages, and feedback in real time• Wireless communication ports for: ◦ nRF24L01 (radio control) ◦ HC-05 (Bluetooth connection) ◦ ESP8266-01 (WiFi / IoT mode)
• Micro USB port – for programming and USB Serial mode• Built-in battery charger – for a 7.4V Li-ion or LiPo battery• Serial RX/TX pins – for external module or debugging
4.2 STEM Insight
The Pedro Board introduces students to embedded systems, where hardware and software work together to make intelligent machines. It’s a perfect platform to learn electronics, communication protocols, and real-world engineering design.
4.3 Identify Each Element of the Pedro Board:
Students can analyze and label:
• Programmable components (buttons, LEDs, servo pins)• Power and battery indicators• Communication module ports (Radio, Bluetooth, WiFi)• USB and serial connections
This activity helps them recognize how each part contributes to robot operation.
▪ PART 1 : Identification of Non-Programmable Elements
1. LED CR : Indicates that the battery is currently charging.2. LED OK : Indicates that the battery is fully charged.3. Battery Level LEDs: Show the battery charge level from bottom to top (25%, 50%, and 100%).
▪ PART 2 : Identification of Programmable1 Elements
1. A programmable element is a component on the electronic board that can be controlled by programming the microcontroller. This can include buttons, LEDs, or input/output pins.
▪ PART 3 : Identification of Connectors
The pins RX, TX, A3, A4, and A5 allow Pedro to communicate with external devices, such as an Arduino board, another Pedro robot, or components on a breadboard (e.g., a button or an LED).
The USB port has three main functions:
1. Programming the board2. Charging the battery3. Controlling the Pedro robot via a graphical interface
5. Installing and Uploading Pedro Firmware
1. Download and install the latest version of the Arduino IDE.2. Install the required libraries from the Library Manager:◦ PedroRobot: Tools → Manage Libraries → search PedroRobot → Install◦ U8glib: Tools → Manage Libraries → search U8glib → Install◦ RF24: Tools → Manage Libraries → search RF24 → Install3. Insert the Oled Screen into the Pedro board and Connect the board to your computer via USB.4. Select the correct port:◦ Tools → Select the port that appear when you connect Pedro robot5. Select the board type:◦ Tools → Board → Arduino Micro6. Open the example sketch:◦ File → Examples → PedroRobot → Pedro7. Compile and upload the sketch to your Pedro board.✅ If everything is correct, Pedro’s OLED screen will display “MANUAL MODE”.
8. Press the button A0 and observe what happen.
The LED corresponding to the selected servo light on. That button allows you to control each part of the robot. Here is the mapping between the LED ID and the servo ID
LED D13 → servo D5 (Base)LED D11 → servo D6 (Shoulder)LED D8 → servo D9 (Elbow)LED D7 → servo D10 (Gripper)
Programming and embedded systems concepts will be covered in Lesson 2, where you’ll learn how the board operates and interacts with coding instructions.
6. Assembling
💡 Pedro is entirely screw-free — all parts snap together easily!
Step 1: The Base
Attach the first servo to the base structure. This servo controls the horizontal rotation.
Step 2: The Gripper
Assemble the gripper with the fourth servo. Ensure it opens and closes smoothly.
Step 3: The Arm
Connect the shoulder and elbow servos. Check each movement before final assembly.
7. Quiz (30 Questions)
1. What does the acronym P.E.D.R.O. stand for?
A) Programmable Electric Device for Robotic OperationB) Programmable Educational RobotC) Printed Electronic Design Robotic ObjectD) Personal Educational Digital Robot✅ Answer:
2. What is the main goal of the Pedro Lesson 1?
A) Build a droneB) Discover the Pedro robot and understand its operationC) Learn 3D modeling onlyD) Program a mobile app✅ Answer:
3. What type of microcontroller powers Pedro?
A) ATmega32U4B) ESP32C) Raspberry PiD) STM32✅ Answer:
4. What software is required to program Pedro?
A) Visual StudioB) Arduino IDEC) PythonD) MATLAB✅ Answer:
5. What kind of motor does Pedro use?
A) Stepper motorsB) Brushed DC motorsC) Continuous rotation servomotors (360°)D) Hydraulic actuators✅ Answer:
6. How many servomotors are used in Pedro?
A) 2B) 3C) 4D) 5✅ Answer:
7. What is the purpose of the first servomotor?
A) Controls the gripperB) Controls the base rotation for horizontal movementC) Controls the shoulderD) Controls the elbow✅ Answer:
8. What does the fourth servomotor control?
A) The baseB) The shoulderC) The elbowD) The gripper✅ Answer:
9. What material is used to print Pedro’s parts?
A) AluminumB) PLA or ABS plasticC) SteelD) Nylon✅ Answer:
10. What makes Pedro unique in its construction?
A) It is 100% 3D printed with no screwsB) It uses wooden partsC) It is laser-cutD) It is glued together✅ Answer:
11. What tool is used to generate 3D printer instructions from a design file?
A) STL fileB) G-codeC) CAD modelD) Firmware✅ Answer:
12. What is the first step in 3D printing a part?
A) Generate G-codeB) Export to STLC) Design in CADD) Print immediately✅ Answer:
13. What type of bearing system does Pedro use?
A) Magnetic bearingsB) Ball bearingsC) Roller bearingsD) Gear bearings✅ Answer:
14. What is the function of the base bearing?
A) Controls the gripperB) Stabilizes vertical motionC) Ensures stable and precise rotationD) Controls speed✅ Answer:
15. What is the purpose of the planetary gear system in Pedro?
A) To reduce torque and increase speedB) To increase torque and improve precisionC) To provide electrical powerD) To connect sensors✅ Answer:
16. How many planetary motion modules does Pedro have?
A) 1B) 2C) 3D) 4✅ Answer:
17. Which gear in the planetary system is driven by the motor?
A) The planet gearB) The sun gearC) The ring gearD) The outer shell✅ Answer:
18. What component allows Pedro to communicate wirelessly over long distances?
A) NRF24L01 moduleB) Wi-Fi routerC) GPS moduleD) Ultrasonic sensor✅ Answer:
19. Which module enables Pedro to connect to Wi-Fi ?
A) HC-05 Bluetooth moduleB) ESP8266-01 moduleC) NRF24L01 moduleD) GPS module✅ Answer: B
20. What is the screen resolution of Pedro’s OLED display?
A) 64x64B) 128x32C) 128x64D) 256x128✅ Answer:
21. Which component represents the “brain” of the Pedro board?
A) The OLED DisplayB) The ATmega32u4 MicrocontrollerC) The Battery ChargerD) The NRF24L01 Radio Module✅ Answer:
22. What type of display is integrated into the Pedro Board?
A) LCD 16x2B) OLED 128x64C) TFT 2.4“D) LED matrix✅ Answer:
23. What function does the Micro USB port serve?
A) Power onlyB) Programming, charging, and serial controlC) Bluetooth pairingD) WiFi connection✅ Answer:
24. Which module provides WiFi capability?
A) NRF24L01B) HC-05C) ESP8266-01D) GPS module✅ Answer:
25. What does the ATmega32u4 allow students to do?
A) Design 3D partsB) Program the robot using Arduino IDEC) Print STL filesD) Connect motors directly✅ Answer:
26. Which component shows the battery charge level?
A) LED CRB) LED OKC) Battery Level LEDsD) OLED screen✅ Answer:
27. What does the LED “CR” indicate?
A) Bluetooth connectedB) Battery chargingC) Low voltageD) Power OFF✅ Answer:
28. What switch is used to select between NRF, BT, and WiFi?
A) Power switchB) Communication switchC) Mode buttonD) Servo selector✅ Answer:
29. What is the purpose of the RX/TX pins?
A) Power the LEDsB) Enable serial communicationC) Control servosD) Connect battery✅ Answer:
30. What kind of system is the Pedro Board a good example of?
A) Mechanical systemB) Embedded systemC) Hydraulic systemD) Optical system✅ Answer: