element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum RaspberryPi2  and 120VAC "PWM" capabilty question
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 676 subscribers
  • Views 665 views
  • Users 0 members are here
  • pwm_controller
  • 120vac
  • triacs
  • pwm
  • raspberry-pi
  • christmas_lights
  • lightshowpi
Related

RaspberryPi2  and 120VAC "PWM" capabilty question

Former Member
Former Member over 10 years ago

Hello all,

 

I am in the military and aspiring to be  an electrical engineer (Hope to start school this October at Arizona State). Anyhow...

 

I was tasked to build a christmas tree light show this year by the "Big Wigs" of the base. So I jumped into research and found the RaspberryPi to be capable of doing some of the features I would need.

 

1. I found an example of a library called LightshowPi which essentially uses a python script to play a midi and mp3 file at the same time. I could then use the midi to control other GPIOs to turn on and off lights and certain moments of each song in playlist.

 

2. PWM! So if this was a perfect world the lights provided to me would be powered by DC. However, I am told they are powered with 120VAC. I have yet to see the lights in person, so I can't be certain. Although I do know they are RGB LEDs. I did see the lights last year driving by and the tree periodically changes color (telling me there is some form of PWM happening here).

 

So, if the light strands are indeed 120VAC; I need to figure out how a "PWM" on 120VAC is accomplished. Essentially, what I need to do is be able to use a Raspberry PI to play music and send signals to each strand of light of this tree. If it were DC this would be easy as I have found chips that could add several GPIOs and handle PWM as needed.

 

I have read about TRIACS and it smells like a possible solution but Im not certain how (if at all) a DC signal could "PWM" a TRIAC.

 

I would enjoy some feedback and possible solutions.

 

Cheers,

 

Clayton Allen

 

Message was edited by: Clayton Allen Punctuation Error Spotted

  • Sign in to reply
  • Cancel
Parents
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago

    If your buying lights that are simply on or off, no fancy running patters or other cool stuff then they are typically 120V or what ever your local mains is

     

    On the other hand if you buy the ones where you can have all sorts of colours, running patterns etc and the light string will often (Pretty much always) have a small plastic box attached then these will notmally be 5, 12V or something similar and very hackable

    see this as an example http://www.ebay.com/itm/GE-Color-Effects-25-LED-Lights-G-35-String-Set-/261986227552

     

    and here is a random hack video I found for those lights https://www.youtube.com/watch?v=4C_MsCiYJUc

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Robert Peter Oakes

    Well this morning I had a chance to go and see the lights. They have rectifiers on the plugs. I also saw the old control box and it has 120VAC plugs.

     

    It seems I need to ask for money to buy RGB light ropes instead. In terms of brightness I assume that 24v is my best bet. I've been searching google today but all these sites aren't the best at giving descriptions.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to Former Member

    I think you will need to find the hackable lights first then worry about what supply you need, the one I pointed you at uses a 5V supply, just more current, one of the underlying parts in many of these new light strips is the WS2812 RGB LED with integrated controller. ADAFRUIT sells these as Neo Pixels

    here: http://www.adafruit.com/category/168

    https://learn.adafruit.com/adafruit-neopixel-uberguide/overview

    https://learn.adafruit.com/wifi-controlled-led-christmahanukwanzaa-tree/overview

     

    A big word of causion.... this can be addictive image

    https://www.youtube.com/watch?v=l-a_LG4v184

     

    https://www.youtube.com/watch?v=ADjv4_M9nf0

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to Former Member

    I think you will need to find the hackable lights first then worry about what supply you need, the one I pointed you at uses a 5V supply, just more current, one of the underlying parts in many of these new light strips is the WS2812 RGB LED with integrated controller. ADAFRUIT sells these as Neo Pixels

    here: http://www.adafruit.com/category/168

    https://learn.adafruit.com/adafruit-neopixel-uberguide/overview

    https://learn.adafruit.com/wifi-controlled-led-christmahanukwanzaa-tree/overview

     

    A big word of causion.... this can be addictive image

    https://www.youtube.com/watch?v=l-a_LG4v184

     

    https://www.youtube.com/watch?v=ADjv4_M9nf0

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube