Desk Christmas Tree Animated LEDs Attiny85

  • Small (32x32mm) Christmas tree 8 LEDs animated by an ATtiny85 SU (smd) to put on his desk on Christmas day, the animation lasts 5 minutes and repeats in a loop.

SOFTWARE:

free printed circuit software :Kicad 5 link

Arduino 1.8

USBASP programmer or ISP Arduino board

boards Tiny for programming ATTinys in Arduino software see bellow for install these

Step 1:

TOOLS:
Cheap magnifier glasses

Soldering iron

tip 1mm 0.5mm (or 1mm) welding

soldering flux

acetone

UV insolating machine

Mini drill and forest 0,8mm max

scissors to do everything

hot glue gun or 2 component epoxy glue

tweezers (to enter SMD)

paint spray white and glossy varnish

Step 2: Components

SMD Components:

8 colored LEDs (size 0805)

4 resistors 150 Ohms (size 1206)

1 resistance 10 KOhms (size 1206)

1 capacitor 100nF (size 1206)

1 capacitor Tantalum 22μF 10Volts (size B

a strand of copper PCB Wire or tail of resistance

epoxy pre sensitized positive double-sided 5/10 (the best) or 16/10 (harder to cuts)

Step 3: SCHEMATIC and PCB

Typons:

If you do not want to use Kicad here are both sides of the tree to print on transparent they must be mirrored (upside down), these are in SVG vector format and open with internet explorer or better with the free vector drawing software Inkscape link Inskape

Kicad:

all Kicad files are here: Kicad 5.1 files

Step 4: Make IT !

Cutting :
If you used epoxy 0.5mm thick you can cut the outline of the tree with scissors (be careful for the internal angles) and then tweaking with a cutter. If you have used 1.6mm epoxy (16/10) you must use a hacksaw blade, a file and a cutter.

welding: The welding of SMD components is very delicate, I advise you to use magnifying glasses, tweezers, a soldering iron tip of 0.5mm (1mm maximum). Thoroughly clean the PCB with acetone, check with a magnifying glass that there are no micro cuts due to scratches, coat with flux to avoid the "pies" of welding. For best results on CMS, always coat components and PCB with a little flux before tinning and soldering. SMD LEDs are fragile, do not heat them too long when soldering them. There are many tutorials burning and welding CMS on youtube and blogs, if you are beginners in CMS I advise you to watch of them. We begin by welding 4 vias with a strand of multi-strand wire or a tail of resistance one the both sides, then the LEDs, tin them one by one while maintaining them with the aid of a tweezers auto, then place them on the PCB and weld the first pin paying attention to the orientation the green dot indicates the cathode (the least) and then solder the second pin. If the LED (in 0805) seems too difficult to solder you can take the size above (1206 as the resistors). Once the LED welded you can solder the 4 resistors of 150 Ohms which are on the same face.

The chip must be programmed before soldering. You have the choice between two models the ATtiny13A (1K of memory) or the ATtiny85 (8K of memory) All details for programming and FUSE BIT are described below. When the chip is programmed you can tin it, adjust it on the PCB and solder a pin, adjust to match the other pins if needed and solder them one by one. Solder the capacitor 100nF then solder the capacitor Tantale10μF 10V, resistance 10KOhms and finish by soldering the power pins on both sides. Then clean the PCB with acetone and an old toothbrush, check that no tracks are touching and test, taking care of the + and - polarity of the feed, the tree must "start" immediately, if this is not the case check the welds and tracks.

Decorate it with paint, glitter and varnish lake pictures or to your taste.

If you do not want to enter the details of the programming HEX files are attached in the zip for ATtiny13A and ATtiny85. I do not describe the method for using programmers because there are instructables or youtube videos that describe it.

Step 5: PROGRAMME the CHIP Without Arduino HEX File Only

If you do not want to enter the details of the programming HEX files are attached in the zip for ATtiny13A and ATtiny85.

HEX files link

To program the Attiny memory, you need programming software and a programmator On Windows, use ProgIsp is a very complete software that can do everything on AVR microcontrollers. My programmer is a USBASP (we find it on ebay for a ridiculous price.) I redid the doc in PDF with screenshot:

ProgIsp manual and software

There is also avrdudess.exe it work on Windows and (Ubuntu with mono).

AVRdudess link

a very useful site for AVR chips see screenshot for ATtiny85

AVR Fuse calculator

see the screenshots for the configuration of fusesbit with ProgIsp and AVRdudess under windows

Step 6: Modify and Program Chip With Arduino

Download Arduino: Arduino link Installing the boards for ATtiny13 , ATtiny85 and more…

Here is many additional boards: boards support

For ATtiny13 board: link

For ATtiny85 board: link

For automatic board installation open preferences then on the icon of Additional Boards Manager URLs and paste the two URLs *.json of the linkage boards above (everything is described in these links) see my screenshots.

Now you're ready to programming these ATinys :) INOs Files:

for those who want to create their own animation I made a software that allows to test them visually:

TreeMaker

and video on YouTube: video link

Happy Christmas !

https://youtu.be/VrdeUw6v0cw

Share

    Recommendations

    • Arduino Contest 2019

      Arduino Contest 2019
    • Tape Contest

      Tape Contest
    • Trash to Treasure

      Trash to Treasure

    Discussions