Kiszállítás United Kingdom , USD
A %s legnépszerűbb értékelése a Banggood-on, Vásároljon legjobb %s-t a legalacsonyabb áron a Banggood-on. Vásárlás előtt böngésszen a %s leghasznosabb pozitív véleményében., rc játékok, szórakoztató sport, divat, népszerű elektronika
jehdspth 21/06/2018
I really like the on/off switch on it. Here is some code to make the motors run: /*JEH 20Jun18 This simple code just makes the two motored bot move forward at half speed. If one motor runs backward, swap the + and - wires for that motor. */ #define leftMotoDirA 12 #define leftMotoSpeeA 11 #define rightMotoDirB 7 #define rightMotoSpeeB 6 void setup() { Serial.begin (9600); pinMode (leftMotoDirA, OUTPUT); pinMode (leftMotoSpeeA, OUTPUT); pinMode (rightMotoDirB, OUTPUT); pinMode (rightMotoSpeeB, OUTPUT); } void goForward() { digitalWrite(leftMotoDirA, HIGH); digitalWrite(rightMotoDirB, HIGH); analogWrite(leftMotoSpeeA, 128); analogWrite(rightMotoSpeeB, 128); delay(250); } void loop() { goForward(); delay(1000); }
1
Hozzászólások (1)
Beküldés
  • Jan Thanksfor this code. I shall try it out.

    Válasz 06/07/2019
Elégedettségi felmérés

Töltse le az APP alkalmazást, hogy exkluzív 10% kedvezményt kapjon a kuponról