Raisio, Finnland
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« on: July 07, 2012, 12:31:41 am » |
I have been reading a lot of ee basics lately for my upcoming arduino project, and found a lot of exceptions to what a learner might think about how parts need to be connected to the arduino.
Here is some of the things i found out.
Led's (or any diode really) needs a resistor on the positive side. A power regulator needs capacitors on both power lines hooked up to ground. A relay needs a resistor and transistor before the relay switch with a diode over the 2 low power contacs of the relay.
I think this is the reason why you can buy these things preassembled on pcb's.
Does someone have a list of these kinds of exceptions which might not be obvious to someone starting out with electronics?
Or maybe we could start a list right here!
Thanks Michael
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #1 on: July 07, 2012, 12:35:54 am » |
Led's (or any diode really) needs a resistor on the positive side.
Oh? Where did you read that?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16451
Available for Design & Build services
|
 |
« Reply #2 on: July 07, 2012, 12:38:46 am » |
I think perhaps you mean "Rules of Thumb".
"A relay needs a resistor and transistor before the relay switch with a diode over the 2 low power contacs of the relay." Not always. Depends on how much current the coil needs. Diode, yes.
"I think this is the reason why you can buy these things preassembled on pcb's." Don't see what that has to do with anything. You can generally buy things preassembled on PCBs because one party thinks there is a demand, and another party has a percieved need for same.
|
|
|
|
« Last Edit: July 07, 2012, 12:42:23 am by CrossRoads »
|
Logged
|
|
|
|
|
Raisio, Finnland
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #3 on: July 07, 2012, 12:42:37 am » |
On every introduction to led's i have read that they need a resistor as they would otherwise pull too much current. Thinking about it i guess that it might not matter on which side the resistor is but i have always seen it placed on the positive side. So that is what i assumed. Or why do you ask this question?
I am simply trying to find out what is safe wiring for different components.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #4 on: July 07, 2012, 12:50:15 am » |
It's true that LEDs often have a resistor in series to limit current. It can be on either side as either way the current has to go through it. However "any diode" is going too far. Diodes used, for example, for reverse polarity protection don't also need a resistor.
Also it is possible to get constant current drivers (chips) that output a fixed current. In that case, the resistors are not necessary.
It's a good idea to come up with some general rules like that. Just trying to help make sure they are accurate.
|
|
|
|
|
Logged
|
|
|
|
|
Raisio, Finnland
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #5 on: July 07, 2012, 12:52:14 am » |
Thank you. That is helpful information. Please post any more you can think of.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16451
Available for Design & Build services
|
 |
« Reply #6 on: July 07, 2012, 12:56:38 am » |
I don't think it's possible, there are too many instances where something does not follow for one reason or another.
It's like spelling in English - too many oddities to make sense for two different people.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16451
Available for Design & Build services
|
 |
« Reply #7 on: July 07, 2012, 12:57:30 am » |
What it really comes down to is reading the data sheet to understand what any particular part can do.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #8 on: July 07, 2012, 01:01:46 am » |
Perhaps guidelines like: - With LEDs, check if current-limiting resistor required.
- With motors/relays, probably need flyback diode over the coil
- Check grounds are connected
- Check current requirements are not exceeded (eg. for motors, relays, LEDs)
- Check voltages in range
- Check for possible overheating
Really, there is quite a bit that can go wrong. But with experience it will tend to become second nature.
|
|
|
|
|
Logged
|
|
|
|
|
0
Online
Tesla Member
Karma: 71
Posts: 6596
Arduino rocks
|
 |
« Reply #9 on: July 07, 2012, 03:24:24 am » |
Check the power supply voltage is suitable for a device (including is it a 3.3V device?) Check power is connected the right way round(!) Check the power supply can supply enough current for all the devices it powers. Input switches/buttons are wired to pull-up or pull-down resistors or internal pull-ups are enabled.
|
|
|
|
|
Logged
|
|
|
|
|
Cumming, Ga
Offline
Edison Member
Karma: 12
Posts: 1388
Ultimate DIY: Arduino
|
 |
« Reply #10 on: July 07, 2012, 08:26:16 am » |
- Yes, you can power an Arduino from a 400 AMP 12 VDC car battery and nothing bad will happen (though a few parts might get warm)
- A voltage divider (potential divider) made with 2 resistors is not a power source it is a potential reference... like a stationary potentiometer wiper pin
- As a general rule, partially based on the fact that many devices are open collector or open drain it is usually better SINK than SOURCE a load. IE; feed the LED CATHODE from an arduino pin.
|
|
|
|
« Last Edit: July 07, 2012, 08:30:40 am by pwillard »
|
Logged
|
|
|
|
|
|