我的配件
1、arduino OUN R3板
2、L298N驱动板
3、9V 0.6A电源
4、9V 电池
5、9V直流电机一个
arduino OUN R3
L298N 驱动板
L298N电路图
测试代码
- void setup() {
- // put your setup code here, to run once:
- pinMode(8,OUTPUT);
- pinMode(12,OUTPUT);
-
- Serial.begin(9600);
- //Motor1(false);
- }
-
- void loop() {
- // put your main code here, to run repeatedly:
- digitalWrite(8,LOW);
- digitalWrite(12,HIGH);
- }
复制代码
接线方式:
L298N的 ENA 5V 用跳线帽短接。
9V 0.6A电源接 L298N VCC GND。
9V直流电机接 OUT1 OUT2
arduino 8 12 两个接口接L298N的 IN1 IN2。
arduino 使用9v电池供电
问题:
写入以上程序后,OUT1 OUT2 口旁边的电机正转灯亮。
万用表测量 arduino 的 8 12 接口电压 4.98V
万用表测量 L298N OUT1 OUT2的电压只有 0.6V(不连接电机测量)
该怎么解决?两块L298N 接了都是这样 |