Results 1 to 4 of 4

Thread: Alternate polarity led strings

  1. #1
    Join Date
    Feb 2017
    Location
    Wales
    Posts
    58
    Post Thanks / Like

    Default Alternate polarity led strings

    Some of you may remember a post I made back in 2018 on driving led strings where each alternate led is at alternate polarity. I am using an Arduino and H bridge to drive the led strings and I wanted it to appear that all the leds were lit. I believe the problem was getting Vixen to change the polarity quickly enough to give the impression that all the leds were lit.
    My son came up with a suggestion which was to connect the H bridge inputs to an ac feed instead of to the Arduino. This has worked just fine, I still use the Arduino pwm outputs to vary the brightness of the leds.

  2. #2
    Join Date
    Mar 2017
    Location
    Lancaster OH
    Posts
    170
    Post Thanks / Like

    Default Re: Alternate polarity led strings

    Just curious - if you are feeding AC to the H bridge, how are you using the Arduino pwm outputs to control the LEDs?

    Sent from my Moto Z (2) using Tapatalk

  3. #3
    Join Date
    Nov 2009
    Location
    Brisbane - Australia
    Posts
    957
    Post Thanks / Like

    Default Re: Alternate polarity led strings

    The way to control 2-wire strings like this is to have the microcontroller (Arduino) do the low level control nice and fast and accept 2 channels of level data from whatever data source you implement.
    www.da-share.com

  4. #4
    Join Date
    Feb 2017
    Location
    Wales
    Posts
    58
    Post Thanks / Like

    Default Re: Alternate polarity led strings

    The ac feed goes to pins 8, 9, 10 and 11 and the Arduino pwm outputs goes to pins 7 and 12

Bookmarks

Posting Permissions

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