I just started working with makebot. First program - buzzer - no issues.
Second program, motors, issue. The motors were not running when I used this program
#include <Makeblock.h>
#include <SoftwareSerial.h>
#include <Wire.h>
MeDCMotor motor1(M1); //130 DC Motor can connect to the motor interface(M1 or M2)
uint8_t motorSpeed = 100; // value: between -255 and 255.
void setup()
{
}
void loop()
{
motor1.run(motorSpeed);
delay(2000);
motor1.stop();
delay(100);
motor1.run(-motorSpeed);
delay(2000);
motor1.stop();
delay(100);
}
I checked the connection (it was plugged in correctly) and the motors work when a dc voltage is applied. I noticed on the ports that there is no voltage change at the ports.
What could be wrong?