Updated software

A project log for Electronic butterfly jewel

I decided to make a cool gift for my wife anniversary so I designed a PCB jewel. She loves butterflies so I tried to make her one.

strofostrofo 06/18/2020 at 11:481 Comment

After looking through the projects of Gerben I learned that I can use the tristate input of the uC to mask the unwanted LEDs. Basically it divides the 3.3V voltage in two sub 2.2V that I need to light a LED. It was too much code to use the pinMode function of the Arduino so I put the needed DDRB register values in an array. Now I can do some nice rotating and bouncing effects - wrote some helper functions for them. 

So I've updated the Github project files accordingly.

Thanks Gerben!


Gerben wrote 06/18/2020 at 18:45 point

Hadn't noticed you weren't charlieplexing the LEDs. Good to hear you figured it out yourself.
Your wife will surely love the nice animations.

PS feel free to PM me if you have any questions.

  Are you sure? yes | no