Cov txheej txheem:

Arduino Teeb Pom Kev Teeb: 5 Kauj Ruam
Arduino Teeb Pom Kev Teeb: 5 Kauj Ruam

Video: Arduino Teeb Pom Kev Teeb: 5 Kauj Ruam

Video: Arduino Teeb Pom Kev Teeb: 5 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Kaum ib hlis
Anonim
Arduino Teeb Pom Kev Teeb
Arduino Teeb Pom Kev Teeb

Hauv Txoj Haujlwm no koj yuav kawm paub yuav ua li cas qhib lub teeb thaum tsaus ntuj

Khoom siv

Koj yuav xav tau dab tsi:

  • TinkerCAD Software
  • LDR (txhawm rau txheeb xyuas lub teeb/tsaus ntuj)
  • Arduino microcontroller
  • Teeb nyem
  • Relay (vim lub teeb pom kev siv 120 V piv rau Arduino uas muab 5V)
  • Lub hwj chim
  • Breadboard (yeem)
  • Sau Arduino Code cia

Kauj Ruam 1: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court

Ua kom ntseeg tau tias koj lub Circuit Court tau sib phim kom raug ib yam li hauv ib qho uas tau qhia

Kauj ruam 2: LDR Sensor

LDR Sensor
LDR Sensor

Raws li qhia hauv daim duab, kev sib raug zoo rau LDR sensor tau txuas nrog. Ib kawg tau txuas rau lub hauv paus thiab lwm qhov kawg txuas nrog VCC tus tiv thaiv. LDR cov teeb liab tso tawm yog txuas nruab nrab ntawm ob txhais ceg ntawm LDR thiab ceg ntawm Resistor.

Kauj Ruam 3: Txuas thiab Teeb

Relay thiab Teeb
Relay thiab Teeb

Xyuas kom txhua yam zoo li hauv daim duab qhia

Kauj ruam 4: Coding

Coding
Coding

Rau qhov no qhov coding yog ncaj ncaj rau pem hauv ntej. Thawj kab qhia tau tias peb nyeem cov lus nkag los ntawm tus lej sib piv A0 thiab luam tawm mus rau lub ntsuas saib, raws li koj tuaj yeem pom. Tom ntej no peb ua raws li txoj cai, dhau los uas peb sim A0 lub ntsiab lus. Txawm hais tias tus nqi ntawm A0 sib npaug lossis ntau dua 500, tus lej digital 4 tau teeb tsa LOW, thiab yog tias tus nqi tsawg dua, tus pin 4 tau teeb tsa HIGH. Cov relay txuas nrog tus pin 4.

FYI: Luam qhov uas tau qhia ntawm tus lej

Kauj Ruam 5: Qhov tshwm sim ntawm Tutorial

Qhov tshwm sim ntawm Tutorial
Qhov tshwm sim ntawm Tutorial

Nov yog qhov koj nyeem yuav tsum zoo li ib zaug tom qab

Saib daim vis dis aus no seb yuav ua haujlwm li cas:

www.youtube.com/embed/tBVq6cvgnmU

Pom zoo: