element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Merry Boxes & LEDs
  • Challenges & Projects
  • Project14
  • Merry Boxes & LEDs
  • More
  • Cancel
Merry Boxes & LEDs
Blog Christmas tree made from WS2812 leds
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Merry Boxes & LEDs to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kk99
  • Date Created: 9 Dec 2018 9:24 PM Date Created
  • Views 3057 views
  • Likes 16 likes
  • Comments 9 comments
  • merryboxesledsch
  • holidayspecial19ch
  • ws2812
  • attiny13
Related
Recommended

Christmas tree made from WS2812 leds

kk99
kk99
9 Dec 2018
image

Merry Boxes & LEDs

Enter Your Project for a chance to win a Maker Tool Kit, an Oscilloscope Grand Prize for the project that brings the Most Joy to the Heart, and Gift to Gives!

Back to The Project14 homepage image

Project14 Home
Monthly Themes
Monthly Theme Poll

 

image

I would like to present a small Christmas tree made from 15 WS2812B LEDs connected to attiny13 MCU. Tree is made from 5 stripes with 5, 4, 3, 2 and 1 LEDs. LEDs are driven from single pinout PB4 of Attiny13 MCU. Below is schematic:

image

MCU was put in cartridge from 35mm tape. As power supply I have used 5V from USB. Code is written in C with usage of light_ws2812 library. Below there is output from compilation:

image

There are five different effects for which we could modify brightness and delay. Below are few more photos:

image

image

image

image

Source code is available in attachment. Below there is short video presentation:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Second video recorded with different camera setting:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Attachments:
sources.zip
  • Sign in to reply

Top Comments

  • DAB
    DAB over 6 years ago +3
    Great build. DAB
  • genebren
    genebren over 6 years ago +2
    Very cool! I really like the various effects that you demonstrated in your video. Enjoy your flashy little tree! Gene
  • kk99
    kk99 over 6 years ago in reply to genebren +2
    Thank you.
  • kk99
    kk99 over 6 years ago in reply to shabaz

    Thank you.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 6 years ago

    Very cool project : )

    Nice to see quick-to-build microcontroller projects such as this, yet the end result looks really nice!!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kk99
    kk99 over 6 years ago in reply to dubbie

    Hi,
    For programming I am using this USB programmer: https://www.fischl.de/usbasp/  and avrdude software. Example of command to program this MCU you could find in Makefile in attached sources.

    Here is example of connection:

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 6 years ago

    What a brilliant LED Christmas tree. I'm not entirely sure what ws2812 LEDs are though.

     

    Also, how did you program your attiny13? I have purchased some atiny85 to use in my ideas but so far I have been unable to programme any. All the searches bring up UNOs (which I do not have - I have Nano V3 and so far I haven't found any information on how to use these to programme the attiny85). SparkFun do an actual programmer which I was going to buy one but they do not have any in stock.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 6 years ago

    That's really nice!

    Great idea and well executed image

     

    -Nico

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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