# 1. Introduction to Raspberry Pi Expansion Board Function Distribution ## 1.1 Introduction The Raspberry Pi expansion board facilitates the Raspberry Pi connection to other sensors and execution components. With a wide variety of Raspberry Pi expansion boards available, Hiwonder has developed a multifunctional Raspberry Pi expansion board to meet the needs of various projects. To adapt to different Raspberry Pi robots, three types of expansion boards A, B, and C are provided. The differences between the three types are shown below: The Raspberry Pi expansion board A comes with a 4-channel motor control chip SA8339, which is mainly used for Hiwonder Raspberry cars and robotic arms series, such as ArmPi FPV, ArmPi Pro, ArmPi mini, TurboPi, MasterPi, GoGoPi, and uHandPi. Both the Raspberry Pi expansion boards B and C are equipped with a six-axis IMU. However, expansion board C does not have a bus servo interface. The expansion board B is mainly used for Raspberry Pi biorobots, such as TonyPi, TonyPi Pro, SpiderPi, and SpiderPi Pro. The expansion board C is mainly applied to PuppyPi and PuppyPi Pro. For further information about these products, please access the Hiwonder official website. About the components on these three expansion boards, please refer to the following instructions. ## 1.2 Raspberry Pi Expansion Board A The Raspberry Pi expansion board A features a 4-channel motor interface, a 2-channel bus servo interface, a 6-channel PWM servo interface, a 3-channel I2C interface, a 2-channel GPIO interface, two RGB lights, a buzzer, two custom buttons, and three signal indicators (excluding the IUM sensor). The functions of the interfaces on the Raspberry Pi expansion board A are shown below:
Electronic Module Instruction
RGB light (RGB1, RGB2) To set the lighting, flashing, color, and other states of the RGB light through programming.
Motor Interface Be externally connected to the motor, driving the motor to rotate.
Buzzer Be set to make sounds through programming.
PWM Servo Interface Connect and control the PWM servo.
Bus Servo Interface Connect with the bus servo interface to rotate it and read the servo status.
Function Key (KEY1) Short press to activate the robot self-check function.
Function Key (KEY2) Long press to shut down the board.
Power Indicator (LED1) Show the board's power status.
WIFI Indicator (LED2) Show the WIFI connection status. In AP direct connection mode, it blinks every 2 seconds. In LAN mode, it remains on.
Communication Indicator (LED3) Remain on and blink when receiving signals.
DC Power Interface Be connected to a DC power supply to power the Raspberry Pi.
GPIO Expansion Interface Used for user extension and expansion.
I2C Interface
## 1.3 Raspberry Pi Expansion Board B The Raspberry Pi expansion board B provides a 6-channel bus servo interface, a 2-channel PWM servo interface, a 1-channel fan interface, a 2-channel I2C interface, a 2-channel GPIO interface, a buzzer, two custom buttons, and a six-axis IUM sensor. The functions of the interfaces on the Raspberry Pi expansion board B are shown below:
Electronic Module Instruction
Buzzer Be set to make sounds through programming.
PWM Servo Interface Connect and control the PWM servo.
Bus Servo Interface Connect with the bus servo interface to rotate it and read the servo status.
Function Key (KEY1) Short press to activate the robot self-check function.
Function Key(KEY2) Long press to shut down the board.
Power Indicator (LED1) Show the board's power status.
WIFI Indicator (LED2) Show the WIFI connection status. In AP direct connection mode, it blinks every 2 seconds. In LAN mode, it remains on.
Communication Indicator (LED3) Remain on and blink when receiving signals.
Battery Interface Be connected to a DC power supply to power the Raspberry Pi.
Charging Port Be connected to a charger to charge the battery.
GPIO Expansion Interface Used for user extension and expansion.
I2C Interface
Fan Interface Be externally connected to a cooling fan.
6-axis IMU Sensor Obtain the acceleration and gyroscope data of the X, Y, and Z axes of the robot.
## 1.4 Raspberry Pi Expansion Board C The Raspberry Pi expansion board C is equipped with an 11-channel PWM servo interface, a 1-channel fan interface, a 2-channel I2C interface, a 2-channel GPIO interface, a 1-channel voltage indicator interface, a buzzer, two custom buttons, three signal indicators, and a six-axis IUM sensor. The functions of the interfaces on the Raspberry Pi expansion board C are shown below:
Electronic Module Instruction
RGB light (RGB1, RGB2) To set the lighting, flashing, color, and other states of the RGB light through programming.
Buzzer Be set to make sounds through programming.
PWM Servo Interface Connect and control the PWM servo.
Bus Servo Interface Connect with the bus servo interface to rotate it and read the servo status.
Function Key (KEY1) Short press to activate the robot self-check function.
Function Key (KEY2) Long press to shut down the board.
Power Indicator (LED1) Show the board's power status.
WIFI Indicator (LED2) Show the WIFI connection status. In AP direct connection mode, it blinks every 2 seconds. In LAN mode, it remains on.
Communication Indicator (LED3) Remain on and blink when receiving signals.
Battery Interface Be connected to a DC power supply to power the Raspberry Pi.
Charging Port Be connected to a charger to charge the battery.
GPIO Expansion Interface Used for user extension and expansion.
I2C Interface
Fan Interface Be externally connected to a cooling fan.
Voltage Indicator Interface Be externally connected to the voltage indicator.
6-axis IMU Sensor Obtain the acceleration and gyroscope data of the X, Y, and Z axes of the robot.