Hello guys, I was trying my first code for this motor shield on my Arduino Due and powered with 12v 1.5A power supply, around after 3 seconds i plugged it on the Arduino my condensator number 8 exploded and i don't know why, my 13v motor was connected in "M1"
the code is this
Well it is very unusual for an electrolytic capacitor to explode unless its connected backwards
to the power supply (or given too high a voltage). Therefore it is very probably one of these is
the case.
Emerald:
Could i just try to replace the C8 or i should buy another shield? if buying a new one, which one?
Replace c8 with the same value of capacitor as you had before. Ensure it is wired correctly.... with positive terminal connected to the side with higher voltage.
It is assumed that the c8 capacitor was installed by you. Also... ensure that the specified voltage rating of the capacitor is higher than the operating voltage.
Emerald:
Ok installed it and without program isn't exploding anymore.
Is there a fast sketch to see if Motor shield is working?
Just google 'L293d sketch' or something.
Also...... even though I'm not sure whether the word 'shield' is an arduino construct/fabrication.... but where ever this word came from.... the meaning is an interface board that docks with another circuit board .... double decker bed style. My guess is that 'shield' is a made-up defacto word that some genius came up with. It's really a piggy back plug-in interface board..... aka daughter board/peripheral board.
Well whatever damaged the capacitor won't have singled it out specially - reverse-
and over-voltage events normally damage all the chips too. Have you worked out
what actually happened? That's useful to know as you can then avoid a repeat of
the incident.
Emerald:
Capacitor isnt exploding anymore but my motor isnt working and i cant figure why
Do basic tests with the help of a multimeter ..... remove your motor. Write software code that allows you make your various outputs turn on or off. Then test to see if your arduino and your motor driver is producing the correct outputs.
Alternatively.... have a spare arduino.... and spare motor driver. And use them to see if things work. But even with new ones..... it always helps to do the testing.... to ensure that the system is at least behaving the way you want.
Emerald:
A friend said that it's probably fault of my Due, is it possible?
"Probably" and "possibly" are one thing. Won't know for sure unless something is done .... like use spares for testing etc. At the moment... it's hard to say if the original cap was reverse polarity.