I upgrade my daughters Backyard play house with a mechanical window , so it can open or close. The thing is I followed the schematics and the example program from this link .http://www.me.umn.edu/courses/me2011/arduino/technotes/dcmotors/bidirectional/bidirMotor.html and ran into a problem, I had to modify the example program code so the Up/Down timeing could reach what my little daughters hart Desired(that was a pain in the ***). I want to add a couple of things to the same Schematic on the provided link , a button so my daughter won't have to press the reset button on the arduino board all the time and two ir sensors(sharp gp2y0a21yk0f analog distance sensor) so the window can stop at the locations of the the sensors.
If anybody reading this knows how to do it,can you modify the program code and Schematic to do what I want? :'( Help will be very appreciated by her and myself.