Where do I start looking for the code to edit in order to make this able to run the DC motor in both forward and reverse given the variable, or is there something obvious I am missing?
- Which of the default sketch examples included with Arduino is most appropriate as a base to start editing given what I need to do and the fact I need to use FirmataVB (?)
- How do I edit the sketch to include a variable which lets me control the direction of each motor, rather than setting the OUTPUT to HIGH or LOW (one direction, or stop)
- Will I need to include other items to achieve this? I've read some stuff about needing to import AFMotor.h or can I just make a few changes to the firmata sketch and FirmataVB?
The potentiometers are from analog pins 0-3, they report to my VB.net application which uses FirmataVB to interface with the arduino, FirmataVB also includes access to the digital pins, although this currently only lets me move it in one direction when I set OUTPUT to HIGH.