Hello,
I'm finding trouble in this college project of mine. I'm trying to build a "light following robot" using the PIC16F877. I have two motors to move the robot and they're both piloted by the L293D IC.
I have a simulation running like it should be on PROTEUS ISIS, my system is identical to the simulated one, yet the robot is not functioning.
So here's the basic problem: when I provide power to the input IN1 of the L293D (provided some other conditions are met), the motor correspondent to that input pin should start spinning. It does when I plug in a raw 5V, but not when I connect it with the pin of my PIC that should release power when certain software conditions are met. In the other hand, when I connect that PIC pin with a LED, the LED lights up under those software conditions. So power does get out of that pin. It's just not enough for the L293D to consider it as a logical 1.
I measured the voltage around the LED, and it said 2.2V. In my knowledge, the PIC should provide 5V. I tested other pins of the same PIC, and also an other PIC as well, but got the same result. I tried eliminating other components that could be getting power out of the PIC but same thing as well.
At this point, I said why not add more power to the one generated by the PIC, by putting 2 small batteries (1.5V each) in series with the pin in question. That didn't work. I tried a parallel formation, that didn't work as well.
Now, I've consumed my base of knowledge around this subject, and I can't think of anything else to solve the problem.
You'll find the schematics and code attached, for those who want to take a look.
Note: I don't know many of the technical jargon used in English, because I've in taught in French, so please bare with me.
Thanks.
I'm finding trouble in this college project of mine. I'm trying to build a "light following robot" using the PIC16F877. I have two motors to move the robot and they're both piloted by the L293D IC.
I have a simulation running like it should be on PROTEUS ISIS, my system is identical to the simulated one, yet the robot is not functioning.
So here's the basic problem: when I provide power to the input IN1 of the L293D (provided some other conditions are met), the motor correspondent to that input pin should start spinning. It does when I plug in a raw 5V, but not when I connect it with the pin of my PIC that should release power when certain software conditions are met. In the other hand, when I connect that PIC pin with a LED, the LED lights up under those software conditions. So power does get out of that pin. It's just not enough for the L293D to consider it as a logical 1.
I measured the voltage around the LED, and it said 2.2V. In my knowledge, the PIC should provide 5V. I tested other pins of the same PIC, and also an other PIC as well, but got the same result. I tried eliminating other components that could be getting power out of the PIC but same thing as well.
At this point, I said why not add more power to the one generated by the PIC, by putting 2 small batteries (1.5V each) in series with the pin in question. That didn't work. I tried a parallel formation, that didn't work as well.
Now, I've consumed my base of knowledge around this subject, and I can't think of anything else to solve the problem.
You'll find the schematics and code attached, for those who want to take a look.
Note: I don't know many of the technical jargon used in English, because I've in taught in French, so please bare with me.
Thanks.
Attachments
-
27.5 KB Views: 1