Ok so I was wondering how I would program my arduino so that when I turn a 10k pot it increases the speed on an h bridge like a throtle.
Pins for h bridge are Digit pin 2 for In1 and gnd for In2
The normal way to control the speed of a motor connected to an H bridge is to put a PWM signal on one of the pins. Most H bridges used with the Arduino would have 3 inputs. IN1 and IN2 which control the motor direction and braking depending on what signals are applied and an enable input onto which a PWM signal, or just 5v or GND are applied to set the speed of the motor.
So, read the pot via an analogue pin on the Arduino, use the map() function change the 0 - 1023 input to 0 - 255 (or simply divide the input by 4) and use the value in an analogWrite() command to the H bridge on a PWM pin.
Can you please provide a link to the H bridge that you are using or its circuit diagram ?
like a throtle
FYI- it's called a speed control. (or motor speed control) At least half of all the ones sold on the web are pot controlled and do not provide uC interface pins because the target market for those is people with NO uController knowledge whatsoever, and just want
a knob they can turn to control the speed. This is even more true for speed controls above the power levels of the ones sold at Sparkfun and Adafruit. I have found higher wattage drivers with pwm interface connectors but the simple pot controlled ones are more prevalent. The Map function should work for you.