Run a string of LEDs from the mains


Closed Thread
Results 1 to 31 of 31

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    falingtrea: If i use a transformer inside a device then would it make a difference? 240V would still be going into it so i would need to look at all that safety stuff anyway

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by The Master View Post
    falingtrea: If i use a transformer inside a device then would it make a difference? 240V would still be going into it so i would need to look at all that safety stuff anyway
    But the "safety stuff" would be isolated to one point.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    But the "safety stuff" would be isolated to one point.
    Thats a good point. Most of these projects would involve having the LEDs on the same board as the transformer but while testing its probably a good idea if most of the PCB has low voltage running through it

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    mackrackit: This confuses me a bit. you say theres no need to worry with 5 LEDs on 12V but they could be a bit dim. Are you saying theres no need for any resistor? I wouldnt normally use a resistor in this case anyway.
    Now the wheels are turning...
    You tried 4LEDs across 12 volts with out a resistor. Put in a 220 or whatevere and see what happens to the color.

    I know this is all a bit confusing. Maybe another reason not to run from mains directly. At least not untill you get all of this sorted out.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    I think you need some basic classes on electronics. Maybe the Art of Electronics is a book all have to read first.

    That picture shows the relation between Current and Voltage. Do you notice how steep is the curve at the point where the diode starts to contact? A very little increase at Voltage and the current will be infinite!. Thats why a resistor is needed or even better a current source to stabilize the current at 30 or if you insist on decreasing ED life at 50mA.

    A battery is very constant and 12 will never be 13 volts without any good reason. But Power line? No ones guarantees the 240Vac. So what will happen to you precious diode (read LED) when the voltage across the pins moves away from the knee of the curve? Bam!

    Ioannis

  6. #6
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Nothing happens to the color. What should i be seeing?

    The LEDs im using work on a min of 3V. They can go upto 4V if needed. With 80 LEDs that gives me an extra 80V to play with. If the voltage goes up over 320V then you would expect things to blow up anyway. If i were running 4 LEDs through a 12V transformer then i would expect 320V input to give me 16V output so still 4V per LED

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You should see a color change when running at the peak voltage.

    Just curious.... What does RMS stand for and how is applied to electronics?
    Dave
    Always wear safety glasses while programming.

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by The Master View Post
    falingtrea: If i use a transformer inside a device then would it make a difference? 240V would still be going into it so i would need to look at all that safety stuff anyway
    Which is why most companies buy an off the shelf power supply solution. The power supply company handles the safety issues. If a part already meets UL or IEC standards, you usually don't have to requalify the part when you submit your product that includes the pre-approved product.
    Tim Barr

Similar Threads

  1. How about String Variables?
    By mytekcontrols in forum PBP Wish List
    Replies: 40
    Last Post: - 20th January 2015, 12:53
  2. Embedded Strings in your Code Space
    By mytekcontrols in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 9th March 2008, 07:50
  3. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  4. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39
  5. controlling leds with the switches
    By ilteris in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th October 2005, 21:02

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts