Cov txheej txheem:

Christmas Ntoo PCB Khoom Plig: 7 Kauj Ruam
Christmas Ntoo PCB Khoom Plig: 7 Kauj Ruam

Video: Christmas Ntoo PCB Khoom Plig: 7 Kauj Ruam

Video: Christmas Ntoo PCB Khoom Plig: 7 Kauj Ruam
Video: Choose food challenge 😂 Which fruit is fake and which is not? 🙄 #shorts Best video by Hmelkofm 2024, Kaum ib hlis
Anonim
Christmas Ntoo PCB Khoom Plig
Christmas Ntoo PCB Khoom Plig

Nws yog nyob nruab nrab ntawm lub Cuaj Hli uas kuv xav ua qhov haujlwm me me lom zem. Vim tias Christmas tau los txog thiab kuv xav muab qee yam khoom plig hauv tsev rau kuv tsev neeg Kuv tau xaiv ua tsob ntoo Christmas.

Christmas tsob ntoo yuav tsum:

- yuav tsum muaj lub zog muaj txiaj ntsig

- tsis loj dua 10*10cm

- programmable

- yuav tsum muaj lub hauv paus, qhov chaw tso roj teeb

- yuav tsum muaj ntau dua 1 hom kev ua haujlwm

Kuv tsim PCB hauv Altium Designer, luam tawm PCBs ntawm JLC, programmed atmel microcontroller hauv Atmel Studio 7.0 thiab tsim qauv 3d hauv SolidWorks.

Kauj Ruam 1: Txoj Kev Npaj

Kuv lub tswv yim yog tsim 2 tsob ntoo Christmas zoo li pcbs.

Ua ntej kuv pib ua haujlwm ntawm cov duab kuv tau xaiv lub microcontroller, lub zog xa khoom, coj cov tsav tsheb …

Rau microcontroller kuv siv ATTINY85-20SU vim nws yooj yim (8pins).

Rau kev txhawb lub microcontrollers thiab coj kuv xaiv 3 AA roj teeb.

Rau kev hloov lub leds kuv xaiv mosfets SI1012CR-T1-GE3.

Kauj Ruam 2: Tsim PCB

Tsim PCB
Tsim PCB
Tsim PCB
Tsim PCB
Tsim PCB
Tsim PCB

Ua ntej kuv tau ua cov txheej txheem ces PCB txheej txheem.

Tom qab kuv xaiv lub microcontroller kuv ntsia cov ntaub ntawv ntawm tus tswj thiab tus pinout. Lub microcontroller xav tau kom muaj hom pw tsaug zog thiab tsawg kawg 4 I/O pins rau 3 mosfets, ib qho rau txhua xim (liab, daj, ntsuab) thiab nias lub pob. Attiny85 tau zoo tag nrho.

Pin1 (RESET) - rov pib dua tus pin, qhov twg kuv txuas nrog 10 kOhmPULL UP resistor (pob 1206)

Pin2 - Kuv siv tus pin no rau lub laub khawm, txhua lub sijhawm kuv nias lub pob kom lub pob tau rub mus rau hauv av (yog li kuv programmed tus pin no raws li kev nkag thiab siv sab hauv PULL UP)

Pin3 - hauv SCH1 Kuv tau txuas tus pin ntawm tus txiv neej lub taub hau tab sis kuv tsis tau siv nws.

Pin 4 - Av

Pin5 (MOSI) - mus rau lub rooj vag ntawm mosfet Q3 rau cov coj daj

Pin6 (MISO) - txuas nrog lub rooj vag ntawm mosfet Q2 rau cov coj ntsuab

Pin7 (CLK) - txuas nrog lub rooj vag ntawm mosfet Q1 rau cov liab liab

Pin 8 - Vc

Cov ntaub ntawv ntawm mosfet:

Ntawm ib lub mosfet muaj 12 leds (tag nrho kev siv hluav taws xob rau 1 mosfet: P = I*U, P = 20mA*4.5V = 90mW)

Kuv kuj ntxiv 6 vias (2.54 mm los ntawm ib leeg rau kev ua haujlwm (header 4 thiab header 2 ntawm SCH)).

Tom qab SCH kuv mus npaj lub rooj tsavxwm. Kuv txiav tawm tsob ntoo Christmas zoo, thiab tom qab ntawd kuv tso tawm cov khoom sib xyaw.

Kuv ntxiv ob lub decoupling capacitors 100pF thiab 10uF kom ruaj khov qhov hluav taws xob nkag.

100 kOhm resistor uas nyob hauv SCH kuv tsis tau siv.

Kuv ntxiv cov ntaub ntawv gerber rau ob qho PCBs.

Kauj ruam 3: Soldering

Soldering
Soldering
Soldering
Soldering
Soldering
Soldering
Soldering
Soldering

Kuv tau siv cov hlau qub qub uas kuv tau tso puag ncig.

Ua ntej kuv tau siv tag nrho cov khoom siv smd, tom qab ntawd txhua qhov dhau los ntawm cov khoom sib xyaw.

Tom qab siv lub sijhawm nws yog lub sijhawm rau kev lom zem ua haujlwm: D

Kauj ruam 4: Programming

Programming
Programming

Rau lub cajmeem kuv siv AVRISP mk2.

Vim tias koj xav tau lub zog hluav taws xob sab nraud los ua lub zog rau lub microcontroller thiab programator kuv txuas 5v thiab gnd los ntawm Arduino Mega tsuas yog rau lub zog. Tom qab ntawd kuv txuas tus programator ntawm kuv programmable pcb qhov kuv txuas nrog:

1 pin (RESET) to RESET

4 tus pin (GND) rau GND

5 tus pin (MOSI) rau MOSI

6 pin (MISO) to MISO

7 pin (CLK) to CLK

8 pin (Vcc) to Vcc

Kuv txuas qhov program program.

Kuv tus lej kuv siv pwm tswj, hom pw tsaug zog, cuam tshuam…

Hom firs tsuas yog ntsais muag tag nrho cov leds, hauv hom thib ob kuv siv pwm los hloov qhov ci ci (Kuv tsuas yog xav tau tweak me ntsis kom ua kom nws zoo dua, hom thib peb tsuas yog tig cov coj mus thiab tawm hauv cov kauj ruam, hom thib plaub tsuas yog vwm ntsais muag (kuv siv lub luag haujlwm pwm zoo li hauv hom thib ob) kuv hu nws "funky" hom: D

Tom qab koj nias lub laub khawm lub sijhawm pib pib uas suav 5 feeb thiab tom qab ntawd rov qab mus rau hom pw (hauv hom pw tsaug zog lub zog siv tau zoo li 2-6 uA)

CEEB TOOM !!!

Ua ntej koj programm koj attiny85 nrog cov programm no, koj yuav tsum tau lov tes taw 8 Mhz fuse. vim tias tsis yog koj li attiny85 yuav ua haujlwm ntawm tsuas yog 1 Mhz

Kauj Ruam 5: Daim Ntawv Teev Npe

Kuv xaj cov khoom rau 12 tsob ntoo Christmas kuv ntxiv cov ntaub ntawv ntawm cov khoom uas kuv xaj los ntawm Farnell thiab Mouser, lwm yam khoom kuv xaj los ntawm aliexpress:

-LIS

- Protoype PCB

- Poj niam lub taub hau

- Txiv neej txoj cai kaum lub taub hau

- Laub khawm

- ON/OFF hloov

Amazon.de:

- roj teeb

Kauj Ruam 6: 3d Qauv

3d Qauv
3d Qauv
3d Qauv
3d Qauv

Kuv yuav tsis piav qhia tias kuv tsim qauv 3d rau lub hauv paus, tab sis yog tias koj xav tau koj tuaj yeem PM kuv thiab kuv xa koj cov ntaub ntawv.

Kuv tau ua qee qhov qhib rau qhov qhib/tua hloov thiab khawm Laub.

Ua ntej kuv tau siv qee cov xov hlau ntawm lub laub khawm thiab hloov, tom qab ntawd kuv tau muab lawv tso rau thiab kub glued lawv los ntawm sab hauv ntawm lub hauv paus, tom qab ntawd kuv txiav tawm cov kab laug sab, thiab muab cov poj niam txuas txuas thiab xov hlau ua ke thiab kub glued txhua yam hauv qab.

Kauj ruam 7: Cov ntsiab lus

Lub hom phiaj tseem ceeb ntawm txoj haujlwm no yog tias kuv xav ua rau kuv tsev neeg xav tsis thoob nrog qee yam hauv tsev, uas yog kev txhawb siab uas pab kuv ua kom tiav.

Ua tsaug tshwj xeeb rau kuv cov phooj ywg uas tau pab kuv nrog txoj haujlwm no.

Kuv ntxiv cov ntawv ua tau zoo, qhov twg kuv tau suav ntev npaum li cas lub roj teeb yuav kawg (hauv cov xwm txheej zoo).

Yog koj muaj lus nug sau ntawv tawm.

Pom zoo: