Cov txheej txheem:

Chaw Ua Haujlwm Qhov Rooj Chime: 5 Kauj Ruam
Chaw Ua Haujlwm Qhov Rooj Chime: 5 Kauj Ruam

Video: Chaw Ua Haujlwm Qhov Rooj Chime: 5 Kauj Ruam

Video: Chaw Ua Haujlwm Qhov Rooj Chime: 5 Kauj Ruam
Video: Mob Txaus Lawm - Txhaij Lauj Ft. Tijlaug Xab Thoj (Special Project) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Chaw Ua Haujlwm Qhov Rooj Chime
Chaw Ua Haujlwm Qhov Rooj Chime

Kuv tsim lub qhov rooj no kom qhia rau peb lub chaw haujlwm paub thaum tib neeg tuaj rau peb lub Tech Support qhov rooj. Nws feem ntau tsis yooj yim pom yog tias leej twg nyob hauv chav ua haujlwm vim peb tsis muaj "tus txais tos." Qhov kev ceeb toom sai, yooj yim arduino-based system qhia rau peb paub thaum ib tus neeg nkag mus hauv chav.

Txoj haujlwm no muaj khawm hla dhau (6 ncua sijhawm thib ob) yog li peb tuaj yeem nkag mus/tawm ntsiag to, khawm ncua (ncua kev tshawb pom kom txog thaum lub pob raug thawb dua), thiab khawm rov pib dua. Nws tau siv los ntawm lub zog hluav taws xob sab nraud siv tus qauv 5.5mm DC lub zog txuas.

Prototyped ntawm lub khob cij. Qhov kev tsim zaum kawg siv tus qauv tsim qauv 3D luam ntawv lub thawv.

Kauj Ruam 1: Cov khoom siv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
  • Arduino Nano Cov
  • HC-SR04 Ultrasonic Sensor
  • LED - Liab - 5mm
  • LED - Daj - 5 hli
  • LED - Xiav - 5mm
  • PAM8302 2.5W Class D Suab Amplifier
  • Mini hais lus (peb siv Gikfun 2 "4Ω hais lus)
  • (3) - 220Ω Resistors
  • 3 Nyees khawm (rau qhov kawg tsim peb siv Cylewet 12mm khawm)
  • DC Power Port (5 hli x 2.1 hli)
  • Rocker Style Power Hloov

Muaj 4 khawm qhia hauv daim duab. Peb txiav txim siab tias kev tso cov nyees khawm nyob rau sab nraub qaum ntawm lub phiaj xwm phiaj xwm tsis yooj yim, yog li kuv ntxiv lub pob rau saum lub npov. Ob lub khawm daj yog ob qho txuas rau tib tus pin ntawm arduino, yog li koj tuaj yeem thawb ib qho ntawm lawv!

Thov nco ntsoov tias kuv siv 4Ω hais lus. Koj kuj tseem tuaj yeem siv tus neeg hais lus 8Ω nrog PAM8302 lub suab nrov, koj yuav tau txais lub ntim tsawg dua ntawm nws. Raws li nws yog, lub suab nrov tau tig mus rau qhov teeb tsa yam tsawg kawg nkaus, thiab nws zoo nkauj heev!

Kauj ruam 2: Layout Breadboard

Breadboard Layout
Breadboard Layout

Ntawm no yog daim phiaj qhia zaub mov.

Ua …

  1. Hloov pinouts rau lub tshuab ua suab nrov kom yooj yim thaiv.
  2. Hloov pinouts rau LED kom yooj yim thaiv.

Txog qhov tsim qauv zaum kawg, Kuv siv lub khob cij me me nrog tsuas yog 1 txoj kab hluav taws xob.

Lub zog tau muab los ntawm 5V lub zog hloov pauv nrog 5.5 x 2.5mm nkaus. Txij li qhov no tau txuas mus rau VIN chaw nres nkoj ntawm Arduino Nano, qhov chaw nres nkoj no tuaj yeem ua haujlwm nrog hluav taws xob txog 20V.

Kauj Ruam 3: Hluav Taws Xob Schematic

Hluav taws xob Schematic
Hluav taws xob Schematic

Kauj ruam 4: Code

Cov cai no tau sau siv Arduino Tsim lub vev xaib rau Arduino Nano siv los txhawb txoj haujlwm no.

Kauj ruam 5: 3D Enclosure

3D Enclosure
3D Enclosure
3D Enclosure
3D Enclosure

Txog rau 3D luam tawm lub thawv ntawv, Kuv tau siv cov khoom tiv thaiv rau ob txhais ceg ntawm LED, thiab muab cov hlau lead txuas rau lwm ceg. Kuv kuj tseem siv cov nyees khawm loj dua thiab txuas ntxiv qhov txuas rau txuas cov txiv ntseej ntawm cov hloov pauv thiab chaw nres nkoj fais fab.

Hauv kev mob siab ua kom cov khoom lag luam rov ua dua tshiab rau cov tub ntxhais kawm, Kuv tau tsim lub thawv ntawv siv Tinkercad.

Lub pob qhov nyob rau sab saum toj sab xis yog rau khawm "override". Nws tsis yooj yim rau thawb, yog li kuv tau ntxiv lub pob thib ob rau saum lub npov kom yooj yim dua los hla peb kom peb tuaj yeem tawm ntawm chaw ua haujlwm yam tsis teeb tsa ceeb toom!

Koj tuaj yeem pom cov ntawv ci txhuas qhwv ib ncig ntawm cov xov hlau ntsaws tom qab tus hais lus. Muaj qhov tsis sib xws nyeem ntawm lub sensor. Tom qab ntxiv cov ntawv ci txhuas "ntaub thaiv npog" kev nyeem ntawv zoo ib yam.

Pom zoo: