How to use Adafruit Motor Shield V2 with Lego Servo Motor?
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
#include <AFMotor.h>
Lego motor (15,1);
void setup(){
Serial.begin(9600);
motor.setSpeed (10);
}
void loop(){
motor.step(1,FORWARD, single);
motor.step(1, BACKWARD, single);
}
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
#Assigning the GPIOs to the Lego's command wires
C1 = 21
C2 = 26
The shield uses the SDA and SCL i2c pins to control DC and stepper motors. On the Arduino UNO these are also known as A4 and A5. ... If you want to use the servo connections, they are on pins #9 and #10. ...
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
Re: How to use Adafruit Motor Shield V2 with Lego Servo Moto
The base frequency for pins 3, 9, 10, and 11 is 31250 Hz.
The base frequency for pins 5 and 6 is 62500 Hz.
Divisors:
The divisors available on pins 5, 6, 9 and 10 are: 1, 8, 64, 256, and 1024.
The divisors available on pins 3 and 11 are: 1, 8, 32, 64, 128, 256, and 1024.