Ok, first of all, i must tell that im total noob when it comes to programming, this is my first attempt to do anything. I modified bluetooth led on-off code to run 2 motors trough h-bridge. I want that because i want to remote controll tank trough bluetooth module. I know its not big problem, its just some command witch i dont know, but i would like if someone of more expirienced programmers would like to help me with this. Whole code is supposed to work like “i pressed button on mobile phone-arduino do theese commands, i let button, arduino stops”. Its really simple, but for me, as a noob, its not. Problem is that motors are running only when i send command “a” and “c”, and all other commands are not working. Also, problem is that all thoose commands are working constantly, they are not stopping when i let button. If its possible, i would also like help with that.
Bluetooth_tank.ino (1.57 KB)