Arduino Programmed Car

Hi. I am going to make a little project to help my build my arduino skills of a little car about 8 inches long. I will create a simple code controlling the motor/s, but I have a few questions prior to purchasing the parts I still need and writing the sketch. Thank you! My questions are below:

1.) What type of simple motor would work best for controlling a single pair or wheels attached to one side of the car base/structure.

2.) How does the sketch recognize the motor?

3.) Would I need to #include "Servo.h"

4.) Would my 9V battery be an input to the 5V pin, or what?

Also, would the motor would be an output from one of the regular pins?

I know I do have a good amount of questions but thx for your time!!!

Ethan

1.) What type of simple motor would work best for controlling a single pair or wheels attached to one side of the car base/structure.

An electric one.

2.) How does the sketch recognize the motor?

It doesn't. It only knows that there are pins that need to control direction and pins that need to control speed - assuming that you are smart enough to be using a motor shield.

3.) Would I need to #include "Servo.h"

Not unless you have servos.

4.) Would my 9V battery be an input to the 5V pin, or what?

Your 9V battery will be put back in the smoke detector you swiped it from. You will use a real battery.

I am not going to get around to the other things @PaulS but, honestly, what do you mean a "real" battery? Thx though.

@DeltaG Thanks. How do I set the voltage?

Thanks you for the advice. I agree. What are the best tutorials for this in your opinion @Delta_G ?