/* Copy and paste the code below into the Arduino software */ int E1 = 6; //M1 Speed Control int E2 = 5; //M2 Speed Control int M1 = 8; //M1 Direction Control int M2 = 7; //M2 Direction Control void setup() { int i; for(i=5;i<=8;i++) pinMode(i, OUTPUT); Serial.begin(9600); } void loop() { int leftspeed = 255; //255 is maximum speed int rightspeed = 255; analogWrite (E1,255); digitalWrite(M1,LOW); analogWrite (E2,255); digitalWrite(M2,LOW); delay(100); } |
底下這例子是我從這台車使用手冊擷取下來,你完全不用改,直接讓它執行,如果接線對的話,兩顆馬達會全速轉動. |
H橋燙是一定的 我都是裝大顆散熱片加小風扇 你沒有這片板子的規格或是說明書嗎? 應該查一下就知道那顆紅燈到底幹嘛的哩 |
剛剛試了 7.2V電池 15T馬達 紅燈還是依樣在閃爍 但H橋發燙 |
應該不是,電流太大應該有自動復位保險絲把它停掉。 |
小黑屋|手機版|Archiver|機器人論壇 from 2005.07
GMT+8, 2025-2-1 02:42 , Processed in 0.247346 second(s), 11 queries , Apc On.
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.