Cov txheej txheem:

"Coronavirus Covid-19" 1 Meter Keep Away Alarm Gadget: 7 Kauj Ruam
"Coronavirus Covid-19" 1 Meter Keep Away Alarm Gadget: 7 Kauj Ruam

Video: "Coronavirus Covid-19" 1 Meter Keep Away Alarm Gadget: 7 Kauj Ruam

Video:
Video: BEST CORONAVIRUS PROTECTION GADGETS | Virus protection 2020 2024, Hlis ntuj nqeg
Anonim
Duab
Duab
Duab
Duab

بسم الله الرحمن

Kab lus no yog qhov ua piv txwv ntawm kev siv Ultrasonic Distance Sensor HC-SR04.

Lub ntsuas yuav raug siv los ntsuas ntsuas los tsim "1 Meter Keep Away Alarm Gadget" rau lub hom phiaj sib txawv.

Lub hlwb ntawm cov cuab yeej no yog qhov zoo ATTINY85 ontController powered by 3.7V Lipo roj teeb.

Lub cuab yeej txuas nrog lub roj teeb TP4056.

GREEN LED teeb yog ntsuas qhov deb ntawm ib yam khoom loj dua 120 cm.

RED LED ntsais muag yog tias ntsuas nrug ntawm ib yam khoom qis dua 100 cm nrog lub suab nrov (nrov nrov).

Ib lub YELLOW LED ntsais yog tias ntsuas nrug deb ntawm ib yam khoom nyob nruab nrab ntawm [100, 120] cm nrog lub suab nrov nrov tsawg dua.

Khoom siv

Ntau tsab xov xwm piav qhia ntxaws tias HC-SR04 ua haujlwm li cas.

Hauv qhov ua piv txwv, HC-SR04 Ultrasonic Distance Sensor yog

1 - Ultrasonic Transmitter - Qhov no xa cov suab paj nruag ultrasonic, nws ua haujlwm ntawm 40 KHz

2 - Tus Txais Txais Ultrasonic - Tus txais yuav mloog cov suab sib kis. Yog tias nws tau txais lawv nws tsim cov mem tes tso tawm uas nws qhov dav tuaj yeem siv los txiav txim siab qhov nrug ntawm cov mem tes mus.

Kauj Ruam 1: Cov Khoom Muag Khoom (BOM)

Sourcing Cheebtsam (BOM)
Sourcing Cheebtsam (BOM)
Sourcing Cheebtsam (BOM)
Sourcing Cheebtsam (BOM)

Ob peb yam xav tau rau lub gadget yooj yim no.

Cov khoom siv no yooj yim nkag los ntawm Amazon, Ebay lossis Aliexpress.

BOM: Daim nqi ntawm cov ntaub ntawv

Kauj ruam 2: Schematics

Schematics
Schematics

Qhib qhov chaw Schematic Capture & PCB Tsim Software Kicad tau siv.

Kauj Ruam 3: Pcb Tsim

Pcb Tsim
Pcb Tsim

Kicad tau siv los ua lub rooj tsavxwm.

Kauj Ruam 4: PCB Los Ua Ke

PCB los ua ke
PCB los ua ke
PCB los ua ke
PCB los ua ke
PCB los ua ke
PCB los ua ke

Ob peb yam yuav tsum tau muab muag rau lub gadget no.

Ceev faj thiab ua siab ntev.

Kauj ruam 5: Arduino Sketch

Arduino Sketch
Arduino Sketch

Daim duab arduino siv lub tsev qiv ntawv NewPing nto moo los nyeem qhov deb ntawm lub ntsuas cua.

NewPing Library yog Qhib Qhov Chaw thiab sau tau zoo heev.

Kauj Ruam 6: Arduino Sketch Flashing

Arduino Sketch Flashing
Arduino Sketch Flashing

Qhov ua kom pom tseeb ntawm cov cai yuav siv Arduino Uno nws tus kheej ua ISP programmer.

Vam tias, "ATTINY85 ISP Programmer Shield" yog siv los nyem lub rooj tsavxwm.

Nco tseg: Nyeem kab lus "Tseem Lwm ATTINY85 ISP Programmer Shield rau Arduino"

Kauj ruam 7: Txaus siab rau

Hauv kab lus no peb tau hla dhau txhua qib los tsim cov khoom siv lom zem uas yuav pab tau.

15 vib nas this hauv tsev ua yeeb yaj kiab qhia txog kev siv.

Pom zoo: