I'm continuing to work on my project and i face a kind of weird little issue.
I can't have my motors running backwards. I'm using the Dfrobot 1A shield and a 9v battery plug directly on the netduino.
I put a basic test :
//FWD PWM Motor1Speed = new PWM(Pins.GPIO_PIN_D5); PWM Motor2Speed = new PWM(Pins.GPIO_PIN_D6); OutputPort Motor1Direction = new OutputPort(Pins.GPIO_PIN_D9, false); OutputPort Motor2Direction = new OutputPort(Pins.GPIO_PIN_D10, false); Motor1Direction.Write(false); Motor1Speed.SetDutyCycle(100); Motor2Direction.Write(false); Motor2Speed.SetDutyCycle(100); //BWD PWM Motor1Speed = new PWM(Pins.GPIO_PIN_D5); PWM Motor2Speed = new PWM(Pins.GPIO_PIN_D6); OutputPort Motor1Direction = new OutputPort(Pins.GPIO_PIN_D9, false); OutputPort Motor2Direction = new OutputPort(Pins.GPIO_PIN_D10, false); Motor1Direction.Write(true); Motor1Speed.SetDutyCycle(100); Motor2Direction.Write(true); Motor2Speed.SetDutyCycle(100);
Both test go forward.
I wonder if it's an alimentation issue or a code issue.
Any ideas or similar experience ?
PXL