Cov txheej txheem:

Christmas Star Nrog Arduino thiab RGB LEDs: 5 Cov Kauj Ruam (nrog Duab)
Christmas Star Nrog Arduino thiab RGB LEDs: 5 Cov Kauj Ruam (nrog Duab)

Video: Christmas Star Nrog Arduino thiab RGB LEDs: 5 Cov Kauj Ruam (nrog Duab)

Video: Christmas Star Nrog Arduino thiab RGB LEDs: 5 Cov Kauj Ruam (nrog Duab)
Video: How to Care For Poinsettias (And Make Them Bloom Next Year) 2024, Kaum ib hlis
Anonim
Image
Image
Сделай Сам - Рождественская звезда
Сделай Сам - Рождественская звезда
Christmas Star Nrog Arduino thiab RGB LEDs
Christmas Star Nrog Arduino thiab RGB LEDs

Nyob zoo! Peb yog Arduino Novosibirsk Zej Zog los ntawm qhov tob khov Siberia. Txhawm rau sov peb tus kheej me ntsis peb txiav txim siab ua kom zoo nkauj ci ntsa iab & ntsais muag Christmas hnub qub. Nco ntsoov saib daim vis dis aus!

Kauj Ruam 1: Cov Khoom, Cov Khoom thiab Cov Cuab Yeej

Txhawm rau ua lub hnub qub Christmas koj xav tau:

Qhov:

  1. Arduino Nano nrog TSIS tau siv tus pinheaders
  2. PLS-40R kaum tus pinheaders
  3. Chained RGB LEDs nrog cov sib cais sib cais thiab Ib qho Anode

Cov ntaub ntawv:

  1. 3 hli tuab plywood
  2. Cov paj ntaub dawb
  3. Ntoo ntoo

Cov Cuab Yeej:

  1. Laser txiav
  2. Xim txhuam
  3. Nippers
  4. Soldering hlau
  5. Soldering hlau
  6. PC lossis Mac rau program Arduino

Kauj Ruam 2: Tsim

Tsim
Tsim
Tsim
Tsim
Tsim
Tsim
Tsim
Tsim

Yeej, tsim ntawm peb lub hnub qub Christmas muaj peb daim ntawv plywood: pem hauv ntej, nruab nrab, nraub qaum:

  • Sab nraub qaum yog rau tuav Arduino Nano board.
  • Cov phaj nruab nrab yog rau tuav LEDs taub hau.
  • Phaj pem hauv ntej yog rau kev zoo nkauj.:)

Lwm qhov muaj qhov sib txuas sib txuas. Qhov nqaim yog rau kev sib txuas nruab nrab thiab daim phiaj rov qab. Qhov dav yog rau kev sib txuas sib txuas pem hauv ntej thiab nraub qaum.

Muaj.cdr thiab.dxf kos duab txuas rau laser txiav. Xav tias dawb siv nws.

Yog li, txiav cov ntu los ntawm plywood! Tom qab ntawd npog nws nrog cov ntoo ntoo, kom qhia lawv cov kev ntxhib los mos thiab ua rau lawv zoo li "ntoo" ntau dua. Tos kom lawv qhuav tawm.

Kauj Ruam 3: Soldering thiab Assembly

Soldering thiab Assembly
Soldering thiab Assembly
Soldering thiab Assembly
Soldering thiab Assembly
Soldering thiab Assembly
Soldering thiab Assembly
Soldering thiab Assembly
Soldering thiab Assembly

Ua ntej, ntxig tus pinheaders rau hauv lub qhov me me hauv qab phaj thiab txuas Arduino Nano rau lawv, tom qab ntawd muab tshuaj txhuam rau sab nraub qaum.

Qhov thib ob, nqa tsib LEDs thiab txiav cov hlau daj (Common Anode) los ntawm txhua tus ntawm lawv. Qhov no yog rau kev tswj hwm ntawm lub xeev tawm ntawm txhua LED sib cais. Solder LEDs 'cov xov hlau rau Arduino pins raws li tau piav qhia hauv cov phiaj xwm. Rau cov ntawd, uas tau tshaib plab nrog Fritzing software, muaj.fzz cov ntawv txuas nrog.

Thib peb, ntxig LEDs taub hau rau hauv qhov ntawm phaj nruab nrab (lawv haum nruj heev). Kua nplaum qhov sib txuas sib txuas ua ntej mus rau phaj nruab nrab, tom qab ntawd rov qab phaj. Tuav lawv ruaj khov ib ntus kom txog thaum cov kua nplaum ua ib daim ntawv cog lus.

Plaub, muab cov kua nplaum sib cuam tshuam rau sab pem hauv ntej thiab sab nraub qaum.

Tus tsim yog npaj txhij!

Kauj ruam 4: Code

Code
Code

Txuas Arduino Nano pawg thawj coj saib mus rau koj lub PC lossis Mac thiab pib Arduino IDE (lossis hloov kho lwm tus uploader koj siv).

Kuv tau sau qee qhov demo code. Txheeb tawm nplooj ntawv no github

Qhov muag pom muaj 6 yam sib txawv ntawm kev hloov lub teeb. Koj tuaj yeem ntxiv (almoust) txhua tus lej ntawm koj tus qauv thiab khiav lawv ntawm lub hnub qub.

Luam cov cai rau hauv tus editor thiab ntaus lub pob "Upload". Tos ib pliag kom txog thaum upload tiav thiab tau txais kev txaus siab los ntawm qhov kev ua si ntawm teeb.

Kauj ruam 5: Ua tiav

Image
Image
Сделай Сам - Рождественская звезда
Сделай Сам - Рождественская звезда

Koj ua tiav! Ua khoom plig rau koj tsev neeg lossis phooj ywg.

Lawv tuaj yeem rov sau dua qhov khoom plig raws li lawv xav tau.

Pom zoo: