DRI0054 Raspberry Pi Driving Board

Raspberry Pi Driving Board

Introduction

DF presents the all-new Raspberry Pi multifunctional motor driver expansion board, a full-featured robot motor expansion board suitable for Raspberry Pi Zero/Zero W/A+/B+/2B/3B/3B+/4B. It can simultaneously support multiple motors, stepper motors, servos, leaving out camera and DIP display screen ribbon interfaces. It can be stacked to extend more control interfaces, especially suitable for DIY robots, smart cars, robotic arms, smart cloud platforms, and various applications. The control interface simply uses the I2C interface, compatible with 3.3V/5V levels. It provides simple driver routines, users can modify, add their own required functions, and also has a UART interface, which can conveniently achieve communication with external devices. It has a built-in DC-DC regulator circuit, and the power supply current for Raspberry Pi can reach 3A.

Product Parameters

Features

Pin/Interface Explanation

Pin/Interface Explanation

Tutorial

Install I2C library and enable

Before using the driver board, you must first install the I2C library and enable it. Open the Raspberry Pi terminal and enter the command "sudo raspi-config", then follow the order of the pictures below.

Install I2C library and enable 1

Install I2C library and enable 2

Install I2C library and enable 3

Install I2C library and enable 4

The above is to turn on the Raspberry Pi I2C, next, we install the Raspberry Pi I2C library in the terminal, enter “sudo apt-get install i2c-tools”, after entering, you can see the I2C library being downloaded. After the installation is complete, you can enter “sudo i2cdetect -l” in the terminal to check if it is installed correctly. If information similar to the following appears, it means the installation is normal.

Install I2C library and enable 5

Enter “sudo i2cdetect -y 1” in the terminal to scan all I2C devices connected to the I2C bus, and print out the I2C bus address of the device. Our expansion board's I2C address is 0x60, as shown below.

Install I2C library and enable 6

Restart the Raspberry Pi to make the new settings effective:

sudo reboot

Download Programs

Enter the following commands in the terminal in order

cd ...
git clone https://github.com/DFRobotdl/RaspberryPi-MotorDriveBoard.git
Install I2C library and enable 6

Servo Drive

Connect as follows

Open the terminal and enter the following commands in order

cd RaspberryPi-MotorDriveBoard/Demo/Python/ServoTest/
python3 ./ServoTest.py

The servo will rotate back and forth from the minimum angle to the maximum angle

DC Motor Drive

Connect as follows

Open the terminal and enter the following commands in order

cd RaspberryPi-MotorDriveBoard/Demo/Python/DC_MotoTest/
python3 DCTest.py

The motor will rotate forward and backward at different speeds.

Stepper Motor Drive

Connect as follows

Open the terminal and enter the following commands in order

cd RaspberryPi-MotorDriveBoard/Demo/Python/StepperTest/
python3 StepperTest.py
Install I2C library and enable 1

Related Materials

Frequently Asked Questions

No customers have any questions about this product yet, feel free to contact us through qq or the forum! For more questions and interesting applications, you can visit the forum to check or post

More

DFRobot Store Purchase Link