Motor Control

Introduction to Motor Driver ICs, and Motor Control, PWM signals.


Lithium-ion Battery

1P = 3.7V, 2P = 7.4V, 3P = 11.1V

18650 cell

3.7V x 11000mAh

LiPO battery cell


5V regulator (穩壓IC)

L7805CV (STMicro)

Pin Out

2N2222 (PNP Transistor)

Pin Out
Connections


Motor Driver

H-bridge Motor driving circuit (橋式直流馬達驅動電路)


L298

Pin Out

Connections: 4 GPIOs

Example Code RoboCar_L298.ino

#define IN1_PIN     5 // IN1 pin 
#define IN2_PIN     6 // IN2 pin 
#define IN3_PIN     7 // IN3 pin 
#define IN4_PIN     8 // IN4 pin 

void setup()
{
    Serial.begin(115200);
    // set 4 GPIOs to OUTPUT mode
    pinMode(IN1_PIN, OUTPUT);
    pinMode(IN2_PIN, OUTPUT);
    pinMode(IN3_PIN, OUTPUT);
    pinMode(IN4_PIN, OUTPUT);

DRV8833

Pin Out

Connections

Example Code
RoboCar_DRV8833_GPIO.ino

RoboCar_DRV8833_GPIOPWM.ino


TB6612FNG

Pin Out

Connecitons

Example Code
RoboCar_TB6612_PWM.ino


Pulse Width Modulation (PWM) signals


BLDC Motor Control

BLDC三相直流無刷有霍爾 電機控制器

5~36V 350W BLDC三相直流無感無刷電機控制器

12-60V 300W BLDC三相直流(無刷、有霍爾)馬達控制器




This site was last updated October 07, 2024.