Time for a little thought ...
You seem to know how to make your motor go forwards and backwards.
Can you describe how your code will cause the h-bridge to make the motor move in reverse at different speeds?
If you can write that down clearly I'm sure you will also see how to make your brake "pedal" work.
ok i understand then i must take a brake for now untill the supplier, from where i buy my components, bring me the IC for reverse control
but i guess i understand your point, for the record the code i am using or the code i took a look at are those from Adafruit but for the reverse mission still did not try it because reverse ICs are missing for now. I will describe what i can understand from those code and please tell me if i am right : I can see here an analog read from a pot so what i have to do is make a map() and tell it to convert the value from 0 to whatever into for example 50 and so on untill 255 which will be the full braking when i hit the braking pedal which mean braking pin = HIGH (Am i right or not ?).
If you have a tutorial about the method your talking about for the analogue current it would be great because till now i couldn't find any and still looking and thanks for all your help and time
Adafruit Arduino - Lesson 15. Bi-directional Motor
int enablePin = 11;
int in1Pin = 10;
int in2Pin = 9;
int switchPin = 7;
int potPin = 0;
int speed = analogRead(potPin) / 4;
boolean reverse = digitalRead(switchPin);
void setMotor(int speed, boolean reverse)
digitalWrite(in1Pin, ! reverse);