Cov txheej txheem:

LED Tsom iav: 12 Kauj Ruam
LED Tsom iav: 12 Kauj Ruam

Video: LED Tsom iav: 12 Kauj Ruam

Video: LED Tsom iav: 12 Kauj Ruam
Video: Daim Av 3 Nti tsom xyooj nkauj tshiab 2020 2024, Kaum ib hlis
Anonim
Image
Image

Kuv paub, kuv paub … nws tseem tsis yog Lub Caij Ntuj Sov !! Txawm li cas los xij, tsis txhob cia qhov ntawd txwv tsis pub koj ua qhov haujlwm no! Raws li qhov no yog kuv thawj qhov kev qhia, Kuv yuav txaus siab heev rau cov lus qhia lossis lus pom uas koj hais mav tuaj yeem muab rau kuv.

Tsis ntev los no, Kuv tau hnov txog LED looj tsom iav dub thiab tau ntxim nyiam … txog thaum kuv pom tus nqi! Nov yog qhov uas tau tsav kuv los tsim kuv tus kheej tus nqi qis ntawm looj tsom iav dub. Tag nrho txhua qhov, cov ntsiab lus ntawm cov looj tsom iav dub LED no yog kom pom cov qauv txias uas tuaj yeem npaj ua ntej lossis sib txawv nrog kev ntaus nkauj.

NCO TSEG: Txoj haujlwm no yuav siv yuav luag txhua tus pin ntawm arduino, yog li … yog lawm:)

Koj tseem nyob ntawm no? Yog lawm zoo! Cia peb pib !!

Ib qho ntxiv, txoj haujlwm no nyuaj heev, vim nws yooj yim hauv lub tswvyim, tab sis nyuaj rau siv. Yog tias koj txiav txim siab ua qhov no, Kuv xav qhia koj muab koj tus kheej ib hnub lossis ob hnub.

Kauj Ruam 1: Cheeb Tsam:

  • 1 x Arduino Nano
  • 1 x Mini-Breadboard
  • 18 x LEDs
  • 18x 220 Ohm Resistors (Kuv xav txiav txim siab ntxiv, rau qee yam yuav ua tsis raug, thiab koj yuav kawg tshuab LED)
  • 1x Microphone Breakout
  • 1x Yob ntawm Insulated Hlau
  • 1x Swb-Hloov
  • 1 x Li-po Battery
  • 1x Sawb ntawm cov xaim tsis-insulated

Kauj Ruam 2: Cov Cuab Yeej

  • Soldering Hlau
  • Soldering Hlau
  • Phom phom
  • Kua nplaum
  • Hlau Cutter
  • Hlau Stripper
  • Daim kab xev
  • Twist Ties
  • Cov nab kuab (Yeem xaiv)

Kauj Ruam 3: Xeem cov LEDs

Glueing cov LEDs
Glueing cov LEDs

Thawj qhov uas yuav tsum ua yog TEST ALL THE LEDS. Tiag tiag, Kuv tsis tuaj yeem hais qhia qhov tseem ceeb ntawm kev sim txhua qhov kev coj ua ntej. Kuv tau ua qhov yuam kev no, thiab yuav tsum pib dua! Txhawm rau ntsuas cov leds, ua qhov yooj yim arduino Circuit nrog tus coj thiab 220 ohm resistor. PS, tsis quav ntsej cov dhia thiab cov khoom nyob hauv keeb kwm yav dhau ntawm daim duab.

Kauj Ruam 4: Kaw cov LEDs

Txhawm rau lo cov leds, ua tib zoo tuav lawv los ntawm sab-los ntawm sab thiab lo cov xaim ib feem ntawm cov coj mus rau sab saum toj kawg nkaus ntawm lub looj tsom iav dub. Thaum ua kua nplaum, ceev faj tias cov kua nplaum tsis kov koj cov ntiv tes; nws yuav hlawv! Tom qab cov kua nplaum tau qhuav, khoov cov xov hlau luv ntawm tus coj, kom nws nyob ntawm 60 degree kaum sab xis txheeb ze rau kab rov tav. Ua qhov no rau tag nrho kaum yim LEDs. Thaum koj ua tiav, sim tag nrho lawv.

Cov kua nplaum yuav tawv dhau ntawm cov xuaj moos, txog thaum nws nyuaj heev kom tshem tawm, yog li yog koj tau ua yuam kev, Kuv yuav qhia kom kho nws, sai dua, tsis yog tom qab. NCO TSEG: Cov hlau txhuam tuaj yeem ua kom sov kua nplaum rov qab rau nws daim ntawv ua kua, txawm li cas los xij, Kuv paub zoo tias nws tuaj yeem ua rau cov hlau puas. Koj Tau Ceeb Toom!

Kauj Ruam 5: Soldering Tshooj 1:

Soldering Tshooj 1
Soldering Tshooj 1

Thawj qhov kev txiav txim ntawm kev lag luam nws coj ib txoj hlua hlau uas tsis muaj rwb thaiv tsev, thiab txiav nws mus rau qhov ntev ntawm looj tsom iav dub. Tom qab ntawd, muab nws tso rau ntawm txhua tus pin hauv av ntawm cov leds. Txij li thaum tsis muaj rwb thaiv tsev ntawm cov xaim, nws yuav tau txais VERY, VERY, VERY kub. Ceev faj thiab siv cov kais dej kom tuav cov xaim nyob hauv qhov chaw. Txuas qhov kawg ntawm cov xaim uas tsis muaj insulated rau GND.

Txij ntawm no mus, koj lub tsom iav yuav tsum zoo ib yam li daim duab saum toj no.

Kauj Ruam 6: Arduino

Qhov Arduino
Qhov Arduino

Lob tus arduino nano, thiab lub khob cij me me. tso cov arduino rau ntawm daim ntawv qhia zaub mov. Tom qab ntawd, siv cov roj hmab txuas los txuas rau lub looj tsom iav dub. Los ntawm qhov ntawd, ntxig rau 3.7v li-po roj teeb sab xis tom qab lub khob cij. Ntxig ib qho swb-hloov ntawm lub khob cij thiab xaim nws kom nws tuaj yeem tig lub arduino qhib thiab tawm. Yog tias koj lub xov tooj tau txuas nrog kom raug, koj tuaj yeem ntsaws ncaj qha rau hauv lub khob cij. Qhov laj thawj kuv tsis muab cov ntaub ntawv ntau ntxiv, vim tias feem ntau cov hloov pauv tshwj xeeb, thiab koj cov nyeem feem ntau yuav tsis muaj qhov hloov pauv ib yam li kuv.

Kauj Ruam 7: Soldering Tshooj 2:

Soldering Tshooj 2
Soldering Tshooj 2

Peb qhov kev txiav txim tom ntej ntawm kev lag luam yog txhawm rau tiv thaiv cov neeg tawm tsam! Tshwj tsis yog tias koj muaj cov leds uas yuav tsis tshuab yog tsav nrog 5V cov khoom siv (yog li, tom qab hla cov kauj ruam no), koj yuav tsum txuas cov resistors rau lub teeb.

Sijhawm rau qee Lej! xav tias tam sim no qhov siab tshaj plaws uas tuaj yeem ntws los ntawm tus coj yog nyob ib puag ncig 20mA, thiab peb tab tom muab 5v rau cov coj, peb tuaj yeem siv ohm txoj cai, V = IR, los daws qhov nqi ntawm cov resistors 250 ohms. Tus kheej, Kuv nyiam siv 220 ohms, vim nws muab qhov ci zoo rau koj, tab sis nws tsis muaj teeb meem ntau npaum li cas.

Solder ib sab ntawm cov neeg tawm tsam mus rau qhov kawg ntawm tus coj, thiab rov ua qhov no 18 zaug. Los ntawm qhov ntawd, tiv thaiv txhua qhov thaiv nrog kab xev. Qhov no yog qhov tsim nyog, yog li yog tias lawv tuaj ntsib, cov xov tooj liab liab yuav tsis tuaj sib ntsib thiab ua rau luv.

Los ntawm qhov ntawd, lob koj cov yob ntawm cov xaim hluav taws xob. Peb yuav siv qhov no los ua kev cai sib txuas ntev los txuas peb cov arduino rau lub teeb. Txiav thiab hle cov xov hlau kom txog thaum lawv tuaj yeem ncav cuag cov leds, tab sis, tib lub sijhawm, lawv tsis xoob heev. Thaum koj ua tiav, koj yuav tsum tau txais qee yam uas zoo li daim duab saum toj no.

Kauj Ruam 8: Txuas kab

Thaiv
Thaiv

Ua raws cov txheej txheem pom saum toj no txhawm rau xaim tag nrho cov leds. Tom qab ntawd, Kuv xav qhia koj kom ua ob peb txoj haujlwm yooj yim txhua yam ntawm lub teeb kom ntseeg tau tias lawv txhua tus ua haujlwm tau zoo. Tom qab ntawd, siv txoj hlua khi kom cov xov hlau nyob hauv qhov chaw.

Kauj ruam 9: Debugging

Debugging
Debugging

Muaj feem yog tias ib qho ntawm cov leds tsis ua haujlwm zoo; tsis txhob txhawj, Kuv tau txais koj npog! Ua ntej tshaj, txheeb xyuas tias cov coj tau muab muag kom raug. Qhov kuv nyiam ua yog siv cov tshuaj txhuam me ntsis thiab tom qab ntawd kuaj nws. Tom qab ntawd, txheeb xyuas cov thaiv thiab xyuas kom tseeb tias txuas nrog tus pin raug, thiab nws tau qhib. Thaum kawg, ntsuas tus coj nws tus kheej, thiab xyuas seb nws puas tseem ua haujlwm. Hauv nws tsis yog, Kuv vam tias koj muaj hmoo ntawm koj qhov kev mob siab rau hloov nws.

Kauj ruam 10: Lub Microphone

Lub Microphone
Lub Microphone

Tam sim no rau Microphone! Kuv muaj lub microphone tawg uas txuas rau tus pin analog 7, 5V, thiab GND. Nws yog qhov yooj yim heev rau xaim, koj tuaj yeem yooj yim nqa qee tus qauv dhia thiab txuas lawv mus rau arduino thiab lub microphone. Kuv glued lub mic rau sab sab nraud ntawm arduino, txawm tias qhov hnyav tawm. Kuv yuav qhia tias koj ua tib yam.

Kauj ruam 11: Programming

Cov cai yog yooj yim heev, thiab kuv tau muab ntau cov lus los pab koj. Thaum koj xa cov cai, nco ntsoov tias koj lub rooj tsav xwm tau teeb tsa rau nano, thiab koj tab tom siv txoj cai COM chaw nres nkoj. Cov cai muaj ntau tus qauv, ntxiv rau cov cai rau cov suab paj nruag sib npaug.

Kauj Ruam 12: KAWG

KAWG
KAWG

Ua tsaug rau lub tsev thiab/lossis nyeem txoj haujlwm no. Yog tias koj tuaj yeem muab qee cov lus qhia rau kuv hauv kab lus, uas yuav zoo siab heev. Yog tias koj xav tau kev pab, tsis txhob ntshai nug hauv cov lus, vim kuv yuav teb sai li sai tau.

Cov Hom Phiaj Yav Tom Ntej: Tom qab so so zoo, Kuv npaj yuav npaj qee qhov qauv txias ntawm tsom iav dub.

Pom zoo: