atmega328p standalone after arduino

i'm doing a car , and i wanted to make it without gave up my arduino, so i got the an extra atmega328p so i could just replace it after finishing programming.
i was wondering if all i have to do is connect the same connections with the atmega chip or there is something more to use the PWM , Tx and RX and those stuff like different programming language or the usage of the timers which i don't really get.?
also im using a 5v regulator , and i was wondering where to connect the -ve of the battery? to the ground of the regulator or the ground of the atmega328 then take from there to the regulator?

Negative of the battery connects to Ground of Regulator and Ground of the '328P and anything else that needs a Ground.

If you bootloaded and programmed the '328P in your Uno, then the standalone chip needs a few supporting bits:
16 MHz Crystal and two 22pF caps, or a 16 MHz resonator.
0.1uF (100nF) caps from VCC, AVCC to Gnd, and Aref to Gnd if you are using analogRead.
10K resistor from Reset to Vcc.
Regulators usually need something like 10uF cap on their input and 1uF cap on their output.

What kind of 'car'?

Other connections are the same as what you made to your Arduino.

If you add a header to plug an FTDI Basic onto, then you can also program the chip the car and not have to remove it to make sketch updates. Just need another cap, and maybe a diode from Reset to Vcc if you find the chip acting like it's hung during a reset. I use FTDI Basic modules from www.tinyosshop.com, $6.90 plus delivery.

thanks , i got some questions , what is DTR?i dont get that part
just checking , i need to make a pull up 0.1uF at vcc and do the same with pin 21 and 20,
connect pin 9 and 10 with a 22pF then ground and have 16MHz in parallel as shown,
and also put a 0.1 uf for the regulator .
is that right ?
also its a Bluetooth controlled car that has ultrasonic sensor attached to a servo .

CrossRoads:
Other connections are the same as what you made to your Arduino.

If you add a header to plug an FTDI Basic onto, then you can also program the chip the car and not have to remove it to make sketch updates. Just need another cap, and maybe a diode from Reset to Vcc if you find the chip acting like it's hung during a reset. I use FTDI Basic modules from www.tinyosshop.com, $6.90 plus delivery.

well thanks , i searched the stuff you told me , got some wiring tips and understood the things i need to do

Ok. DTR lets the PC create a reset signal to start the bootloader for a code download.