๐ Pedro Robot
October 20, 2025 ยท View on GitHub
๐ Pedro Project Repositories:
Each Pedro repository serves a specific role in the ecosystem:
- ๐
Pedro: 3D printing resources โ STL files and assembly instructions for building the Pedro robot chassis. - ๐
Pedro Board: Hardware design โ Gerber files, schematics, and PCB layouts for the Pedro controller board. - ๐
Pedro Robot: Firmware โ Arduino source code and library to program and control the Pedro robot. - ๐
Pedro STEM: Education โ STEM lessons, activities, and teaching material using the Pedro robot for schools.
๐ Pedro Robot
Source code and library to program and control the Pedro robot. Available Control modes : Manual, Record & Replay, Bluetooth, Radio, and USB Serial.
โ๏ธ Installing and Uploading Pedro Firmware
- Download and install the latest version of the Arduino IDE.
- 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 โ Install
- Connect your Pedro robot to your computer via USB.
- Select the correct port:
- Tools โ Select the port that appear when you connect Pedro robot
- Select the board type:
- Tools โ Board โ Arduino Micro
- Open the example sketch:
- File โ Examples โ PedroRobot โ Pedro
- Compile and upload the sketch to your Pedro board.
โ Done! Your Pedro robot is now ready to run with the latest firmware.
Note: Make sure all dependencies are installed before compiling to avoid errors.
โจ Get Started with Pedro Control Modes
๐ฎ 1. Manual Mode
What it does: Direct control of servo motors using onboard buttons.
How to use:
- Power ON Pedro (default mode Manual)
- Use button A0 to Select Servo.
- Use button A1 to Move Servo to Left.
- Use button A2 to Move Servo to Right.
๐ STEM Insight: Learn about servo motors and direct PWM control.
๐ฅ 2. Record & Replay Mode
What it does: Record servo movements, then replay them.
How to use:
- Enter the Select Mode menu (hold button A0 for 4 seconds).
- Choose Record Mode from the menu.
- Press A0 to confirm.
- Move Pedro manually using the buttons (as in Manual Mode).
- Re-enter the Select Mode menu (hold A0 for 4 seconds).
- Select Replay Mode.
- Pedro will now repeat the recorded sequence in a loop.
- To stop or change, re-enter the Select Mode menu.
๐ STEM Insight: Teaches concepts of timing, sequencing, and automation.
๐ถ 3. Bluetooth Mode (HC-05)
What it does: Control Pedro via smartphone or PC.
How to use:
- Download the Serial Bluetooth app (iOS or Android).
- Create 7 control buttons with the following configuration:
- Name: Servo1 โ Value: 1 โ Mode: Text โ Action: Send.
- Name: Servo2 โ Value: 2 โ Mode: Text โ Action: Send.
- Name: Servo3 โ Value: 3 โ Mode: Text โ Action: Send.
- Name: Servo4 โ Value: 4 โ Mode: Text โ Action: Send.
- Name: FwD (Forward) โ Value: 5 โ Mode: Text โ Action: Send.
- Name: BwD (Backward) โ Value: 6 โ Mode: Text โ Action: Send.
- Name: Stop โ Value: 7 โ Mode: Text โ Action: Send.
- On Pedro, set the switch AT โ BT to: BT.
- Pair your device with Pedroโs HC-05 module (default name: HC-05, PIN: 1234).
- Use the app buttons to send commands and control Pedro in real time.
๐ ๏ธ AT Mode Setup (Optional โ change Pedroโs Bluetooth name):
- Power OFF Pedro.
- Set switch NRF โ BT โ WiFi to: BT.
- Set switch BT โ AT to: AT.
- Power ON Pedro.
- Enter the BLUETOOTH UPDATE menu.
- Change Pedroโs Bluetooth name (e.g., from PEDROROBOT1 up to PEDROROBOT99).
- Pair your device with the new name (PEDROROBOTX).
- Use the app buttons to control Pedro as before.
๐ STEM Insight: : Students learn about wireless serial communication and how to configure Bluetooth modules for embedded systems.
๐ก 4. Radio Mode (NRF24L01)
What it does: Enables remote communication between two Pedro robots or more using the NRF24L01 radio module.
How to use:
- Insert the NRF24L01 module into the left slot of each Pedro board (one robot as transmitter, the other as receiver).
- Set Pedroโs switch NRF โ BT โ WiFi to: NRF.
- Enter the Select Mode menu (hold button A0 for 4 seconds).
- Choose Radio Mode from the menu.
- Press A0 to confirm.
- Define the robotโs role (type): press A1 to select TRANSMITTER or RECEIVER.
- Press A0 to confirm the role.
- Set a communication Code Key:
- Press A1 to increase (increment).
- Press A2 to decrease (decrement).
- Values range from 1 to 99.
- Press A0 to confirm the Code Key.
- Press A0 again to validate (OK).
Note: Both the transmitter and receiver must use the same Code Key to establish communication.
๐ STEM Insight: This mode introduces students to the basics of radio frequency communication, addressing concepts like transmitter/receiver pairing and unique channel codes.
๐ 5. USB Serial Mode
What it does: Control Pedro from your PC with Pedro-IHM.
How to use:
- Enter the Select Mode menu (hold button A0 for 4 seconds).
- Choose USB SERIAL MODE from the menu.
- Press A0 to confirm.
- Connect Pedro via USB cable.
- Launch the web controller app.
- Send commands & test servo response.
๐ STEM Insight: Embedded programming and PC-robot communication.