Cov txheej txheem:

ITTT LED: 3 Kauj Ruam
ITTT LED: 3 Kauj Ruam

Video: ITTT LED: 3 Kauj Ruam

Video: ITTT LED: 3 Kauj Ruam
Video: Lady Gaga - Alejandro (Official Music Video) 2024, Kaum ib hlis
Anonim
Image
Image

Nov yog lub tsev kawm ntawv txoj haujlwm rau chav kawm hu ua Yog Yog Li No Thiab. Lub hauv paus ntawm tsev kawm ntawv txoj haujlwm yog ua kom muaj kev sib tham sib tham nrog kev siv hluav taws xob feem ntau yog Arduino Uno. Tom qab ncua sijhawm ntawm kev xav txog kuv tau txiav txim siab ua qee yam nrog LED. Hauv cov kauj ruam hauv qab no kuv yuav piav qhia yuav ua li cas kuv lub hom phiaj uas tseem nyob rau theem pib tau ua.

Txaus siab rau:)

Kauj Ruam 1: Sau Cov Khoom Siv

Muab tso ua ke
Muab tso ua ke

Txhawm rau ua ITTT L. E. D. koj xav tau:

  • 4 LED teeb
  • 3 lub qhov taub
  • 7 resistors
  • Arduino Ib
  • 16 cev
  • 1 khob cij

Kauj ruam 2: Muab tso ua ke

Yog tias koj muaj txhua yam kuv tau hais hauv Kauj Ruam 1 koj tuaj yeem pib ua ke nrog koj li ITTT L. E. D.

Cov duab kuv ntxiv rau theem no qhia yuav ua li cas txhua yam yuav tsum tau muab tso rau. Yog tias koj tso tej yam txawv ntawm Arduino cov cai los ntawm cov kauj ruam tom ntej yuav tsis ua haujlwm.

  1. Koj tuaj yeem pib nrog muab cov nyees khawm thiab LED tso rau ntawm lub khob cij.
  2. Tom qab ntawd muab xaim los ntawm v5 rau ntawm Arduino ntawm + sab ntawm lub khob cij.
  3. Txhawm rau ua kom tiav lub voj voog koj yuav tsum tau xaim hlau los ntawm gnd ntawm Arduino mus rau - ntawm lub khob cij.
  4. Cov LED yuav tsum tsis txhob muab tus nqi ncaj qha ncaj ncees txij li koj yuav tsum tau tswj hwm txawm tias cov nyees khawm. Hloov chaw koj siv 4 xov hlau los txuas lawv rau - ntawm lub khob cij.
  5. Txhawm rau txuas LED lub zog koj xav tau lwm 4 xov hlau thiab 4 tus tiv thaiv. Koj txuas 8, 9, 10 thiab 11 rau LED qhov sib xws thiab tom qab ntawd siv cov resistors txhawm rau txuas tus gab thiab txuas rau hauv Circuit Court.
  6. Rau cov nyees khawm koj xav tau 6 xov hlau. Thawj peb yuav mus los ntawm + mus rau txhua khawm raws ntawm lub khob cij. Qhov no yog lub zog rau ob lub khawm thiab cov LED koj xav qhib nrog cov nyees khawm. Tom qab ntawd koj siv lwm qhov peb txuas los txuas cov nyees khawm rau koj Arduino. Siv 3, 4 thiab 5 rau qhov no. Nco ntsoov tias ntu ntu tseem ceeb vim tias nws yuav txiav txim siab seb LED tau qhib nrog lub pob twg.
  7. Thaum kawg koj yuav tsum siv koj 3 tus tiv thaiv ntxiv los txuas peb lub khawm rau - ntawm lub khob cij

Thiab tam sim no koj muaj qee cov xov hlau, tiv thaiv, LED's thiab cov nyees khawm txuas rau Arduino.

Kauj Ruam 3: Coding Txoj Cai

Tam sim no koj sau (luam) koj cov cai. Koj xav tau Arduino cov cuab yeej uas koj tuaj yeem rub tawm dawb los ntawm lawv lub xaib.

Arduino siv hom C.

Cov cai tau suav nrog hauv daim ntawv pdf. Thaum koj muaj cov cai teeb tsa thiab koj nias lub pob upload hauv koj li Arduino cov cuab yeej voila koj li LE ua tiav. Tam sim no koj tuaj yeem qhib 4 LED's nrog cov nyees khawm hla koj Arduino. Nco ntsoov qhov LED thib plaub tsuas tuaj yeem qhib tau los ntawm nias txhua lub nyees khawm ib zaug.

Pom zoo: