I have got a school project, I am cabable in the electronics but lag in the department of programming.
I am using the motorshield from this site: http://www.ladyada.net/make/mshield/index.html
I have to set up two dc-motors runing at a speed not very hard have got it working with setting up the speed. next problem is that I need to reed the actually length it would go when set up with a geraing system, I am to use the optoisolator to do that. I am not sure as to how I would get the inputs in the arduino and how to make those readings tell me howlong I have gotten or how fast I am going.
I am using the libaries from the site to, cause I seem to bee a newbee too this when it comes to programming and have only manage to get the motor running by including the files it sugested, that would be motor.h. though I do not know what is happenin with half of the stuff written in it.
so I would like a little simpler solution on how to make the motor running and how to get the inputs from the optoisolator making me get som data on speed and length I would travel with a specific gearing.