Author Topic: How to wire this setup?  (Read 6687 times)

0 Members and 1 Guest are viewing this topic.

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4103
  • Country: us
Re: How to wire this setup?
« Reply #25 on: May 11, 2018, 07:51:19 pm »
Quote
But for the Arduino and the Servo it seems that Vdd/Power and Vss/Ground are the same thing. Any reason not to label them similarly?
I'm not even sure what the second D in Vdd means. I use it because that's what it says on the datasheet, lol. But I understand at least one of the D's is for "drain," and that Vdd is used to denote the supply pin of device that is composed of mostly CMOS/FETs or to denote the logic bus/rail. In my domain this is usually a microcontroller or logic chip. When BJT logic chips were the thing, it was Vcc, not Vdd - presumably one of those C's was for "collector." Perhaps it stands for Voltage Drain-to-Drain, for CMOS logic push and pull output transistors.

So as far as I know, Vdd is the same thing as power/supply, just a little more specific. The only reason I can come up with for not using Vdd/Vss for anything is that someone may come along and correct you, lol. Is there any reason to use Vdd/Vss, at all? Personally, I find it useful because it is very short and unambiguous to write and read, and it sorta designates what voltage is your logic rail. CMOS stuff typically operates at 1.8 to 5V, but depending on your circuit, it could be anything between.

Quote
Also is the labels from the power rails and to the ground even necessary; or are they just on there for clarity?
I dunno why I put those on there. Certainly not necessary until it is necessary. And here, it is not necessary. :)

Yeah, your calculation of base resistor is fine. It's more of a stupidity check. It's not that critical. In this case, I'd use whatever resistor I had between 1K to 2k. Anything from 300R to 4K would probably be fine, depending on your duty cycle, perhaps. The higher you go, you might get less draw through your LEDs. I think maybe the Hfe will show how much the transistor would draw from an ideal power source, e.g., voltage source with zero impedance.* So you would add the impedance of the transistor to that of the LED strip, and you might not get "full power" when you go much higher than 1.1K, and it will dissipate some extra heat in the transistor, which is probably the main failure concern when you use too little base current. But as long as the transistor doesn't get hot at 99% duty cycle and the LED does what you want it to, then you have enough base current.

*But this would depend on the absolute voltage, so I'm missing at least one piece of the jigsaw puzzle as to what Hfe is exactly a measure of. For most of the reasons one would have to know this stuff, the work is already done for us. We have opamps, voltage regulators, and buffer IC's to choose from, galore.

The new schematic looks fine, to me.  :-+

« Last Edit: May 11, 2018, 09:35:23 pm by KL27x »
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
What is going on here?
« Reply #26 on: May 15, 2018, 06:12:02 am »
I started doing a test wire up to see if it would work and I ran into a weird issue. I set my 3 PWM pins in arduino to have a 100% duty cycle so the LED would just be on and I could test the circuit. Then I started wiring it up. My green LED activated before the circuit was complete.

If you look at the wiring diagram (left side of the graph paper) you can see how it was wired. When I attached the green wire to the collector (I think) of the transistor; the LED lit up even though the emitter was not connected to ground.

On the right side of the graph paper I tried (and probably failed) to show you how the breadboard was wired; in case I have some very fundamental misunderstanding of how this should be hooked up. In that drawing the + is the 12V from the wall outlet. The arduino is being powered by USB from the computer.

Additionally attached is a picture of the breadboard though I doubt that will be terribly helpful.

Finally when I was doing some testing I plugged in the wall outlet and tested it with a volt meter. It read 17V even though the thing says it's 12VDC. Is that normal?
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4103
  • Country: us
Re: How to wire this setup?
« Reply #27 on: May 15, 2018, 10:09:59 am »
It's been a lot of years since I used a TO 92 transistor.

The first datasheet I pulled up for a 3904 NPN transistor shows C and E being reversed from what you have, there. That said, I tend to get it backwards on his particular package despite having the thing in front of me.

If you have Arduino connected to base and the green LED strop cathode to the emitter, it's possible you have put enough reverse voltage on there to kill your transistor. There's a maximum Veb on a transistor. 3904, for example, is guaranteed for 6V minimum. You might also damage the Arduino.

You also have no current limiting resistor on either of those transistors. This could damage the transistor, too. And it's not very nice to the Arduino, but probably not a killer by itself (if you had it wired the right way, at least).


You also don't have a ground connection between the arduino and the breadboard/PSU. Even if they are both earth referenced, it's probably a good idea to add a direct connection so's your voltages are more stable.







 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #28 on: May 15, 2018, 05:31:29 pm »
Yeah I didn't put the resistor from my wiring diagram in because I was just doing a quick and dirty test to see if I could get it to work and if my soldering as good. I only planned on running it for a minute so I figured if a little more current went through than was idea I would probably be ok.

This post from earlier has the back of the package for the transistors: https://www.eevblog.com/forum/beginners/how-to-wire-this-setup/msg1531484/#msg1531484 If I'm looking at the diagram correctly then; if you are facing the flat side the collector is the left-most pin. I believe I used the BC557B transistor.
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #29 on: May 15, 2018, 05:46:21 pm »
Oh! Hmm. I looked at the data sheet/that picure again. I guess the 557b is a PNP. I should use the 547b (an NPN) I guess. Does that provide a reason for this activity?

EDIT: after a quick google of PNP transistors it seems that this is likely the cause. My arduino pin was acting as ground and current was flowing through without the need of the third terminal. If someone could confirm that would be appreciated.
« Last Edit: May 15, 2018, 10:37:00 pm by Youkai »
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #30 on: May 16, 2018, 07:50:18 pm »
OK so I switched to NPN transistors and the circuit works now; at least the Red, Green, and Blue light up correctly when the Arduino tells them to.

New problem though. The LED are SUPER dim. Also they are the same brightness whether the 12v supply is plugged in or not. The Arduino is using USB from the computer for power right now. So I guess that for whatever reason only the Arduino voltage is getting through.

After a short web search I found this but I don't really understand it. https://electronics.stackexchange.com/questions/152960/bc547-bc548-with-5v-at-base-cant-control-12v-at-collector-emitter

Can someone explain what is going on? Will a transistor not work? Is it just wired wrong? I'm using the wiring schematic from my earlier image: https://www.eevblog.com/forum/beginners/how-to-wire-this-setup/msg1531745/#msg1531745
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: How to wire this setup?
« Reply #31 on: May 16, 2018, 08:48:57 pm »
If you're using an NPN transistor, you need to set it up as a low side switch with the emitter grounded and the load between +12V and the collector. If you try to switch the high side with the collector connected to +12V what you will get is an emitter follower, the voltage on the emitter can never be higher than the voltage on the base. The circuit drawing you have looks correct for an NPN transistor.
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #32 on: May 16, 2018, 09:08:47 pm »
Ok thanks for that james_s. Still having weird issues though. Specifically the LED is super dim.

It's wired like my diagram but for the sake of re-iteration it is working like this:
  • +12V > LED common Annode > LED Red pin > Transistor Collector
  • Arduino pin > 1k resistor > Transistor Base
  • Transistor Emitter > Ground (the ground of the 12V power supply)

Using this setup the switching works correctly but the LED are VERY dim. What is wrong? Is it possible the arduino just isn't supplying enough current to fully turn on the transistor?
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: How to wire this setup?
« Reply #33 on: May 16, 2018, 09:12:55 pm »
Possible, how much current does the LED string draw? What's the gain of your transistor? A 1k base resistor is going to result in around 4mA base current, which with a typical small transistor should give you up to around 400mA.
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #34 on: May 16, 2018, 09:36:44 pm »
According to the specifications section of my LED strip (https://www.superbrightleds.com/moreinfo/flexible-led-strip-lights-color-changing/rgb-led-strip-light-flexible-custom-length-led-tape-light-with-9-smds-per-ft-3-chip-smd-led-5050/3502/) it draws 113mA per foot and I'm using only one section (3 led) which is well under a foot.

What is the "symbol" for gain? This post farther up has the specs from the back of the package. I'm using the one on the far left. https://www.eevblog.com/forum/beginners/how-to-wire-this-setup/msg1531484/#msg1531484 If gain is "hFE" then it's 200.

 

Online MarkF

  • Super Contributor
  • ***
  • Posts: 2549
  • Country: us
Re: How to wire this setup?
« Reply #35 on: May 16, 2018, 09:58:55 pm »
OK so I switched to NPN transistors and the circuit works now; at least the Red, Green, and Blue light up correctly when the Arduino tells them to.

New problem though. The LED are SUPER dim. Also they are the same brightness whether the 12v supply is plugged in or not. The Arduino is using USB from the computer for power right now. So I guess that for whatever reason only the Arduino voltage is getting through.
From your last drawing, the 2N3904 transistor are wired backwards (emitter and collector swapped) and you are missing a bunch of grounds.  See attachment #1.

Quote
After a short web search I found this but I don't really understand it. https://electronics.stackexchange.com/questions/152960/bc547-bc548-with-5v-at-base-cant-control-12v-at-collector-emitter
The circuit referenced to is to turn on and off a 7805 regulator.  Not really what you are trying to do. But, Q1 is acting like a high side switch and R2 pulls the base high to keep the transistor turned OFF (its normal state).  Q2 is used to pull the base of Q1 low and turning it ON when a high signal is provided to the base of Q2.  However, R1 should not be there and there should be a current limiting resistor is series with base of Q1.  See attachment #2.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: How to wire this setup?
« Reply #36 on: May 16, 2018, 10:59:24 pm »
I couldn't tell how the transistors are wired based on that schematic since the arrows are not shown, but for NPN you do want the emitter tied to ground and the collector to the load.
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #37 on: May 17, 2018, 01:47:13 am »
Attached is the most accurate diagram I can draw of my current test circuit. The LED is on the collector side of the transistors; ground on the emitter. The 3 grounds joining is all three going to the same rail in my breadboard.

The Arduino is powered by USB so both the +V and GND are coming from the USB cable. The LED is powered by my wall outlet which is going to the +V and GND rails on the right hand side of the breadboard.

In the picture of the breadboard the jumper wires are the color of the LED they are powering. From the left is the arduino pins. The short loops are the Emitter-to-ground.  From the right is the cathodes of the LED strip.The Yellow/Black next to each other are +/- from the wall respectively. The black wire slightly lower in the positive rail goes to the LED common annode.

Hopefully these two pictures will help you determine what my issue is. Thank you.
 

Online MarkF

  • Super Contributor
  • ***
  • Posts: 2549
  • Country: us
Re: How to wire this setup?
« Reply #38 on: May 17, 2018, 04:09:09 am »
Your circuit should look like attached.
  • Looking at your breadboard picture, the emitters and collectors are swapped.

  • The Arduino GND and the 12V GND should be connected together.  Your 12V supply IS isolated?  Correct?

  • How many LEDs of each color are you trying to drive?  Each LED will drop somewhere in the 1V to 2V range depending on the color.  Driving them with 12V, you will only be able to drive about 6 LEDs of each color.  I'm assuming the LEDs in the strip for each color are connected in series.  I can't tell from the spec sheet.

  • You will need a resistor in series with the collectors to limit the current for each LED color.  To obtain the same brightness for each color, they will be different values because the volt drop across each LED will depend on its color.

  • If you want to drive more LEDs, you will need a higher voltage with appropriate current limit resistors.
 

Online MarkF

  • Super Contributor
  • ***
  • Posts: 2549
  • Country: us
Re: How to wire this setup?
« Reply #39 on: May 17, 2018, 04:30:11 am »
Guessing from the picture of the strip, the current limit resistors (R4, R5, R6) are part of the strip for each group of 3 and you don't need them in your circuit.

Each group of 3 would be in parallel and multiply the amount of current required to drive them.
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12298
  • Country: au
Re: How to wire this setup?
« Reply #40 on: May 17, 2018, 04:48:21 am »
  • The Arduino GND and the 12V GND should be connected together.  Your 12V supply IS isolated?  Correct?

This would be the FIRST thing I would attend to.
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #41 on: May 17, 2018, 05:42:49 am »
Looking at your breadboard picture, the emitters and collectors are swapped.
If you look at the circuit picture I posted in the top right is the transistor image. I'm pretty sure on my transistor the C/E are swapped from the picture you posted. Am I really just completely brain farting on how I'm interpreting the image? I swear I tried this before and it caused some sort of weird crossover. I turned the transistors around and it's working now at a much more reasonable brightness. So one problem solved. Yay!

The Arduino GND and the 12V GND should be connected together.
Also looking at your diagram how do I connect the arduino and grounds from the LED together? Do I just run a wire from the ground rail on my breadboard to the ground pin on the arduino? Won't that cause all of the current to run through the arduino? I would think that might be bad for it. In the final product everything will be powered by the 12V supply so if I use that ground for everything then it is effectively tied together correct?

Your 12V supply IS isolated?  Correct?
What does this mean? I don't know how to answer.

How many LEDs of each color are you trying to drive?  Each LED will drop somewhere in the 1V to 2V range depending on the color.  Driving them with 12V, you will only be able to drive about 6 LEDs of each color.  I'm assuming the LEDs in the strip for each color are connected in series.  I can't tell from the spec sheet.
One segment of the strip currently so 3 LED. Eventually I will be using 2 segments so 6 LED total. I'll also be running the arduino and 3 servo's off of the power supply. The arduino and servo's after it goes through a buck converter. So I need to make sure the power supply has enough amps/voltage to run all of that?

Guessing from the picture of the strip, the current limit resistors (R4, R5, R6) are part of the strip for each group of 3 and you don't need them in your circuit.
Someone said in an earlier post that those were current limiting resistors. My current power supply only produces 500mA. Do I need to find a supply that produces more amps? Does the voltage of it matter; or will the current limiting resistors keep that to a value that will work for the strip? Where would I go to look for a wall outlet power supply? I tried the thrift shop to get this one but I'm guessing I should just find a site online that can sell me exactly what I need.

MarkF, what tool did you use to draw your diagram?
 

Online MarkF

  • Super Contributor
  • ***
  • Posts: 2549
  • Country: us
Re: How to wire this setup?
« Reply #42 on: May 17, 2018, 01:49:09 pm »
Looking at your breadboard picture, the emitters and collectors are swapped.
If you look at the circuit picture I posted in the top right is the transistor image. I'm pretty sure on my transistor the C/E are swapped from the picture you posted. Am I really just completely brain farting on how I'm interpreting the image? I swear I tried this before and it caused some sort of weird crossover. I turned the transistors around and it's working now at a much more reasonable brightness. So one problem solved. Yay!
I downloaded the spec sheet for a 2N3904 transistor:   http://www.onsemi.com/pub/Collateral/2N3903-D.PDF

Quote
The Arduino GND and the 12V GND should be connected together.
Also looking at your diagram how do I connect the arduino and grounds from the LED together? Do I just run a wire from the ground rail on my breadboard to the ground pin on the arduino? Won't that cause all of the current to run through the arduino? I would think that might be bad for it. In the final product everything will be powered by the 12V supply so if I use that ground for everything then it is effectively tied together correct?
Yes.  Just run a ground wire from the Arduino ground pin to the ground on the breadboard.  This provides a reference for the Arduino signals to turn on/off each transistor.

Dave did a video on "How not to blowup your scope" that maybe helpful: 


Quote
Your 12V supply IS isolated?  Correct?
What does this mean? I don't know how to answer.
THIS IS IMPORTANT FOR THIS AND OTHER PROJECTS YOU CONNECT YOUR ARDUINO TO.  IF YOUR PROJECT GROUND IS NOT FLOATING, YOU COULD SEND A VOLTAGE INTO THE GROUND PIN OF THE ARDUINO AND DESTROY IT.  MOST LIKELY, THE USB PORT CONNECTED TO YOUR COMPUTER IS PROVIDING A GROUND THROUGH TO COMPUTER'S POWER SUPPLY.

Isolated (or floating) means there is NO connection between the AC Power of the 12V supply and the DC output.
I would disconnect your wall-wart and do a continuity check between each AC prong and each DC output pin.

Quote
How many LEDs of each color are you trying to drive?  Each LED will drop somewhere in the 1V to 2V range depending on the color.  Driving them with 12V, you will only be able to drive about 6 LEDs of each color.  I'm assuming the LEDs in the strip for each color are connected in series.  I can't tell from the spec sheet.
One segment of the strip currently so 3 LED. Eventually I will be using 2 segments so 6 LED total. I'll also be running the arduino and 3 servo's off of the power supply. The arduino and servo's after it goes through a buck converter. So I need to make sure the power supply has enough amps/voltage to run all of that?
I can only address the LED strip requirements.  You will have to determine your total power requirements.  I don't know what more you intend to do.

Quote
Guessing from the picture of the strip, the current limit resistors (R4, R5, R6) are part of the strip for each group of 3 and you don't need them in your circuit.
Someone said in an earlier post that those were current limiting resistors. My current power supply only produces 500mA. Do I need to find a supply that produces more amps? Does the voltage of it matter; or will the current limiting resistors keep that to a value that will work for the strip? Where would I go to look for a wall outlet power supply? I tried the thrift shop to get this one but I'm guessing I should just find a site online that can sell me exactly what I need.
I have attached a drawing of how I think the LED strip is wired.  According to their picture, the big white objects on the strip are the LEDs and the little black objects are the current limit resistors.  For individual LEDs the typical max current is 20mA with a voltage drop of 1V to 2V as a first guess in general terms without knowing the actual LED of interest.

According to the link for the LED strip in your first post, each segment requires 9V to 14.8VDC with each three LED segment requiring 38mA.  So, your 6 LED strip will use 76mA at 12V.  Your 12V power supply will be sufficient for the LED and Arduino power conversion portions of your project.

Quote
MarkF, what tool did you use to draw your diagram?
I'm using DipTrace to draw my circuit diagrams and layout PCBs.  Their FREE version is limited to 300 pins on the PCB (Which is a lot for small boards).  You can request a Non-Profit license for FREE that increases the PCB to 500 pins.  The PCB tool also has a nice 3D visualization of the PCB before you send it out to manufacture.

Download the DipTrace 3.2 Freeware version from  https://diptrace.com/download/download-diptrace/
« Last Edit: May 17, 2018, 01:52:51 pm by MarkF »
 

Online MarkF

  • Super Contributor
  • ***
  • Posts: 2549
  • Country: us
Re: How to wire this setup?
« Reply #43 on: May 17, 2018, 01:59:28 pm »
Be aware the most of my 12VDC wall-warts actually output 15V.
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #44 on: May 17, 2018, 05:17:09 pm »
Ok lot of information there. I'll review later.

I'm still a little confused about how to check if the power supply is isolated. Not quite sure what you mean by "DC output pin". I assume I need to use my multimeter to check for a circuit between each of the two prongs in the wall plug and some point on my breadboard. I'll try googling "check if power supply is isolated" or something similar to find a tutorial.

Also yes I checked the voltage of my power supply and it actually runs at 17V. Good times.

I downloaded the spec sheet for a 2N3904 transistor:   http://www.onsemi.com/pub/Collateral/2N3903-D.PDF
It looks like I cut it off in the picture but the asterisk on my package next to 2N3904 indicates that it has a "Different pinout". Looking at the diagram from the package (attached here again) it seems that the C and E are swapped on the BC547B (what I have) vs. the 2N3904 (your spec sheet). I attached a picture of the actual transistor if that helps.

Just to triple check the cathode from the LED strip should go to the Collector of the transistor correct? If that's the case then that's the configuration that makes it very dim using the diagram on the package. If I turn it around so it's using the collector as described by your data sheet then it appears at normal brightness.

Anyway thanks for all your responses. I'll do some testing and see what I can find.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: How to wire this setup?
« Reply #45 on: May 17, 2018, 11:38:42 pm »
The vast majority of power supplies are isolated so that shouldn't be an issue. If you connect the ground from it to the ground on your Arduino and nothing blows up then it's isolated.
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4103
  • Country: us
Re: How to wire this setup?
« Reply #46 on: May 18, 2018, 12:26:31 am »
Quote
If you connect the ground from it to the ground on your Arduino and nothing blows up then it's isolated.
Not exactly logical. Connecting the grounds together on this circuit should never cause anything to blow up whether or not either of the PSU's are earth referenced or isolated.*

Because his circuit is working after getting the C and E's the right way around (and still devoid of any ground jumper), it is pretty obvious that both his PSU's are earth referenced. It's still a good idea to add a direct connection between both grounds to reduce any deviation from ground loops/leakage or whatnot.

And OP, it's completely improper to draw up the schematic the way you did with a separate "USB ground" and "wall wart ground." If the two power supplies were actually isolated from each other, the circuit could not work. The transistor has two currents going on, one at 12V and one at 5V. But if you look at it, there are only 3 pins. Both currents, the Ice and the Ibe must flow through the emittor. Quid pro quo, the emitter must be connected to the negative rail of BOTH power supplies. Quid pro quo, both ground rails must be connected. Without the jumper wire, your psu's grounds ARE connected, but depending on what receptacle you plug your wall wart into, this connection could mean 10 or 20 feet or ground wire. There is going to be some voltage drop across this ground wire in your house's walls, depending on what's going on at either end of this wire. This little differential, if any, can be eliminated by adding the jumper wire locally, at your circuit.

If you wanted to keep both power supplies isolated from each other, you must switch the current with some other device than a transistor. Such as an optocoupler or a relay of some sort.

BTW, I went over all your problems in my post from 2 days ago.

*OTOH, if you connected the positive rail of one PSU to the ground rail of the other, and "nothing blows up," then you can be sure that at least one of those power supplies is isolated.
« Last Edit: May 18, 2018, 12:44:24 am by KL27x »
 

Offline YoukaiTopic starter

  • Regular Contributor
  • *
  • Posts: 227
  • Country: us
Re: How to wire this setup?
« Reply #47 on: May 18, 2018, 02:28:02 am »
You also don't have a ground connection between the arduino and the breadboard/PSU. Even if they are both earth referenced, it's probably a good idea to add a direct connection so's your voltages are more stable.
AH I see KL27x. I must have just completely missed this as it went over my head. I understand it better now that I have a little more context. I'll run the jumper between the arduino GND pin and the breadboard ground rail.

Thanks for your assisstance everyone. I'll update again later when I have some more progress.

Anybody know where/what I would search for to find a wall wart that would be more appropriate for my use? (i.e. more amps) Is there some industry term for those things that I can google?
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4103
  • Country: us
Re: How to wire this setup?
« Reply #48 on: May 18, 2018, 03:38:13 am »
I am partial to MPJA.com out of Florida. Overstocked and obsolete PSU's are their bread and butter. You can find what you need for very cheap, but there's a minimum shipping charge of something like 10.00 which might kill the deal, unless you need higher quantities and/or some of the other junk they sell.  You pretty much need to know the voltage and the amperage you want, and you want to look at the PSU's that are cased/enclosed. Years ago I purchased a handy dual 12 and 5V brick for like 8.00 that would have met your needs, but this was probably a discontinued product. What they carry at any given moment will never be the same. Not good fora long-term volume project, but great for tinkering and one-offs.
« Last Edit: May 18, 2018, 03:44:09 am by KL27x »
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4103
  • Country: us
Re: How to wire this setup?
« Reply #49 on: May 18, 2018, 05:17:34 am »
Quote
Quote
Your 12V supply IS isolated?  Correct?
What does this mean? I don't know how to answer.

The first important bit of almost every power supply is a transformer. The current that is induced on the other side of this transformer is completely isolated from everything else. Any potential created across the two leads of the secondary only exists between those two wires and nowhere else.

In a simple DC PSU, there is a next a bridge rectifier and some filter caps. The bridge rectifier turns the AC into DC, and the filter caps smooth it out a bit. So now you have two wires with a DC potential between them, but they are still isolated from anything else. So either wire could be likened to the terminals on a battery. If you taped up one of one of the output (the positive or the negative), you could stick the other one anywhere you want, and nothing would happen. You could stick it in a toaster, you could stick it in a electrical socket, you could put it on your tongue (while standing barefoot on wet concrete), and nothing would happen. But don't do any of that. The PSU output wire won't affect the mains, but if you were not properly insulated from earth when you did it, you could be electrocuted. 

In most switching PSU, the negative wire is attached to the earth wire for safety reasons in case of a fault. This PSU is now earth-referenced. It produces X volts relative to earth grounding (and both rails have reference to mains live/neutral as well!).  In many non-switching PSU, there is no connection. The most obvious way to tell is to count how many prongs are on the plug. 2 means it is definitely isolated. 3 means it is most likely earth-referenced, but to be sure you can just stick one probe on the 3rd ground prong and one on the negative output rail and do a continuity check. (While the psu is unplugged, of course). But your Arduino and transistor switched LED circuit, while a bit more complex in parts, is another way to confirm. :)

« Last Edit: May 18, 2018, 08:04:29 am by KL27x »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf