Should my power supply for the L293 be different then for the pic ?
It's usualy a good pratice to split your PSU lines. You could use one regulator/line.
Also, when dealing with POWER, you should split your GND lines (analog, Digital, PowerDevices) then tie them at them at a single point.
It's also good practice to isolate POWER from Logic. OPTO couplers come handy in those case.
Be sure ALL psu line are well filtered and noise free.
Another things... be sure you Motor don't need much current than regulator can give.
last code still not working
Again i hear a buzz, and sometime the motor turns a little.
Also on the oscilloscope, sometime he output is sitting at zero, or when its oscillating, it looks like its going from -4 to 1volt
O.K, could you provide more details, wich motor model you use and post your schematic here.
Personnally i hate guessing. I'm sure we could find the solution faster if you posted the whole thing on your first post.
Please for the next(s) time(s) give us all you have. A schematic is often a MUST. If you have a board layout too.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks