Cov txheej txheem:

Tsis Siv Neeg Induction Hmo Teeb: 5 Cov Kauj Ruam
Tsis Siv Neeg Induction Hmo Teeb: 5 Cov Kauj Ruam

Video: Tsis Siv Neeg Induction Hmo Teeb: 5 Cov Kauj Ruam

Video: Tsis Siv Neeg Induction Hmo Teeb: 5 Cov Kauj Ruam
Video: TOP NEWS PLUS UPDATE * CALIFORNIA QHIB * XOV XWM TSHIAB HMO NO 04/06/2021 2024, Kaum ib hlis
Anonim
Tsis Siv Neeg Induction Hmo Teeb
Tsis Siv Neeg Induction Hmo Teeb

Qhov Kev Siv Hluav Taws Xob Tsis Siv Neeg Hmo Hmo no yog lub hauv paus ntawm https://www.instructables.com/id/Arduino-Light-Th… Kuv kuj ntxiv ntau LEDs nrog cov xim sib txawv.

Txoj Cai Txuas:

Arduino YT Txuas:

Kauj Ruam 1: Qhia thiab Cov Ntaub Ntawv

Taw qhia thiab khoom siv
Taw qhia thiab khoom siv

Siv tus kws yees duab los txiav txim qhov ci ci ntawm ib puag ncig. Tsuas muaj ob ntu sib txawv. Yog tias nws tsaus, ntau LEDs yuav ci; yog tias nws ci, tsawg dua LEDs yuav ci.

Cov khoom xav tau los tsim qhov Tsis Siv Neeg Induction Hmo Hmo Teeb

  • Arduino
  • Khoos phis tawj lossis them nyiaj
  • LED (dawb, ntsuab, daj, liab)
  • Photoresistance
  • Resistor
  • Daim kab xev
  • Duab los qhia
  • Hlau

Kauj Ruam 2: Thawj Ntu ntawm Tus Txheej Txheem

Thawj Ntu ntawm Tus Txheej Txheem
Thawj Ntu ntawm Tus Txheej Txheem

Koj tab tom npaj 7 LED (2 Dawb, 2 Ntsuab, 2 Daj, thiab 1 Liab), 23 xov hlau, thiab 8 tus tiv thaiv, thiab 1 Photoresistor.

  1. Tso 7 LEDs hauv Arduino raws li kev txiav txim. Los ntawm sab laug mus rau sab xis yog Dawb, Ntsuab, Daj, Liab.
  2. Tso 7 Resistors hauv cov LEDs sib xws.
  3. Tso 7 cov xov hlau nyob hauv LEDs coj mus rau Digital Pins. Los ntawm sab laug mus rau sab xis yog D8, D7, D6, D5, D4, D3, D2
  4. Ntxiv 1 Photoresistor ntawm sab xis, tseem ntxiv ib qho Blue Resistor, Cov Hluav Taws Xob Zoo rau A5, Cov Hluav Taws Xob Tsis Zoo rau A0)

Kauj Ruam 3: Coding Tshooj 1

Coding Tshooj 1
Coding Tshooj 1

Txog kev sau npe, peb xub ua ib feem ntawm LED mus rau Digital Pins. Tias peb paub tias LED twg txuas rau Digital Pin, thiab peb tuaj yeem teeb tsa yooj yim ntawm cov lej no. Thiab peb kuj teeb tsa cov tswv yim thiab tso tawm ntawm txhua LED.

Kauj Ruam 4: Coding Tshooj 2

Coding Tshooj 2
Coding Tshooj 2
Coding Tshooj 2
Coding Tshooj 2

Tom qab peb teeb tsa LED thiab lwm yam ntaub ntawv yooj yim thiab cov cai. Peb lub hom phiaj ntawm txoj haujlwm no yog txhawm rau ua kom pom kev lossis tsaus ntuj los ntawm ib puag ncig puag ncig ntawm Photoresistor vim tias kuv muaj tag nrho ntawm 7 LEDs, uas peb yuav hloov qhov xav tau ntawm txhua LED kom pom kev. Los ntawm ib puag ncig ntawm qhov ci tshaj plaws mus rau qhov tsaus ntuj, yog los ntawm Dawb LEDs, LEDs ntsuab, LED daj, thiab Liab LED kawg.

Kauj Ruam 5: Muab Coding Ua Ke

Ua ke Coding ua ke
Ua ke Coding ua ke

Tom qab ua tiav cov lej thiab txuas txhua qhov, peb ua ke nws ua ke thiab sim yog tias nws tuaj yeem ua haujlwm lossis tsis ua haujlwm. Thiab ua lub plhaub thiab ntim khoom kom saib nws zoo dua.

Pom zoo: