For DonkeyCar: follow the guide, join the slack group, ask questions!
You'll need to purchase a number of things more than the raspberry pi itself (camera, battery, car, servo controller board, wires, 3D print or purchase or build a mount for it all).