Cov txheej txheem:

Lego Teeb Pom Kev Hmo Hmo: 3 Kauj Ruam
Lego Teeb Pom Kev Hmo Hmo: 3 Kauj Ruam

Video: Lego Teeb Pom Kev Hmo Hmo: 3 Kauj Ruam

Video: Lego Teeb Pom Kev Hmo Hmo: 3 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Lego Compatible Night Light
Lego Compatible Night Light

Txoj haujlwm no yog lub teeb hmo ntuj nrawm uas siv Lunchbox Electronics PTH LED Cib los qhia tawm qee qhov koj nyiam Legos thiab tsis tas yuav siv tshuaj yaj yeeb! Cia peb pib.

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Rau lub thawv kom tuav lub teeb hmo ntuj, Kuv tau siv lub thawv ntim khoom los ntawm Michael's, lawv pheej yig heev thiab hloov pauv tau yooj yim. Lawv kuj tuaj ntau ntau xim sib txawv yog li koj tuaj yeem hloov kho koj tus kheej!

Txhawm rau tso cai rau LEDs thiab photoresistor los zaum ntsiag to nyob saum lub npov, koj yuav tsum khawb qhov hauv lub thawv rau lawv ob txhais ceg kom haum. Kuv pom tias tus ntiv tes xoo ua haujlwm zoo kawg nkaus. Nco ntsoov ntsuas thiab ua cim tsis meej kom ntseeg tau tias txhua yam sib nrug kom raug!

Tom ntej no, koj yuav tsum tau txuas daim ntawv qhia zaub mov rau sab hauv qab ntawm lub hau uas siv cov nplaum thaub qab. Sim ua nruab nrab nws ntau li ntau tau raws li cov ceg LED ntawm txhua qhov kawg tsuas yog nyuam qhuav ncav cuag cov npoo ntawm pawg thawj coj saib.

Plug rau hauv LED ob txhais ceg txhua tus hauv nws tus kheej kem thiab sau tseg qhov twg yog qhov ntev dua thiab qhov twg yog luv dua. Cov ceg ntev dua yog qhov zoo thiab ceg luv dua yog qhov tsis zoo. Txhawm rau kom paub tseeb tias Arduino paub tias nws tsaus ntuj li cas, peb yuav tsum tau ntxiv rau hauv tus kws yees duab. Txij li nws tau pom lub teeb nws yuav xav kom nyob deb ntawm LEDs tab sis tseem nyob hauv qhov chaw qhib. Kuv pom tias lub hauv ntej ntawm lub thawv ua haujlwm zoo tshaj plaws.

Tus photoresistor no xav tau tus tiv thaiv nyob rau hauv nrog nws tso cai rau Arduino qhia qhov twg yog lub teeb thiab qhov tsaus ntuj. Kuv siv 1 kOhm resistor. Muab qhov tiv thaiv kab no tso rau hauv kab nrog koj lub photoresistor thiab txuas ob sab ntawm lub khob cij.

Txhua LED kuj xav tau nws tus kheej resistor, thiab txij li thaum kuv siv tag nrho cov ntsuab LEDs kuv siv 100 Ohm resistors kom ua tiav qhov kaj zoo. Siv cov xov hluav taws xob sib txuas nruab nrab ntawm cov tiv thaiv no txhawm rau txuas tag nrho cov ceg luv ntawm LEDs ua ke raws li qhia hauv daim duab hauv qab no.

Txhawm rau kom ntseeg tau tias cov khoom siv hlau tsis kov ib leeg, muab Arduino thiab daim ntawv lo rau ntawm ob sab ntawm lub npov. Tom ntej no, txiav tawm qhov hauv lub thawv rau Arduino ntsaws kom lo tawm. Lub rooj tsavxwm tuaj yeem siv los ntawm USB lossis DC ntsaws.

Thaum kawg, peb yuav tsum tau txuas Arduino siv cov xov hluav taws xob. Daim duab saum toj no qhia qhov sib txuas mus qhov twg.

Kauj ruam 2: Software

Lub Software
Lub Software

Kom paub tseeb tias txhua yam ua haujlwm raws li nws yuav tsum tau, tuav tus lej Arduino los ntawm GitHub thiab xa nws mus rau pawg thawj coj. Screenshots ntawm uploading cov cai tau qhia hauv qab no.

Cov software no siv ob qhov sib txawv los txiav txim siab thaum twg yuav tsum tawm thiab thaum twg yuav tsum yog: HIGHBOUND thiab LOWBOUND. Cov no yuav zoo li cov lej tsis raug, tab sis qhov tseeb lawv yog qhov Arduino pom thaum nws tab tom khaws cov ntaub ntawv los ntawm tus kws yees duab. Yog tias koj ntsib teeb meem nrog lub teeb tig lossis tua thaum lawv tsis tsim nyog, qhib lub koos pij tawj saib thiab pom tus lej twg koj tau txais ces fiddle nrog cov ciam teb rau koj nyiam.

Kauj ruam 3: Ntxiv Legos

Ntxiv Legos
Ntxiv Legos

Khaws ntawm koj cov khoom siv Lego uas koj nyiam tshaj plaws thiab qhia tawm!

Zoo siab hmo ntuj-teeb pom kev zoo!

Pom zoo: