How to code Arduino to send electrical impulses of a specific magnitude?

Hello! I am currently working on a miniature electric vehicle (which will be controlled via an accelerator pedal connected to an Arduino connected to the vehicle).

I have a couple of questions:

  1. How do I code for the Arduino to send electrical impulses of a specified voltage/amperage/frequency to the car? The magnitude requirements are very low (6-24mA, 5V, 60Hz). I just want to know how to code how to send impulses of that strength.

  2. For the accelerator pedal, I would like to have it programmed so that pressing it down a certain amount sends an impulse of a certain strength to the vehicle. How would I do this? What specific pedal would I have to use, and how would I code for it to work that way?

  3. I want to have the battery for the motor hooked in a parallel circuit to the main battery for the car (which controls the other functions of the vehicle). So when the key is turned to the crank position, it sends impulses to the engine so the car is "idling" at a set low rpm. How would this be connected on the breadboard?

Thank you in advance. Any help is greatly appreciated :slight_smile:

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.

I think you are asking for a way to control the speed of an electric motor with a potentiometer.

If you goggle

arduino dc motor control potentiometer

You will find many many examples.
How big is your project, motor specs, power supply?
Do you need to reverse the motor direction?

Thanks.. Tom... :slight_smile: