Introduction Robot HAT
Introduction Robot HAT
Robot HAT
When you get the robot product, you will see a board with its name printed onside: Adeept
Robot HAT, which is an important part of the robot. There are many interfaces on the Robot HAT.
You can connect sensors and electronic hardware modules to the board by those interfaces to realize
more functions. This robot works on the Raspberry Pi. Let's first get to know the Robot HAT.
[Micro USB]: The Micro USB interface can connect the Robot HAT to a computer or other device,
and can also supply power for the Robot.
[Power LED]: Power LED is used to indicate the power status of Robot HAT. If the LED is on, it
means that the Robot HAT is powered on and can run; otherwise, the Robot HAT is off.
Support email:
2
[Uart]: Uart interface.The upper pin is GPIO14, the lower pin is GPIO15.
[GPIO 40-PIN]: General Purpose Input Output (GPIO) is designed as a slot with two rows of pins on
the Robot HAT. GPIO can be used to connect various peripheral electronic devices and sensors and
control or monitor these devices with input/output level signals. In robot products, this GPIO
interface is connected to the GPIO pins on the Raspberry Pi.
[IIC]: IIC interface. It is also the interface of the OLED screen module.
[Port]: Divided into Port 1, Port 2, and Port 3 interfaces, which are commonly used to connect small
LED lights.
Interface Introduction
Servo port
PCA9685 chip, using I2C bus can control 16 steering gears.
Support email:
3
Support email:
4
Port 0 refers to the three pins in the first column, which are black GND, red 5V, and yellow signal
pins. Port 1 represents the three ports in the second column. By analogy, a total of 16 servo ports can
be used.
GND GND
5V VCC
Ultrasonic
Support email:
5
The ultrasonic interface pins from top to bottom are: GND, GPIO08, GPIO11, 5V.
GND GND
GPIO08 Echo
GPIO11 Trig
5V VCC
Support email:
6
Tracking
Used to control the 3-way line patrol module.
Interface location:
Support email:
7
The pins of the three-way line inspection interface from top to bottom are: GND, GPIO19, GPIO16,
GPIO20, 3.3V.
GND GND
3.3V VCC
You will see the 3 test results of the line-following module printed out.
Support email:
8
WS2812
Used to control ws2812 lights.
Interface location:
Support email:
9
The ws2812 interface pins from top to bottom are: GND, 5V, and GPIO12.
GND GND
5V VCC
Motor
Use the L298P chip to control the motor.
Support email:
10
Interface location:
For the motor interface pins, the upper end is connected to the positive pole of the motor, and the
lower end is connected to the negative pole of the motor.
To test the motor interface code, run on the Raspberry Pi command line:
Support email:
11
You can see that the motor rotates forward for 3 seconds and then pauses, then reverses for 3
seconds.
Port
Used to control single color LED or switch.
Interface location:
Support email:
12
There are 2 pins in each interface, the upper part is GND, and the lower part is the signal pin. The
signal pins from left to right are GPIO05, GPIO06, GPIO13. (Note: There are some problems with
port GPIO05 temporarily, please use the other two interfaces)
GND GND
IIC
Used to control some modules that require IIC driver. For example: OLED screen.
Interface location:
Support email:
13
IIC interface pins from top to bottom are: 3.3V, GND, GPIO03 (SCL1), GPIO02 (SDA1).
Test the IIC interface code, take the OLED screen as an example, the OLED screen occupies the I2C
address 0x3C.
3.3V VCC
GND GND
GPIO03(SCL1) SCL
GPIO02(SDA1) SDA
MPU6050
Support email:
14
Interface location:
Only use the 4 pins below, from bottom to top: 3.3V, GND, GPIO03 (SCL1), GPIO02 (SDA1).
Support email:
15
3.3V VCC
GND GND
GPIO03(SCL1) SCL
GPIO02(SDA1) SDA
Different Raspberry Pi models have specific requirements for current. For example, the
Raspberry Pi 3B needs at least 2A to boot up, yet the Raspberry Pi 4 needs 3A to boot normally.
When you use the power adapter to power the Raspberry Pi, you can check the specifications on your
power adapter.
When Robot HAT is connected to a load, such as a motor or a few servos, a high-current power
supply is required to connect to Vin on the Robot HAT. You can use two high-current 18650
batteries for power supply.
Support email:
16
When USB port on the Robot HAT is used as power supply, the switch of Robot HAT does not
control whether to power on or off, but only controls the power supply by Vin onside.Do not use
both the USB port and Vin on the Robot HAT to supply power at the same time.
If you need to debug the program for a long time and don’t want to remove the battery, you can set
the switch on the Robot HAT to OFF, so that when you connect the Robot HAT with a USB cable,
Robot HAT is powered by USB.
If your robot reboots automatically after booting, or disconnects and reboots at the moment it starts
to move after normal booting, it is likely that your power supply does not provide enough current.
It is recommended to choose the 18650 battery with the maximum continuous discharge current
exceeding 4A, or the 18650 battery with "high rate discharge".
You may also power the Robot HAT with high energy li-ion battery; Robot HAT can be supplied by
a power source under 15V.
Support email: