We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
sir, i want a help on program i w2ant to run cctv motor in 120 degree actually camera is affix on motor an there are three camera as u select the camera bye a selector you could get video of that lab and camerra will rotate as soon as motor will rotate by us of selector. i am using 89c51
Except that it should stop the motor if the user is stupid enough to keep the button pushed, and the camera isn't mounted to allow any number of turns in the same direction.
It would be bad to burn the motor or rip the video cable because of bad programming and possibly missing sensors.
Surely, it can all be done just with switches?!
In fact, it looks like you probably should do it just with switches first so that you actually understand what's going on...
Once you've got it working and understood it with just the switches, then you could think about what improvements and advantages a microcontroller might bring...