Cov txheej txheem:

AtTiny85 Addressable LED Sawb: 10 Kauj Ruam
AtTiny85 Addressable LED Sawb: 10 Kauj Ruam

Video: AtTiny85 Addressable LED Sawb: 10 Kauj Ruam

Video: AtTiny85 Addressable LED Sawb: 10 Kauj Ruam
Video: Gledopto WLED Light Bar - адресный светильник - обзор, интеграция в Home Assistant 2024, Kaum ib hlis
Anonim
AtTiny85 Addressable LED Sawb
AtTiny85 Addressable LED Sawb

Kuv lub hom phiaj yog ua kom lub teeb rooj los ntawm LEDs. Kuv xav kom nws tuaj yeem kho tau, yog li nws tuaj yeem siv ob qho tib si thaum nruab hnub thiab hmo ntuj. 12v Lub sijhawm no kuv tau xaiv cov chaw nyob uas tau siv los ntawm 5v qhov no tau txo qis kev suav ua ntu zus thiab tso cai rau ntau qhov kev hloov pauv, xws li kev hloov pauv.

Khoom siv

Qhov:

  • Chaw nyob LED sawb raws WS2812b
  • AtTiny85 digispark clone.
  • TTP223 Capacitive kov khawm.
  • 5v6a zog.
  • 2.5mm fais fab ntsaws.
  • Kev txhim kho PCB.
  • 2.54mm lub taub hau thiab tus pin.
  • Qee cov xov hlau.
  • Lub thawv yas me me.
  • IKEA MOSSLANDA txee.
  • Xaiv tau, Photoresistor thiab 1k ohm resistor.

Cov Cuab Yeej Rau Kev Tsim Kho:

  • Soldering hlau thiab solder hlau.
  • Laum thiab ntoo/yas khoom.
  • Kub kua nplaum phom.
  • Ib lub PC los teeb tsa lub microcontroller.

Kauj Ruam 1: Laum Lub Qhov rau Khawm

Laum Lub Qhov rau Khawm
Laum Lub Qhov rau Khawm
Laum Lub Qhov rau Khawm
Laum Lub Qhov rau Khawm

Kuv xav kom kev tswj hwm yuav luag tsis muaj dab tsi li. Yog li kuv tau xaiv siv lub khawm kov lub peev xwm thiab teeb tsa nws ntawm theem saum npoo. Ua li ntawd, Kuv tau siv lub qhov ntiav ntiav ntawm qhov chaw nruab nrog 20mm laum thiab ntawm nws qhov chaw siv 4mm laum los ua lub qhov rau cov xov hlau.

Kauj Ruam 2: Solder Wires to the Button

Cov laug txuas rau khawm
Cov laug txuas rau khawm
Cov laug txuas rau khawm
Cov laug txuas rau khawm

Solder 3 cov xov hlau mus rau sab tivthaiv ntawm lub pob, kom ua rau sab xis kom du li sai tau. Ua cov xim xaim thiab nco ntsoov cov xim twg yog cov laug rau txhua tus pin, Nws yuav tsis tuaj yeem pom tom qab ntawm cov khoom no yog heev rhiab heev rau kev thim rov qab, yog li ceev faj heev kom tsis txhob hloov GND thiab VCC.

Kauj Ruam 3: Sib Sau Cov Khawm

Sib dhos khawm
Sib dhos khawm
Sib dhos khawm
Sib dhos khawm
Sib dhos khawm
Sib dhos khawm

Xov khawm lub xov hlau hla lub qhov. Ua cov phom kua nplaum kub kom khawm lub pob rau nws qhov chaw los ntawm muab cov kua nplaum tso rau ntawm cov ntoo hauv qab lub pob. siv cov kua nplaum kub los txuas cov xov hlau mus rau lub ces kaum ntawm lub txee. Cov khawm nrog daim ntawv lo nplaum.

Kauj Ruam 4: Cuab Yeej thiab Sib Sau Cov Photoresistor

Solder thiab Sib Sau Cov Photoresistor
Solder thiab Sib Sau Cov Photoresistor
Solder thiab Sib Sau Cov Photoresistor
Solder thiab Sib Sau Cov Photoresistor
Solder thiab Sib Sau Cov Photoresistor
Solder thiab Sib Sau Cov Photoresistor

Laum ib lub qhov rau tus yees duab-resistor. Solder ob tus pin rau cov xov hlau thiab npog nrog cov cua sov ua kom sib cais. Lub xov hlau los ntawm lub qhov thiab ruaj ntseg nrog cov kua nplaum kub. Kuv txawm tias tau muab lub voj yas yas pob tshab me rau nws, muab nws ua kom tiav.

Kauj Ruam 5: Txuas lub Thawv thiab Kaw Cov LED Sawb

Txuas lub thawv thiab lo rau LED Sawb
Txuas lub thawv thiab lo rau LED Sawb
Txuas lub thawv thiab lo rau LED Sawb
Txuas lub thawv thiab lo rau LED Sawb

Nthuav lub thawv rau ntawm ntug ntawm lub txee. Kuv xaiv los muab lub npog hloov ntawm lub thawv nws tus kheej, kom yooj yim teeb tsa. Kuv glued LED sawb nyob ze ntawm lub txee ntug. nyiam kom nyob twj ywm ntawm lub tab thiab cov hlua LED tseem tsis muaj kua nplaum. Yog li kuv yuav tsum siv cov kua nplaum nrawm dua.

Kauj Ruam 6: Sib dhos Cov Txuas Hluav Taws Xob

Sib dhos Cov Txuas Hluav Taws Xob
Sib dhos Cov Txuas Hluav Taws Xob
Sib dhos Cov Txuas Hluav Taws Xob
Sib dhos Cov Txuas Hluav Taws Xob

Siv 2 lub xov hlau txuas rau lub tshuab txuas hluav taws xob, thiab npog qhov nthuav tawm nrog cov cua sov ua kom sib cais. Qhov lub qhov nyob ze ntawm lub npov ntug thiab txuas tus txuas.

Kauj Ruam 7: Tus Kheej Kis Tus Kheej rau AtTiny85

Cov Kws Lij Choj rau AtTiny85
Cov Kws Lij Choj rau AtTiny85
Cov Kws Lij Choj rau AtTiny85
Cov Kws Lij Choj rau AtTiny85
Cov Kws Lij Choj rau AtTiny85
Cov Kws Lij Choj rau AtTiny85
Cov Kws Lij Choj rau AtTiny85
Cov Kws Lij Choj rau AtTiny85

Kuv tau siv tus lej txuas rau lub rooj tsav xwm txhim kho es tsis txhob siv tag nrho cov xov hlau ncaj qha rau nws, yog tias kuv xav rov sau dua nws tom qab. Kuv tsis tau siv tus lej pin 3, 4 vim lawv tsis siv rau hauv daim ntawv thov no, thiab tau siv rau qhov program AtTiny85 nrog USB boot loader. Kuv tau siv tus lej txuas 5 (rov pib dua) thiab Vin rau cov khoom siv ruaj khov txawm tias tsis siv lawv.

Kauj Ruam 8: Sib dhos PCB

Sib dhos PCB
Sib dhos PCB
Sib dhos PCB
Sib dhos PCB
Sib dhos PCB
Sib dhos PCB

Kuv tau txiav 12x13 square ntawm prototype PCB. Drilled ob lub qhov rau ntsia hlau tab sis thaum kawg tsis siv lawv. Marked txoj haujlwm ntawm lub taub hau.

Kauj Ruam 9: Txuas AtTiny85

Txuas AtTiny85
Txuas AtTiny85
Txuas AtTiny85
Txuas AtTiny85

Program AtTiny85 thiab txuas nws mus rau PCB. Tom qab ntawd muab txhua yam tso rau hauv lub thawv thiab muab txuas rau lub hau uas twb tau muab ntsia rau ntawm lub txee.

Kauj ruam 10: Ua tiav

Txuas lub zog hluav taws xob. Qhov kov luv luv tig lub LEDs rau thiab tawm. Kov tas li hloov lub teeb pom kev ntawm LED. Qhov duab-tiv thaiv tau siv los txhawm rau paub qhov txawv nruab hnub los ntawm hom tsaus ntuj. Thaum tsaus ntuj tig lub teeb ntawm pib ntawm qhov sov sov lub teeb, thaum nruab hnub tig nws rau yuav pib ntawm qhov siab.

Pom zoo: