Hi reader.
So I was doing my project with DC motor(2.4V-6V, 340mA) and did it successfully (Image of circuit is below, without tilt sensor). After that, I decided to add tilt switch to project (same picture). While I was adding switch to circuit, I didn't turned off power supply module, so current was still flowing through circuit. After like 30-40 seconds tilt switch burned out. Quickly turned power off, removed broken switch, decided to change wires for DC motor and tested it just in case. And now it was moving slower + needs little "push" to start rotate. Checked resistance of motors terminals, that was fine. But when tried to connect L293D driver from different side, motor wasn't working at all (Pins 1-8: works slowly; Pins 9-16: don't work at all).
So I would like to ask, could this mistake, could have damaged other parts as well? And can I maybe fix it somehow or need to buy new ones?
Yep you could have damaged everything, no way of knowing until each component is tested and validated. Your wiring picture although it looks cute is not much help, a schematic would be much better. Here are some simple rules that will probably save you several modules in the future. They have been posted on this forum many times.
Gil's Crispy Critter Rules, they apply to processor hardware:
Rule #1. A Power Supply the Arduino is NOT!
Rule #2. Never Connect Anything Inductive to an Arduino!
Rule #3 Don't connecting or disconnecting wires with power on.
Rule #4 Do not apply power to any pin unless you know what you are doing.
LaryD's Corollarys
Coro #1 when first starting out, add a 220R resistor in series with both Input and Output pins.
Coro #2 buy a DMM (Digital Multi-meter) to measure voltages, currents and resistance.
Violating these rules tends to make crispy critters out of Arduinos.
Alright, thank you for suggestions.
Tested the arduino, at least everything is fine with that one.
These rules are quiet helpful for a newbie like me. Will print it and nail it to wall.
What is with schematics tho? I thought that picture is way easier to understand, because it is more "realistic" and you see exactly this when making stuff. I suppose, I will understand it when will be smart enough.
P.S. I haven't made any schematics ever, maybe that's why I say that
Thanks again!
That is partially correct, if the reader has the exact same parts. It is a wiring diagram showing how to connect certain things. A schematic gives a complete picture of what the circuit is and what it does regardless if the reader if familiar with the frizzy pictures or not. Power supplies converters etc are not part of the frizzes.
Many times we see same as but, similar to but, etc. Also most of the time the lines and pins do not align properly. When going to a different processor it gets very difficult with the frizzing stuff. A common problem is buttons rotated wrong, missing pull up resistors, etc none if this shows on a frizzy.
A schematic, or schematic diagram, is a designed representation of the elements of a system using abstract, graphic symbols rather than realistic pictures. Once these symbols are know they are consistent from design to design user to user. Once you understand schematics it is many times faster to understand a design in schematic form rather then frizzy form.
For fun draw a 10 IC circuit with about two dozen resistors, best to try in the analog domain. When you are through with that you will definitely appreciate schematics, the language of electronics.
For me and many others I have to look up each frizzy part as I do not have identical looking parts. This takes a lot of time. Looking at a schematic I get that information and a lot more in a very short time without looking up every picture. This allows me to help more people.
It is and I have no problem understand your diagram.
The only thing I can see that could have been damaged is the Arduino.
Maybe your 9V battery has also gone dead or wiring on you breadboard is loose.
Can you still download the simple blink example to the UNO?
Arduino and battery I think are fine. I downloaded project with servo I did in past and it worked as it should.
My biggest worries was about L293D driver and DC motor, because I just got them and, potentially, already broke them :D. At least next time gonna be more thoughtful.
I can't see how they could have been damaged by shorting the arduino 5V to GND through the switch.
However I notice that you do not have the L293 pin 4 connected to GND.
You could have burned out the rows on the breadboard where the switch was connected so you should mark them with a red marker.
If you want to use the drivers on boh sides of the IC then you need to have all the grounds connected (pins 4,5,12,13) and you need 5V to pin 16
Now I see the problem!
Pin 16 need to be connected to 5V
and pins 4,5,12,13 to GND
It won't work without 5V on pin 16
Oh, I saw some tutorial and there they connected only 1 of pins to ground. (I just now, tried to connect both pins(4,5) to grounds and it helped a little bit. It seems it is rotating a little faster, but still not as fast as in beginning + to start spinning need to push it) When I first time tried using DC motor, it was running great only with one pin connected to ground. But, I guess, that explains why there is 2 of them in each side. Both has to be connected.
And about other side of driver. I thought each side is independent to each other(can use only 1-8 or only 9-16 if you want to), but I guess to use Pins(9-16), Pin(1-8) needs to be used.
And thanks for helping!
@boratishere
See post #8
Pin 16 need 5V
I tried to, but doesn't work. I checked with multimeter and for some reason when Pin 16 is powered, motor receives roughly 1V, as opposed when Pin8 is connected, motor receives all 5V. Maybe Pin16 itself is damaged. When I was taking driver out of breadboard one of outside pins bended significantly.
Pin 16 need 5V and pin 8 is the voltage for the motor (9V) and pins 4,5,12,13 to GND
Try removing it again and the put it back, just be careful.
If it still does not work, then maybe it is indeed damaged.
Alright, will try.
Thanks for helping
Yeah, tried to remove and wire it back and still didn't worked. Gonna go buy new one then.
Thanks both of you for sharing your time and teaching me something new. Appreciate that. Gonna try not to make same mistake again.
Have a great day!
You also have a nice day
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.