Need some help turning motors.
I have followed this tutorial successfully
… and have been able to control two DC motors with an IR remote / receiver via this Arduino Uno
and a H bridge motor controller
(Arduino Compatible Stepper Motor Controller Module | Jaycar Electronics).
I have attempted to modify the code so that I can program the arduino to move the motors in such a way as the car turns left, and right respectively when specific buttons are pressed.
In addition to creating new variables to determine motor output, I have changed up an if, else statement to a series of if statements so as to include these additional variables (in the attached, I have kept the previous, working code in the comments).
However, what I have done is not working. The code compiles successfully, but the motors do not run when the ir remote is pressed.
I have been reading posts about if statements, enums, and switch case statements, and I still am not sure what I am doing. If anyone could help / point me in the right direction, I would be very grateful.
Randosketch.ino (4.52 KB)