I am using new soft serial to program the Pololu low voltage dual serial motor controller, i will post te link to that motor controller below, my problem lies within the fact that I programmed everything using new soft serial, the code will be below, BUT the motor controller gives a solid green light for a moment, then procedes to blink green on the top LED on the bottom set closest to the PC serial interface, and despite the blinking that indicates foward motor, i get no movement on the motors, this is my second pololu low voltage dual serial motor controller, as i fired the first one by soldering 2 joints together by accident. here is the link- Pololu Low-Voltage Dual Serial Motor Controller
#include <NewSoftSerial.h> // includes the library for serial data transfers over other than stock serial enabled pins
#define txPin 5 // states what pin transmits the data to the pololu controller
#define rstPin 6 // states what pin is used a reset,which puts the controller to a defualt, all motors off state
#define rxPin 4 // this pin is used to recive data and is required, however it is unused in this sketch
NewSoftSerial motor(rxPin, txPin); // this shows what pins that are defined will be used with the New Soft Serial interface
void setup() {
delay(200);
pinMode(rstPin, OUTPUT); // this shows that the reset pin set to transfer, and not to recive electricity.
digitalWrite(rstPin, HIGH); // puts the current on the rstPin to max so the controller doesnt reset
motor.begin(9600); // this begins a NSS interface named "motor"
delay(200);
motor.print(0x80, BYTE); // this is the start byte that makes the controller listen to the below commands
motor.print(0x02, BYTE); // This tells the motor controller that its configuation will be changed
motor.print(0x01, BYTE); // new configuration byte, if fails revert to 0x7F
// Do note that motor number for motor 1 is 0, and motor 2, is number 1
delay(200);
motor.print(0x80, BYTE); // Start Byte
motor.print(0x00, BYTE); // Tells The motor it is going to send power to the motors
motor.print(0x1F, BYTE); // motor 1 foward
motor.print(0x7F, BYTE); // full speed
}
void loop() {
// The Void loop section of this sketch is not required because this stektch causes the robot to move foward indefinatly
}