![]() ![]() Posting it inline as you have done makes it much harder to read or copy and paste for diagnosis. Ie Your code and any error messages should always be placed between code tags. 9V is fine, but a typical 9V battery like those used in a smoke detector have too low a capacity to be useful.Īnother point too, while I'm at it - You really should have read the How to use this forum - please read post at the top of the index page and How to use this forum before posting. It's not a matter of voltage, it's a matter of current capability. I wonder what is the difference between 2 sources ? ![]() There is a voltage drop across the regulator, about 1V to 1.2V depending on load, so your board will only 'see' about 4V.Īlso,I read some information about the L293D, they said that I should use the NiMH battery pack for the shield as the 9V battery won't do much thing. ![]() I use an a 5V dapter to get power from socket to my arduino, I plug it into arduino's DC power jack. (After all, this would explain why your project works when USB is connected, but doesn't work when it's not connected.) It will say whether or not it has an onboard 5V regulator to power the Arduino. Perhaps someone with the same shield could clear this up, or you could even read the shield's datasheet thoroughly. In general, it is not good practice to use the same supply for motors and for the Arduino, due to spikes from the motors, so there is a good chance that the shield does not power the Arduino. The Arduino might be getting 'phantom' power from the digital pin connections to the shield. The fact that the LED lights isn't an indication that all is well. I'm not familiar with the shield, I don't have one, but I would think that you do need to power the Arduino separately. Is it enough or I have to supply the arduino with another source separately ? I don't use any source to power the arduino, I just use 3 x 4,2 volt batteries to power the shield, but the led on arduino is turned on as the shield is connected to the arduino. However when I unplug the USB and use an external source ( 3 x 4,2 volt baterries), my robot will go nut or don't move.Below is the simple code that I used to run my robot, also, I've attach some of my robot's pictures link. My problem is tha, when I connect the arduino to my laptop through an USB cable, my robot's motors run perfectly as what I coded. I'm doing an arduino uno R3 robot using 4 motors with an L293D Motor Shield. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |