L298P 2A Motor Drive Arduino Shield
บอร์ด L298P Motor Drive
- สำหรับขับมอเตอร์ DC Motor ได้ 2 ตัว ที่กระแส 2A
- มี Buzzer สำหรับแสดงผลทางเสียง
- มีช่องรองรับ Bluetooth , Servo , Ultrasonic
- ช่องต่อสำหรับ I/O ภายนอก
จึงต่อทดลองได้สะดวก เหมาะเหมาะสำหรับขับเคลื่อน รถหุ่นยนต์ Smart Car ที่พร้อมติดตั้งเซนเซอร์ได้หลายแบบ
โคดตัวอย่าง Arduino L298P Motor Driver Shield
int E1 = 10;
int M1 = 12;
int E2 = 11;
int M2 = 13;
void setup ()
{
pinMode (M1, OUTPUT);
pinMode (M2, OUTPUT);
}
void loop ()
{
{int value;
for (value = 0; value <= 255; value + = 5)
{
digitalWrite (M1, HIGH);
digitalWrite (M2, HIGH);
analogWrite (E1, value); // PWM speed control
analogWrite (E2, value); // PWM speed control
delay (30);
}
delay (1000);}
{int value;
for (value = 0; value <= 255; value + = 5)
{
digitalWrite (M1, LOW);
digitalWrite (M2, LOW);
analogWrite (E1, value); // PWM speed control
analogWrite (E2, value); // PWM speed control
delay (30);
}
delay (1000);}
}
ข้อมูล L298P 2A Motor Drive Arduino Shield
- The logic part of the input voltage (VD): 5V
- Drive portion input voltage (VS): VIN Input 6.5 ~ 12V, PWRIN 4.8 ~ 35V input logic portion
- Working current Iss:
- Io: < 2A
- Maximum power dissipation: 25W (T = 75 ° C)
- Control signal input level: high 2.3V
- Operating temperature: - 25 + 130 ° C
- Hardware Interface: 5.0mm pitch terminal
- The fixed buckle belt, and can be front row access control signal
- Drive Type: Dual high-power H-bridge driver
- The pin occupancy: D4 ~ D7 direct drive motor
- Support PWM / PLL mode motor speed control