Difference between revisions of "Pi-motor-driver-hat"

From SB-Components Wiki

 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div class="row">
 
<div class="row">
 
   <div class="large-8 column">
 
   <div class="large-8 column">
== Raspberry Pi Motor Driver HAT (Installation pending) ==
+
== Raspberry Pi Motor Driver HAT ==
 
Motor Driver HAT for Raspberry Pi is a module designed to control 2 DC motors simultaneously with I2C communication. It has a powerful onboard chip PCA9685 which provides 12-bit hardware PWM to adjust the motor speed. The logic voltage is 3.3 V with the motor driver TB6612FNG. It can be powered from a battery through the VIN terminal which makes a better experience for the user.  
 
Motor Driver HAT for Raspberry Pi is a module designed to control 2 DC motors simultaneously with I2C communication. It has a powerful onboard chip PCA9685 which provides 12-bit hardware PWM to adjust the motor speed. The logic voltage is 3.3 V with the motor driver TB6612FNG. It can be powered from a battery through the VIN terminal which makes a better experience for the user.  
  
Line 8: Line 8:
 
* 5V Regulator
 
* 5V Regulator
 
* Current up to 3A
 
* Current up to 3A
* I2C Control Interface with 5 address jumper
+
* I2C control interface with 5 address selection jumper.
 
* I2C Controller Pins
 
* I2C Controller Pins
 
* 12-bit hardware PWM For Speed Adjustment of Motor
 
* 12-bit hardware PWM For Speed Adjustment of Motor
Line 22: Line 22:
 
</div>
 
</div>
 
   <div class="large-4 column">
 
   <div class="large-4 column">
[[File:Pi_motor_driver_HAT.png|thumb|left|alt=Pi Motor Driver HAT| Buy it From : ''[ Click Here]'']]
+
[[File:Pi_Motor_Driver.png|thumb|left|alt=Pi Motor Driver HAT| Buy it From : ''[https://shop.sb-components.co.uk/products/motor-driver-hat-for-raspberry-pi Click Here]'']]
 
   </div>
 
   </div>
 
</div>
 
</div>
Line 38: Line 38:
 
== Installation ==
 
== Installation ==
  
 +
* Stack Motor driver HAT on Raspberry Pi 40 Pin header.
 +
 +
* Connect peripherals with Motor driver HAT as shown in below circuit diagram and turn on slider switch to turn on the Raspberry Pi.
 +
[[File:Motor_driver_hat_ckt.png]]
 +
 +
* Now open the terminal and run the below command to clone the Github repository of Motor driver HAT.
 +
<Source lang="shell">
 +
git clone https://github.com/sbcshop/Motor-Driver-HAT.git
 +
</source>
 +
* Now enter the downloaded folder by running the below command
 +
<Source lang="shell"> cd Motor-Driver-HAT </source>
 +
 +
* Now run the "Demo.py" python file by running the below command to move motors.
 +
<Source lang="shell"> python3 Demo.py </source>
  
 
== Resources ==
 
== Resources ==
 
<b> Github </b>
 
<b> Github </b>
* [Will be added soon Source Code]
+
* [https://github.com/sbcshop/Motor-Driver-HAT Source Code]
  
 
<b> Datasheet </b>
 
<b> Datasheet </b>
 
*[https://learn.sb-components.co.uk/images/e/ea/PCA9685_datasheet.pdf PCA9685 DataSheet]
 
*[https://learn.sb-components.co.uk/images/e/ea/PCA9685_datasheet.pdf PCA9685 DataSheet]

Latest revision as of 05:28, 29 June 2021

Raspberry Pi Motor Driver HAT

Motor Driver HAT for Raspberry Pi is a module designed to control 2 DC motors simultaneously with I2C communication. It has a powerful onboard chip PCA9685 which provides 12-bit hardware PWM to adjust the motor speed. The logic voltage is 3.3 V with the motor driver TB6612FNG. It can be powered from a battery through the VIN terminal which makes a better experience for the user.

Features

  • Standard Raspberry Pi 40 Pin GPIO Extension Header
  • 5V Regulator
  • Current up to 3A
  • I2C control interface with 5 address selection jumper.
  • I2C Controller Pins
  • 12-bit hardware PWM For Speed Adjustment of Motor
  • Control 2 DC Motor Simultaneously

Specifications

  • Logic voltage: 3.3V
  • Power supply: 6V~12V (VIN terminal)
  • PWM driver: PCA9685
  • Motor driver: TB6612FNG
  • Control interface: I2C
Pi Motor Driver HAT
Buy it From : Click Here

Pinout

Motor Driver HAT BCM
VCC 5V
GND GND
SDA GPIO 2
SCL GPIO 3

Installation

  • Stack Motor driver HAT on Raspberry Pi 40 Pin header.
  • Connect peripherals with Motor driver HAT as shown in below circuit diagram and turn on slider switch to turn on the Raspberry Pi.

Motor driver hat ckt.png

  • Now open the terminal and run the below command to clone the Github repository of Motor driver HAT.
git clone https://github.com/sbcshop/Motor-Driver-HAT.git
  • Now enter the downloaded folder by running the below command
cd Motor-Driver-HAT
  • Now run the "Demo.py" python file by running the below command to move motors.
python3 Demo.py

Resources

Github

Datasheet