Cov txheej txheem:

Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom: 4 Kauj Ruam
Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom: 4 Kauj Ruam

Video: Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom: 4 Kauj Ruam

Video: Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom: 4 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom System
Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom System

Txoj haujlwm no peb tau ua Kev Hais Lus / Lub Suab Ceeb Toom thiab Kev Ceeb Toom. Tsawg kawg ob lub cim tuaj yeem siv tau hauv txoj haujlwm no.

Kauj ruam 1: Tutorial Video

Image
Image

Hauv qhov haujlwm no, PIR sensor (Lub PIR Motion sensor module yog qhov kev tswj tsis siv neeg raws li thev naus laus zis thev naus laus zis) thiab IR sensor (IR Infrared Obstacle Zam Txim Qhov Tseeb Sensor Module muaj ib khub ntawm infrared kis thiab txais raj). DFPlayer Mini module tau siv los ua cov ntaub ntawv audio. (DFPlayer Mini MP3 Player Rau Arduino yog tus qauv me me thiab tus nqi qis MP3 nrog qhov yooj yim tso tawm ncaj qha rau tus hais lus) Peb siv ib lub roj teeb 9V rau kev siv hluav taws xob thiab ib lub hais lus me rau cov ntaub ntawv suab.

Kauj Ruam 2: PCB Cov Ntaub Ntawv (Gerber - Schematic)

Cov Ntaub Ntawv PCB (Gerber - Schematic)
Cov Ntaub Ntawv PCB (Gerber - Schematic)

Peb xaiv DIP cov khoom rau PCB, yog li nws tau dhau los ua lub rooj muag khoom yooj yim. Yog lawm, txoj haujlwm no suav nrog ib qho Atmega328P microcontroller thiab yam tsawg kawg uas yuav tsum tau ua.

PCBWay ua kev zoo siab nws hnub thib 6. $ 0 Rau Cov tswv cuab tshiab ua ntej xaj & Tus nqi qis rau PCB Stencil ntawm

Tau txais PCB - Schematic - Gerber cov ntaub ntawv:

www.pcbway.com/project/shareproject

Kauj ruam 3: Source Code

Qhov Code
Qhov Code
  • Thov hloov cov npe ntawm cov ntaub ntawv mp3 zoo li 1, 2, 3, 4…
  • Rub cov ntawv mp3 rau Micro SD daim npav.
  • Nruab DFPlayer lub tsev qiv ntawv los ntawm Tus Thawj Saib Xyuas Tsev Qiv Ntawv.
  • Nruab SoftwareSerial lub tsev qiv ntawv los ntawm Tus Thawj Saib Xyuas Tsev Qiv Ntawv.
  • Xijpeem cov ntaub ntawv suab koj yuav siv, hloov cov npe hauv cov cai. Zoo li qhov no: myDFPlayer.play (1)
  • Rub tawm Source Code.

Tau txais cov ntaub ntawv qhov chaws los ntawm qhov txuas no:

Kauj Ruam 4: Cov Cheeb Tsam Xav Tau

Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam

DFPlayer Mini MP3 -

HC -SR505 Mini PIR -

ATmega328P -PU IC -

L7805 TO220 -

Tus Hais Lus Mini -

Micro SD Card 8GB -

9V Roj Teeb Txuas -

Ceramic Capacitor -

Electrolytic Capacitor -

DIP IC Sockets -

Hom B USB Qhov (Socket) -

12MHz Crystal -

16MHz Crystal -

Resistor -

Hloov -

LED -

RD6006 Cov Khoom Siv Hluav Taws Xob - https://bit.ly/2ZV6vcv (Daim coupon: BG6006)

RD6012 Voltage Converter - https://bit.ly/3ehA7pn (Daim coupon: BG6012)

Banggood Lub Caij Ntuj Sov Prime Muag -

Banggood Lub Caij Ntuj Sov Prime Muag Khoom Muag -

Pom zoo: