Making a car turn around while going forward

Hello guys...

I've just started using arduino and my current project is setting up a car controlled via bluetooth.

I have been able to implement the 4 basic commands, forward, backward, left and right.

What I have not been able to do is make it turn while the forward command is active, and to make the commands active only while I keep the button pressed.

Could anybody help me?

Thanks in advance.

I'm sure someone could help you if you provided more information.

When you say car, I assume a vehicle or robot with 4 wheels as opposed to tank treads or something else.

How about describing the car more and showing us your code?

Also are you controlling the car from a cell phone or something else?

and to make the commands active only while I keep the button pressed.

What button? Whatever the switch is on should send one value when the switch BECOMES pressed, and another when the switch BECOMES released.

Zeroneto:
Could anybody help me?

Not until you post your code. And please use the code button "</>"

...R

Hi;
Can you post a picture of your car and remote control unit, so we know what you have and can give you accurate and relevant answers to your inquiries.

Thanks Tom..... :slight_smile:

Have a look at the "blink without delay" example. The trick is to keep track of your current state in variables, and in the loop to check for changes of state and to respond to them.