Cov txheej txheem:

DIY Arduino Yooj Yim LED Timer Circuit: 3 Kauj Ruam
DIY Arduino Yooj Yim LED Timer Circuit: 3 Kauj Ruam

Video: DIY Arduino Yooj Yim LED Timer Circuit: 3 Kauj Ruam

Video: DIY Arduino Yooj Yim LED Timer Circuit: 3 Kauj Ruam
Video: How to make a STEEL MARBLE TRACK with basic tools! step by step guide 2024, Kaum ib hlis
Anonim
Image
Image
Teeb tsa Circuit
Teeb tsa Circuit

Hauv Cov Lus Qhia Kuv tab tom yuav qhia koj yuav ua li cas koj tuaj yeem ua lub sijhawm sib tw yooj yim. Txhawm rau pib qhov haujlwm no kuv tau txais kuv txhais tes ntawm Cov Khoom Siv Pib Arduino Pib los ntawm Elegoo. Nov yog qhov txuas kom tau txais cov khoom siv no ntawm Amazon LINK. Koj tseem tuaj yeem ua tiav txoj haujlwm no nrog ntu uas koj twb muaj lawm tab sis kuv nyiam cov khoom siv thaum nws los nrog txhua yam koj xav tau thiab ntau dua.

Khoom siv

  • Arduino UAS
  • Mini Breadboard Cov
  • Liab LED
  • LED daj
  • Ntsuab LED
  • Xiav LED
  • Dawb LED
  • 10k ohm Resistor (Kuj)
  • 5 X 1k ohm Resistor
  • USB Programming Cable
  • Ob peb Cov Hluav Taws Xob Hluav Taws Xob

Kauj Ruam 1: Teeb Circuit

Teeb tsa Circuit
Teeb tsa Circuit
Teeb tsa Circuit
Teeb tsa Circuit
Teeb tsa Circuit
Teeb tsa Circuit

Txhawm rau pib nrog peb cov thaiv koj tuaj yeem mus ntsib kuv Tinkercad Circuit Kuv tau tsim yog koj tuaj yeem cuam tshuam nrog qhov kev sib tham hauv online no thiab saib cov thaiv xav tau los ua kom tiav cov Circuit no. Ua ntej tshaj tawm tag nrho 5 ntawm LED's mus rau sab laug ntawm lub khob cij ua kom ntseeg tau tias txhua tus ceg LED tau txais nws tus kheej ua kab ntawm lub khob cij. Tom ntej no ntxig rau 1k ohm resistor ntawm txhua LED cathode txuas lawv mus rau hauv av tsheb nqaj hlau ntawm peb lub rooj noj mov. Tam sim no xaim txhua LED anode rau nws tus lej sib xws ntawm Arduino. Liab LED rau tus pin 3, daj daj rau tus pin 4, ntsuab LED rau tus pin 5, xiav LED rau tus pin 6 thiab dawb LED rau tus pin 7. Ntxig lub laub khawm rau hauv nruab nrab ntawm lub khob cij faib ob txhais ceg rau hauv kab sab laug thiab sab xis. Tam sim no ntxig peb 10k ohm resistor rau hauv 5V txoj kev tsheb nqaj hlau thiab txoj kev tsheb nqaj hlau txuas nrog rau peb tus pin sab saum toj ntawm peb lub laub khawm. Siv lub jumper xaim los txuas tib daim kab xev ua kab rau tus pin 8 ntawm peb Arduino. Tom qab ntawd txuas tus pin hauv qab ntawm lub laub khawm mus rau hauv av tsheb nqaj hlau nrog jumper xaim. Rau peb cov khoom kawg peb tuaj yeem tso lub piezo buzzer rau hauv lub khob cij kom paub tseeb tias tus pin hauv av yog hauv txoj kev tsheb nqaj hlau thiab tus pin zoo rau hauv txoj kev tsheb nqaj hlau. Tom qab ntawd siv lub jumper hlau los txuas tus lej zoo rau tus pin 8 ntawm peb Arduino. Tom qab txhua qhov ua tiav peb tsuas yog xav tau txuas peb lub zog ntsia ntawm lub khob cij rau 5V thiab tus pin hauv av ntawm Arduino. Thaum koj tau tag nrho koj cov xov hluav taws xob ua tiav kom ntseeg tau ob npaug thiab tej zaum txawm tias yog triple xyuas nws nrog cov lus qhia ua ntej ua kom muaj zog.

Kauj ruam 2: Code

Code
Code
Code
Code

Thaum koj cov xov hluav taws xob tiav peb tuaj yeem txav mus rau qhov chaws. Koj tuaj yeem rub tus lej ntawm kuv Tinkercad Circuit lossis rub tawm los ntawm hauv qab no. Thaum koj muaj tus lej qhib nws rau hauv Arduino IDE thiab xyuas kom raug xaiv lub rooj tsavxwm uas koj tab tom tso rau. Thaum txhua yam npaj txhij nyem nyem upload thiab tos kom nws ua tiav.

Kauj Ruam 3: Cov Khoom Kawg

Khoom Kawg
Khoom Kawg
Khoom Kawg
Khoom Kawg

Tam sim no peb tau ua tiav, los sim tawm koj lub sijhawm teem sijhawm tshiab nyem rau lub pob nyem hloov. Thaum qhib txhua txhua 2 vib nas this lwm LED yuav ci li nws suav mus rau 10 vib nas this. Thaum lub sijhawm thib ob thib ob dhau ntawm piezo buzzer yuav beep rau 3 vib nas this thaum LED tag nrho nyem kom qhia rau koj paub tias koj lub sijhawm ua tiav. Lub sijhawm siv hluav taws xob tuaj yeem hloov kho rau txhua lub sijhawm koj xav tau los ntawm kev kho qhov ua haujlwm qeeb hauv txoj cai. Nov yog qhov haujlwm lom zem thiab yog txoj haujlwm zoo rau txhua tus neeg tshiab rau Arduino lossis ib tus neeg xav tau txoj haujlwm lom zem los sim. Yog tias koj muaj lus nug dab tsi tawm lawv hauv qab no thiab kuv yuav sim kuv qhov zoo tshaj plaws los pab koj.

Pom zoo: