กลับไปหน้ารวมไฟล์
christmas-card-pcb-a601ba-en.md

This year we fancied some cards with a difference, but wanted to keep the software simple, well for now.....

So with the spare copper clad boards, an ATtiny and some LEDs we have the start of some shiny cards with lights, though by the time this was finished we wanted to add a few more features... Easter should be interesting!

Gathering the Parts

The Uno + breadboard + jumper wires are needed to program the ATtiny85 IC shown below....

Our tiny parts for on the card - will need another battery!

Designing the Board

First we need to have an image we want to etch onto the front of the card, which can be in any image format.

Our initial design for the front, using a free online image and Paint...

Then we open it in Inkscape, resize to the final dimensions of our copper board, and use the 305Laser Engineering tool to convert this into GCODE for our printer, which will give a 1:1 representation of the image.

We run our laser at full power and a speed of 50mm/min which is slow but seems reliable for us.

Now we need to design our circuit, remembering the LEDs need to be behind an etched area. Once designed it can be exported as gerbers, and converted to an image, reversed, and converted to GCODE in the same way as above.

Circuit Design from FreePCB (all files at bottom of article)

This project is an advanced PCB-based holiday card featuring animated light sequences and seasonal music. The circuit was designed using **Inkscape** and **GerbV**, then etched or ordered as a professional PCB. The Arduino (often an **ATtiny85** for its small size) is embedded directly into the "Card" surface.

Now we should be ready to etch...

Etching

As always be careful when handling the chemicals for etching and any laser equipment in use!!

We add our resist using a layer of black matt paint, and a 2.5W UV Laser fitted to our 3D Printer.

PCB back in progress, its a green light in the printer box

Once the paint is burned away you should have a board as below, our paint appears silver where it has been burned.

PCB Front before cleaning...

Now give it a good scrub with a toothbrush for example, and a little washing up liquid seems to help...

After a good scrub the copper is reasonably reflective, so it will etch....

Then etch with your etching solution of choice, as directed... and dont forget the rubber gloves, ventilation and goggles!!

We find periodically taking the board from the etching solution and scrubbing gently with a toothbrush works well to remove any paint not ablated fully by the laser or cleaning process.

Hopefullyitshouldthenlook more like this:

So the final clean with some Acetone to remove all the paint should reveal a good looking front to our board, even without any lights!

Soldering

We used SMT components for this so we had no holes, and as always this is quite fiddly, but means we don't affect the front copper with drill holes etc...

NOTE - Check your LED orientation with a voltmeter using the Diode setting if not clearly marked (and it can be difficult to be clear on such a small package):

We used 100Ohm for yellow and red LEDs, and 22Ohm resistors for our green and blue LEDs, as we don't want them burning out before New Year!

Suit these to your specific LEDs, and you can there are many online LED Resistor Calcualtors which can assist in working these out.

Coding

Now we can whip up any code we want for our lights.... there may be a pattern you want to flash, or other peripherals you have added (sound sensors, light sensors) which could change how it works... it all depends on the design you have on the front really, and of course who you expect to receive it!

We built our code in Visual Micro to simply perform a random pattern, at random intervals.. simple but effective for the purposes here.

The firmware manages a "Charlieplexed" or matrix LED array, creating "Snowfall" or "Blinking Tree" animations while consuming less than 10mA to preserve battery life. It can also use the `tone()` function to play iconic Christmas carols while the LEDs sync to the beat, providing a complete multimedia holiday experience in a pocket-sized package.

Install any Cores needed for your target chip in use (ours is the versatile ATtiny85).

Visual Micro Explorer Installing ATtiny Boards

Open another instance of Visual Studio for your ArduinoISP project to run in.

This can be opened from the Examples installed with the core, as shown below:

Visual Micro Explorer loading ArduinoISP example

Upload this to your Uno at this point, before wiring it to your ATtiny.

More about the Arduino As ISP can be found here

Uploading to the Chip

Now we have our programmer built, we can finally upload our code to the chip.

First we need to put our ATtiny in a breadboard, and wire it to our Uno:

Arduino Uno (BLUE) wiring to ATtiny when programming

Here we need to select the relevant chip, and ensure we have selected the correct programmer option, for us the ArduinoISP:

Ensure the options shown are selected in Visual Micro

Now we can press Build & Upload and your code should upload to the chip.

Fit the Chip and Power Up

Solder or push the chip into the board if you used a header, and we can finally get the power turned on and see how it looks with the lights on!

Maybe more lights next time...

So there we have it, a Christmas card that you can customise in so many ways, and when you get it back in the new year, you can upgrade it, so economical too!

Check out Visual Micro here.

ข้อมูล Frontmatter ดั้งเดิม

apps:
  - "1x Inkscape"
  - "1x Arduino IDE"
  - "1x Visual Micro"
  - "1x Visual Studio 2017"
  - "1x GerbV"
  - "1x Inkscape 305 Laser Plugin"
author: "arduinocc"
category: "Gadgets, Games & Toys"
components:
  - "1x Soldering iron (generic)"
  - "1x SMT Resistors 100 Ohm"
  - "1x Matt Black Paint"
  - "1x Copper Clad Board"
  - "1x SMT Resistors 3KOhm"
  - "1x Solder Wire, Lead Free"
  - "1x Jumper wires (generic)"
  - "1x Acetone"
  - "1x Arduino UNO"
  - "1x ATtiny85"
  - "1x SMT LEDs"
  - "1x 3D Printer (generic)"
  - "1x SMT Resistors 22Ohm"
  - "1x Breadboard (generic)"
  - "1x PCB Etchant (Ferric Chloride)"
  - "1x 2.5W UV Laser"
description: "Etch a PCB card you'll enjoy making with only electronic glitter involved! And it's a great way to use up those spares...."
difficulty: "Intermediate"
documentationLinks: []
downloadableFiles: []
encryptedPayload: "U2FsdGVkX18Q3y3v77Ds+Qizt1O77HZswzQqfBRDO93fGp/2hEjn8WIxyim8/NAAJaXt91jAYAJXYZhjoYGigBMfjfBU1PlreW5hFhk5OALQ12uFaR3f79MT8J6C7HT2yMYAKcu5e9oqBUkbOCOO0YbgDKDKyS7ERisfNnL3KD57ln1BUK77C86mlOA8gXtUYx/29FTVaeUoKIzOCaBqIbqpPAL3K/D3/BjJFW+SwUU="
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/christmas-card-pcb-a601ba_cover.jpg"
lang: "en"
likes: 0
passwordHash: "d4347f163344cfb4a3b9596dac6e84a893a1f0845f693f8bcd47eb746ac2bcc2"
price: 99
seoDescription: "Create a unique Christmas Card PCB using spares and electronic glitter. A fun and festive DIY project for makers."
tags:
  - "home automation"
  - "pcb"
  - "visual micro"
title: "Christmas Card PCB"
tools: []
videoLinks: []
views: 4415