Building a Project HELP!!!!

Hi
I am building a project. It is like this i have a motor attached to a dive belt that moves a piece of wood up and down 5-10in. there are some kind of sensors that you interact with that you make the motor moves with makes the piece of wood move. Please help me do this thanks. I have a arduino atemaga 328

Photo-interrupters?

i need help with making the code

Show us what You got, and er also news more info about tyr hardware handeling tue motor and sensors

got non yet. i am just starting out. What is the basics of what i would? What sensors to control the motors should i use they are just regular motors. To control them i was just thinking of reversing the polarity and voltage to control direction and speed.

i need help with making the code

You asked about sensors, with the word "building" in the title, in the hardware section of the form.
I assumed you wanted some pointers to the sort of sensors you might want.
Sensors don't control the motors, they provide the controller with information.

You haven't told use whether these are small DC motors, steppers, or locomotive traction motors (Oh!, I hope not).

So what do i do. Go post in the other forum's

got non yet. i am just starting out.

Start making it, and then ask when you run into problems. The best way to do it, is to start making something yourself, takes longer time, and is more difficult than just doing a copy-paste, but instead you will know what is going on, and be able to debug and make changes to it later.

What is the basics of what i would?

No idea, try looking at the examples and look through some tutorials, and see if you can combine them to make something you want.

What sensors to control the motors should i use they are just regular motors.

Some sensors the arduino can use.

To control them i was just thinking of reversing the polarity and voltage to control direction and speed.

How? The arduino can't handle that much itself. You need something between the motor and power supply, and then the arduino to control that.