![]() ![]() If IN3=LOW, IN4= HIGH, K3 or K4 motor moves backward. If IN3=HIGH(1), IN4= LOW (0),motor in K3 or K4 moves forward. IN3,IN4 digital input pins determine the rotation direction of K3,K4 motor. If IN1,IN2 has same voltage, K1/K2 motor does not move. If IN1=LOW, IN2= HIGH, K1 or K2 motor moves backward. If IN1=HIGH(1), IN2= LOW (0),motor in K1 or K2 moves forward. IN1,IN2 digital input pins determine the rotation direction of K1,K2 motor. If ENB current is high, K3,K4 will have higher rotation speed. If ENA current is high, K1,K2 will have higher rotation speed.ĮNB gets PWM signal (analog current signal) from raspberry pi or Arduino. Picture 3: Model Pi connection map to Raspberry Pi board as per picture 3.ĮNA gets PWM signal (analog current signal) from raspberry pi or Arduino. Picture 2:Connect Model Pi six control pins to the Raspberry Pi GPIO pins and PCA9685 Compatible module as picture 2. Picture 1:Connect PCA9685 compatible board to raspberry pi board as per picture 1. Input power source can be 7.5v-24v batteries (we suggest using 2pcs tandem 18650 batteries etc, or 6pcs AAA Tandem AAA batteries, or, 2pcs Parallel 9V batteries for robot project). There are 6 input-signal pins ENA,IN1,IN2,IN3,IN4,ENB and two pairs of output socket (K1/K2, K3/4) which connect to left and right motors. Each Channel has two output sockets (K1/K2 for right side wheels and K3/K4 for left side wheels) Two Channels of PWM output and to control left and right wheels. I/O pins fully compatible with L298N including EnableA/IN1/IN2/IN3/IN4/EnableB. This board supports all the features of L298N DC motor driver, in addition, it also has a USB 5V output port which can provide stable voltage to Raspberry Pi board. OSOYOO Model-Pi L298N board is perfect motor driver board for Raspberry Pi portable applications such as robots, RC cars, drones, mini weather station etc. The most important part in this project is OSOYOO Model-Pi motor drive board- an improved L298N module which can power motor and Raspberry Pi at the same time. K1 and K2 are same, K3 and K4 are same, see following pictures:ġ2) Connect upper chassis to lower chassis with 4pcs M3*10 hex screws and 4pcs M3 rubber rings, then install 2 wheels onto the motors. Use 3pin 15cm female to female cable to connect voltage meter to model pi motor driver board.ġ0) Install raspberry pi board on low car chassis with 4pcs M2.5 plastic screws, plastic pillars and plastic nuts.ġ1) Install 18650 battery box on upper car chassis with 4pcs M3x10 screws and nuts.ġ2)Connect battery box connector to model pi board as per following graph.ĮNA connect to PCA9685 PWM0,ENB connect PCA9685 PWM1. (Please make sure you install the OSOYOO MODEL Pi motor driver module in correct direction.)ĥ) Install PCA9685 compatible board on lowcar chassis with 2pcs M2.5 plastic screws, plastic pillars and plastic nutsĦ) Install voltage meter on low car chassis with 2pcs M2.5 plastic screws, plastic pillars and plastic nuts.ħ) Install universal wheel on low car chassis with 2pcs M3x10 hex screws and M3 nuts.Ĩ) Install 4pcs copper pillars on low car chassis with 4pcs M3x20 hex screws and M3 nuts.ĩ)You need to plug 2pin 20cm female to female cable and 3pin 20cm female to female cable on PCA9685 compatible board. Raspberry pi 4 or 3 or 3B board x1 (NOT Included)ġ) Remove the protective film on upper and low car chassis (Each car chassis has one protective film).Ģ) Install 4 motors with Metal Motor Holders as follows.ģ) Install 2 motors on lower car chassis with screw M3*10 (screws in metal motor holder package).Ĥ) Install OSOYOO MODEL Pi motor driver module to car low chassis with 4pcs M2.5 plastic screws, plastic pillars and plastic nuts. If you are interested in C++ programming, this project has a C++ solution in following link: You will learn how python sends digital data to GPIO pins, how to send PWM (analog) signal to PCA9685 module. ![]() In this lesson, we will teach you how to install the OSOYOO V2.0 Raspberry Pi Robot Car basic frame work.Īnd we will use Python to make a simple program to make two motors in K1 and K3 move forward for 2 seconds then move backwards for two seconds. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |