Cov txheej txheem:

Arduino Teeb Pom Kev Teeb: 3 Kauj Ruam
Arduino Teeb Pom Kev Teeb: 3 Kauj Ruam

Video: Arduino Teeb Pom Kev Teeb: 3 Kauj Ruam

Video: Arduino Teeb Pom Kev Teeb: 3 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Arduino Teeb Pom Kev Teeb
Arduino Teeb Pom Kev Teeb

Lub voj voog no tuaj yeem siv ua lub teeb pom kev zoo, phiaj xwm tsev kawm ntawv, thiab kev sib tw lom zem. Cov Circuit no siv tau yooj yim thiab ua tau yooj yim tab sis yog tias koj tsis tau siv tinker cad ua ntej koj yuav xav sim nws ua ntej.

Khoom siv

- yees duab resistor

- Arduino micro maub los

- Lub teeb

Relay (txij li lub teeb siv 120 V thiab Arduino tsuas yog muab 5 V)

- resistor (1 kilo ohm)

- lub zog qhov chaw

- Breadboard (yeem)

Kauj ruam 1: Ua Circuit Court

Ua Circuit
Ua Circuit

Txhawm rau ua kom lub voj voog siv cov duab saum toj no raws li kev qhia. Thawj qhov koj xav tau yog txhua yam khoom siv, tom qab ntawd txuas lub xaim dub thiab liab mus rau lub khob cij (liab liab ntawm qhov zoo rau qhov zoo thiab dub mus rau qhov tsis zoo). Thib peb muab tso rau hauv cov khoom tsim nyog hauv lawv qhov chaw tsim nyog. Nco ntsoov tias lub hwj chim muaj 5 volts thiab 5 tam sim no. Txuas tag nrho cov xov hlau (lub davhlau ya nyob twg 5 ntawm kev xa xov txuas nrog tus pin 4 ntawm Arduino, thiab lub davhlau ya nyob twg 1 ntawm tus tiv thaiv txuas nrog A0 ntawm Arduino). Yog tias koj xav tau kev pab txuas ntxiv siv daim duab saum toj no.

Kauj Ruam 2: Sau Txoj Cai

Image
Image
Sau Txoj Cai
Sau Txoj Cai

Cov thaiv uas koj yuav xav tau yog cov ntawv luam tawm saib xyuas qhov thaiv, yog tias lwm qhov thaiv, nyeem cov lus sib piv, tus lej ntau dua li tus lej thaiv, thiab 2 ntawm tus pin teeb rau thaiv. Yog tias koj xav tau kev pab ntxiv thov saib cov vis dis aus, lossis nyem qhov ntawv.

Kauj Ruam 3: Xeem

Thaum kawg thaum koj tau ua tiav qhov Circuit thiab sau cov code koj tam sim no tuaj yeem sim nws. Txhawm rau sim nws yooj yim clink "khiav simulation" thiab tom qab ntawd nyem rau lub yees duab resistor thiab siab dua thiab txo qhov tam sim no.

Pom zoo: