Sorry for the newbish post...
I'm at work right now, and I can't test this code on my board.
Could you tell me if this code will be enough just to get my engines to run forward?
Thank you for your time,
int M1PWM = 9;
int M1DIR = 2;
int M2PWM = 11;
int M2DIR = 3;
int speed = 127; // 1..255
The code was good, the engines started, and everything was in order.
Im trying to build a maze solving line follower. Im using the Arduino Uno just to test the code because I couldn't figure out why the programming pins from my board to Arduino aren't working.
As a driver, I'm using a DRV8835.
Last night I was also able to power up the sensors (https://www.pololu.com/product/1419).
Do you have any idea why the sensors power up on my board but when i connect them to the Arduino board they do not start...?
I've attached the schematis.
Please reply if you have any ideas
I've managed to get the robot to go forward by reading from the IR sensors.
Now I'm working on the maze solving code which is a bit tricky...
Yes, I'm using a GSM shield to send an SMS when the maze is finished, but I did not attach it yes, because the maze isn't solved yet.