Cov txheej txheem:

Arduino Nano LED Sawb Cat Qho Khoom Ua Si: 6 Kauj Ruam
Arduino Nano LED Sawb Cat Qho Khoom Ua Si: 6 Kauj Ruam

Video: Arduino Nano LED Sawb Cat Qho Khoom Ua Si: 6 Kauj Ruam

Video: Arduino Nano LED Sawb Cat Qho Khoom Ua Si: 6 Kauj Ruam
Video: Sensors for Medical Diagnostics | Engineering Speaker Series 2024, Hlis ntuj nqeg
Anonim
Arduino Nano LED Sawb Cat Qho Khoom Ua Si
Arduino Nano LED Sawb Cat Qho Khoom Ua Si
Arduino Nano LED Sawb Cat Qho Khoom Ua Si
Arduino Nano LED Sawb Cat Qho Khoom Ua Si
Arduino Nano LED Sawb Cat Qho Khoom Ua Si
Arduino Nano LED Sawb Cat Qho Khoom Ua Si

Nov yog Cov Lus Qhia rau kev tsim LED strip miv qho khoom ua si. Ib qho LED yuav khiav raws qhov ntev ntawm cov hlua LED rau miv kom caum. Qhov no txhais tau tias txoj haujlwm no tuaj yeem siv tau yooj yim los ntawm Arduino 5V tus pin. Cov xim ntawm LEDs tuaj yeem hloov pauv nrog lub pob qhov rooj hauv lub hau ntawm lub thawv uas muaj Arduino. Lub pob qhov rooj hloov pauv mus thoob plaws lub ntsej muag (xiav-ntshav-liab-txiv kab ntxwv-daj-ntsuab-xiav).

Khoom siv

  • LED sawb WS2812B lossis lwm hom kev txhawb los ntawm FastLED lub tsev qiv ntawv.
  • Arduino code (cat_toy_v6.ino)
  • 3D-luam Arduino lub thawv los ntawm Thingiverse:
  • Arduino Nano Cov
  • Cov ntsia hlau me me (M1.2 4mm lossis zoo sib xws)
  • Potmeter WH148 yog
  • 3 xaim 9 cm ntev los nqai tus pas ntsuas cua mus txog rau Arduino

Cov Cuab Yeej:

  • Soldering hlau
  • Hlau txiav
  • Screwdriver rau cov ntsia hlau me me

Kauj Ruam 1: Kauj Ruam 1: Txuas LED Sawb rau Lub Thawv

Kauj Ruam 1: Txuas LED Sawb rau Lub Thawv
Kauj Ruam 1: Txuas LED Sawb rau Lub Thawv
Kauj Ruam 1: Txuas LED Sawb rau Lub Thawv
Kauj Ruam 1: Txuas LED Sawb rau Lub Thawv
Kauj Ruam 1: Txuas LED Sawb rau Lub Thawv
Kauj Ruam 1: Txuas LED Sawb rau Lub Thawv

1. Koj cov hlua LED yuav tsum tuaj nrog qee cov xov hlau uas twb tau muag lawm. Koj tsuas xav tau 5V, GND, thiab Din (saib daim duab). Koj tsis xav tau cov khoom siv hluav taws xob sib cais.

2. Xaub kab txaij rau hauv lub thawv me ntsis. Nqa tus khawm me me thiab ntsia hlau hla lub hlua kom ruaj ntseg kom zoo. Lub hom phiaj ntawm txoj hlua khi yog txhawm rau tiv thaiv cov hlua los ntawm rub los ntawm lub thawv xov hlau thiab txhua yam.

Kauj Ruam 2: Kauj Ruam 2: Soldering Sawb rau Arduino

Kauj Ruam 2: Soldering Sawb rau Arduino
Kauj Ruam 2: Soldering Sawb rau Arduino
Kauj Ruam 2: Soldering Sawb rau Arduino
Kauj Ruam 2: Soldering Sawb rau Arduino

1. Presolder qhov kawg ntawm cov xov hlau kom nws yooj yim dua rau lawv txuas rau Arduino.

2. Pib nrog 5V xaim (liab). Poke nws dhau ntawm Arduino 5V qhov los ntawm sab nraub qaum mus rau pem hauv ntej. Ua kom ntseeg tau tias muaj cov xaim me me nyob ntawm xub ntiag vim tias peb yuav xav tau txuas lub 5V xaim hluav taws xob ntawm lub lauj kaub rau tus pin no ib yam. Ua ntawv thov me ntsis ntawm cov laug thiab txheeb xyuas seb koj puas muaj qhov txuas zoo nkauj ci ci (saib daim duab 1).

3. Txuas nrog cov xaim av (dawb). Qhov no nkag mus rau hauv GND qhov. Thov me ntsis ntawm cov laug.

4. Ua kom tiav nrog Din hlau (ntsuab). Qhov no nkag mus rau D3 qhov. Thov me ntsis ntawm cov laug.

5. Ua tib zoo khoov cov xov hlau kom haum rau hauv qab Arduino kom yooj yim thiab nias Arduino nyob hauv nws qhov chaw (saib daim duab 2).

6. Ntsia Hlau hauv Arduino hauv 2 qhov chaw. Koj yuav tsum tau ntswj cov ntsia hlau no 2 tom qab. Xwb, koj tuaj yeem tso Arduino tawm xwb. Kuv nyiam kom nws ruaj ntseg rau thawj ntu ntawm qib 4.

Kauj Ruam 3: Kauj Ruam 3: Ruaj Ntseg Potmeter

Kauj Ruam 3: Ruaj Ntseg Potmeter
Kauj Ruam 3: Ruaj Ntseg Potmeter
Kauj Ruam 3: Ruaj Ntseg Potmeter
Kauj Ruam 3: Ruaj Ntseg Potmeter

Ntxig potmeter rau hauv lub hau raws li tau hais los saum no thiab tuav lub ceg (saib daim duab 2).

Kauj Ruam 4: Kauj Ruam 4: Txuas Potmeter rau Arduino

Kauj Ruam 4: Txuas Potmeter rau Arduino
Kauj Ruam 4: Txuas Potmeter rau Arduino
Kauj Ruam 4: Txuas Potmeter rau Arduino
Kauj Ruam 4: Txuas Potmeter rau Arduino

1. Txiav koj 3 lub xov hlau kom ntev (9 cm) thiab hle ob qho kawg.

2. Presolder qhov kawg.

3. Muab tus laug laug sab laug ntawm lub lauj kaub rau ib qho ntawm cov xov hlau (liab hauv daim duab). Solder lwm qhov kawg ntawm cov xaim no mus rau 5V xaim tawm ntawm sab xub ntiag ntawm Arduino.

4. Yog tias tsim nyog: unscrew Arduino.

5. Muab tus pas nrig tso rau sab xis ntawm lub lauj kaub rau lwm qhov ntawm cov xov hlau (txho hauv daim duab). Siv lwm qhov kawg ntawm cov xaim no mus rau GND qhov uas tseem tsis tau pub dawb ntawm Arduino. Khaws cov xaim rau hauv lub qhov ntawm sab xub ntiag mus rau tom qab.

6. Siv tus pas nruab nrab ntawm tus pas ntsuas mus rau qhov kawg ntawm cov xov hlau. Solder lwm qhov kawg rau A0 qhov ntawm Arduino. Khaws cov xaim rau hauv lub qhov ntawm sab xub ntiag mus rau tom qab.

7. Ntsia Arduino nyob rau hauv qhov chaw siv 2 tus ntsia hlau.

Nov yog qhov nyuaj tshaj plaws! Koj tau ua tiav ntau dua ib nrab!

Kauj Ruam 5: Kauj Ruam 5: Ntsuam Xyuas Koj Sawb

Kauj Ruam 5: Ntsuam Xyuas Koj Sawb
Kauj Ruam 5: Ntsuam Xyuas Koj Sawb

Tam sim no yog lub sijhawm zoo los ntsuas koj cov hlua LED. Mus tom ntej thiab xa cov duab kos rau koj Arduino. Yog tias koj tsis tau ua li ntawd ua ntej, teeb tsa lub tsev qiv ntawv FastLED. Nov yog cov lus qhia yooj yim:

Xyuas kom koj nkag mus rau hom LED raug thiab kho tus lej ntawm LEDs ntawm koj daim kab xev hauv daim duab.

Yog tias koj xav tau, koj tuaj yeem ua si ib puag ncig me ntsis nrog qhov sib txawv hauv daim duab kos thiab saib lawv ua dab tsi. Koj tuaj yeem siv cov lus hauv kab lus los pab koj nrog.

Kauj Ruam 6: Kauj Ruam 6: Ua Kom tiav

Kauj Ruam 6: Ua tiav
Kauj Ruam 6: Ua tiav
Kauj Ruam 6: Ua tiav
Kauj Ruam 6: Ua tiav
Kauj Ruam 6: Ua tiav
Kauj Ruam 6: Ua tiav

Yog tias koj daim duab kos ua haujlwm, mus tom ntej thiab ntsia hlau hauv 2 qhov kawg. Qhov no tseem ceeb vim tias Arduino muaj kev nyab xeeb zoo yuav muaj zog dua rau usb cable raug ntxig thiab tshem tawm.

Ua tib zoo ntswj rau hauv cov kab hluav taws xob hauv lub lauj kaub thiab ua tib zoo kaw lub hau. Nco ntsoov tias tsis muaj cov kab hluav taws xob hauv lub xov tooj!

Yog tias koj ntseeg siab tias cov xaim hluav taws xob txhua tus nyob hauv lawv txoj haujlwm tsim nyog, khov nias ntawm lub hau. Nws yuav tsum kaw kaw. Thawj ob peb zaug nws pab ua lub kaum sab xis ntev dua ntawm lub hau thiab tom qab ntawv nyem rau ntawm lwm sab ntawm lub hau.

Fais fab Arduino los ntawm kev txuas lub mini lossis micro usb cable (nyob ntawm koj hom Arduino) rau Arduino thiab lub xov tooj them nyiaj, piv txwv.

Koj ua tiav lawm! Txaus siab rau saib koj tus miv caum LED!

Pom zoo: