I currently have this strange problem when I try to use the DFRobot MotorShield 1A (http://www.dfrobot.c...or_Shield_(L293)_(SKU:_DRI0001)) with my Netduino, still using the 4.1 firmware and framework :
When I use a dummy code like this :
while (true) { }
Both motors run (and if i don't plug any motor, the motor LEDs indicating motor activity are lit)
Nevertheless when i set the different PINs for more control, like this :
PWM E1 = new PWM(Pins.GPIO_PIN_D5); OutputPort M1 = new OutputPort(Pins.GPIO_PIN_D4, true); PWM E2 = new PWM(Pins.GPIO_PIN_D6); OutputPort M2 = new OutputPort(Pins.GPIO_PIN_D7, true); E1.SetDutyCycle(50); E1.SetDutyCycle(50);
Then, both motors run during the boot/loading phase, and then stop.
It seems to me that for some reason, bothmotors run by default, and trying to set PWM on them turn them off...
I have no idea why this is happenning.
Does anyone has an idea of why this is happenning?