Hey Guys!
Im trying to make a robot arm using the OWI are and Blynk. I'm using the original Adafruit motor shield to accomplish this. I have everthing hooked up as it should be, but im having trouble writing the code. Can anyone please help.
Thanks
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <AFMotor.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "bbee74d16c0b40c880e2b6e412cd8549";
BLYNK_WRITE(V1)
{
AF_DCMotor motor(1);
}
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth);
}
void loop()
{
if BLYNK_WRITE(V1) = 1;
motor.run(FORWARD);
else motor.run(RELEASE);
Blynk.run();
}