Motor Control in ARDUINO DUE.

Hi all, I am building a motor control robot car. I have to vary the speed as per an IR SENSOR output value. I am using Arduino Due. I have connected the IR Sensor Output to A0 and A1. of the Due. I am confused now if the Due pin PWM 1 and PWM 2 should be connected to Motir shield EN1 and EN2 or DAC0 and DAC1 should be connected to EN1 and EN2.

Hi all, I am building a motor control robot car. I have to vary the speed as per an IR SENSOR output value. I am using Arduino Due. I have connected the IR Sensor Output to A0 and A1. of the Due. I am confused now if the Due pin PWM 1 and PWM 2 should be connected to Motir shield EN1 and EN2 or DAC0 and DAC1 should be connected to EN1 and EN2.

Hi all, I am building a motor control robot car. I have to vary the speed as per an IR SENSOR output value. I am using Arduino Due. I have connected the IR Sensor Output to A0 and A1. of the Due. I am confused now if the Due pin PWM 1 and PWM 2 should be connected to Motir shield EN1 and EN2 or DAC0 and DAC1 should be connected to EN1 and EN2.

Please clarify this doubt soon as my project is held up.

Don't use DAC0 and DAC1. Any of the other Due pins can be used for PWM, with analogWrite(). PWM is absolutely what you need for motor control.

Thanks MorganS. One more thing you have mentioned any of the Pins of Arduino Due. Does it mean I can use other than 12 PWM Pins also, Like Digital I/O pins?