Arduino bugging out

holmes4:
Post both lots of code the c# and the c/c++.

Mark

i have attached my arduino code (robot.ino) and the c# application(app folder) and then just the c# file (Form1.cs) in the error.zip below

Please excuse the code as i have been messing around trying to get this to work. The app just takes wasd keys and then controls the bot forward back etc.

{edit}
I was playing around some more this morning... And it is weird, it doesn't bugg out when i use it to control leds on and off. Only when i put the load of the motor on.
The motor circuit is simple though, {ardruino - 1.5k resister - npn transistor - motor} and then the direction pin { arduino - 1.5k resister - npn transistor - dptp relay - motor}
{/edit}

Thanks

error.zip (78.9 KB)