Getting Synched
First time after a lot of tries. -Bill
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//motortest
|
||||
//.5 sec forward, .5 sec back
|
||||
|
||||
#include <Motor.h>
|
||||
|
||||
int led = 13;
|
||||
|
||||
void setup()
|
||||
{
|
||||
MotorA.torque(511); //what is max torque?
|
||||
pinMode(13, OUTPUT);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
MotorA.direction(FORWARD);
|
||||
delay(500);
|
||||
MotorA.direction(BACKWARD);
|
||||
delay(500);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
//position
|
||||
//sends A0 (MotorA), A3 (MotorB) to Serial Monitor
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
Serial.print(analogRead(A3));
|
||||
Serial.print(" ");
|
||||
Serial.println(analogRead(A0));
|
||||
}
|
||||
Reference in New Issue
Block a user