Hello everyone.
I want to make a simple, little line following robot for my desk, so I can watch it move around a line. The thing is, I want to keep this as simple as possible, just for a fun little weekend project.
I am going to be using some very small, two DC motors (that I might get from a previous toy) and a microcontroller (16F628A or 16F684). As for the line detecting I have heard it can be done with a LED IR detector and emitter (both of which I currently have).
So much question to you is, how do I set up (and program) the line detecting part of the project, using the emitter and detector. Preferably, any information on how I can wire it too, will help. As for the DC motors, I think it'll be quite easy. If I just stick the positive to an output pin and set it to high (and connect other end to ground), that motor will start to spin-- correct?
Thanks a lot for your help,
Omar
I want to make a simple, little line following robot for my desk, so I can watch it move around a line. The thing is, I want to keep this as simple as possible, just for a fun little weekend project.
I am going to be using some very small, two DC motors (that I might get from a previous toy) and a microcontroller (16F628A or 16F684). As for the line detecting I have heard it can be done with a LED IR detector and emitter (both of which I currently have).
So much question to you is, how do I set up (and program) the line detecting part of the project, using the emitter and detector. Preferably, any information on how I can wire it too, will help. As for the DC motors, I think it'll be quite easy. If I just stick the positive to an output pin and set it to high (and connect other end to ground), that motor will start to spin-- correct?
Thanks a lot for your help,
Omar