قالب وردپرس درنا توس
Home / How To / Christmas tree PCB gift: 7 steps

Christmas tree PCB gift: 7 steps



First I made schematic then the PCB layout.

After selecting the microcontroller, I looked at the data heath on the controller and pinout. The microcontroller needed a sleep mode and at least 4 I / O pins for 3 mosfets, one for each color (red, yellow, green) and one push button. Attiny85 was perfect.

Pin1 (RESET) – is a reset pin, where I connected a 10 kOhmPULL UP resistor (package 1206)

Pin2 – I used this button for the push button, every time I pressed the

Pin3 – button in SCH1 I connected this pin to the male head but I didn't use it.

Pin4 – Ground [19659002] Pin5 (MOSI) – connects to the gate of mosfet Q2 for green conductors

Pin7 (CLK) ̵

1; connected to the port of mosfet Q1 for red conductors

Pin8 – Vcc

Mysfets datasheet: https://www.vishay.com/docs/67519/si1012cr.pdf

On a mosfet there are 12 wires (total power consumption for 1 mosfet: P = I * U, P = 20mA * 4.5V = 90mW)

I also added 6 vias (2.54 mm apart for programming (heading 4 and heading 2 on SCH) 19659002] After SCH I arranged the board. I cut out the Christmas tree shape and then I laid out the components

I added two decoupling capacitors 100pF and 10uF to stabilize the input voltage.

Resistor 100 kOhm available in SCH I did not use

I added the gerber files for both PCBs.


Source link