Cov txheej txheem:

Wireless PIR Sensor: 4 Kauj Ruam
Wireless PIR Sensor: 4 Kauj Ruam

Video: Wireless PIR Sensor: 4 Kauj Ruam

Video: Wireless PIR Sensor: 4 Kauj Ruam
Video: #378 How to choose Radar Sensors (Tutorial). Incl. PIR and LIDAR 2024, Kaum ib hlis
Anonim
Wireless PIR Sensor
Wireless PIR Sensor
Wireless PIR Sensor
Wireless PIR Sensor

Fusion 360 Cov Haujlwm »

Lub hom phiaj ntawm txoj haujlwm no yog ua kom lub suab txav txav tau zoo siv lub roj teeb.

Nws tuaj yeem siv rau lub tswb ceeb toom, teeb pom kev zoo thiab lwm yam …

Nws tuaj yeem ua kom lub hli nyob ntawm cov roj teeb, nyob ntawm seb nws tau tshwm sim ntau zaus lossis tsis yog.

Kauj Ruam 1: Nqi Khoom

Nqi Khoom
Nqi Khoom
Nqi Khoom
Nqi Khoom
Nqi Khoom
Nqi Khoom

Cov ntaub ntawv:

  • Tsab ntawv tsa suab ntes HC-SR501 (ebay, aliexpress, adafruit…)
  • 433 Mhz (315 Mhz rau Asmeskas) superheterodyne Transmitter thiab Txais (aliexpress)
  • 2 NiMh accumulators
  • FTDI USB-Serial adapter los teeb tsa lub rooj tsavxwm

Kev txawj:

  • Dav dawb hau cadsoft
  • PCB ua
  • 3D luam ntawv

Kauj Ruam 2: PCB

Cov PCB
Cov PCB

PCB tau siv los ntawm 2 NiMH cov khoom sib xyaw (2 * 1.2 V = 2.4V). Qhov hluav taws xob no tau siv zog txog 5V los ntawm MT3608 txhawb kev hloov pauv. Cov khoom siv no siv tsawg dua 1mA thaum tsis ua haujlwm, nws yooj yim npaum li cas rau cov ntawv thov nqa tau.

Kuv tau siv atmega328p los ua Arduino sib xws vim tias Arduino txias thiab nws ua haujlwm;-)

  • LED2 yog tib yam li cov teeb tsa LED ntawm Arduino Uno (tus pin 13).
  • ISP1 yuav cia peb hlawv Arduino bootloader.
  • RF Transmitter tau siv ncaj qha los ntawm PB2 (tus pin 10 ntawm Arduino): RF module siv 20mA thaum tso tawm, PB2 tuaj yeem xa mus txog 40mA, yog li nws txaus:-)
  • PIR sensor tau txuas rau ntawm XH txuas, nws tsuas siv ob peb lub micro-amps.
  • FTDI txuas txuas tso rau USB-Serial adapter kom raug ntsaws thiab tom qab ntawd los teeb tsa lub rooj tsav xwm ncaj qha los ntawm Arduino IDE.

Kuv tau siv Eagle los tsim lub rooj tsavxwm thiab OSH Park kom ua tau.

Sai li cov khoom siv tau muab hlawv hlawv Arduino bootloader thiab koj yuav muaj qhov sib npaug ntawm Arduino Uno.

Kauj Ruam 3: Txog Programming

Koj yuav tsum siv hom pw tsaug zog feature ntawm Arduino kom txuag roj teeb lub neej !! Lwm lub roj teeb yuav tsis nyob ntev.

Lub algorithm yuav tsum coj zoo li no:

  1. Teeb tsa lub tswb ntawm PB1 (tus pin 9)
  2. Pw tsaug zog (kev noj haus nqes mus rau ob peb lub micro-amps)
  3. Arduino yuav tsum nres ntawm no kom txog thaum lub suab txav ua rau
  4. Sawv-los
  5. Xa lub teeb liab RF thiab rov qab mus pw hom

Kuv muab kuv qhov program rau koj tab sis nws tsuas yog ib qho piv txwv ntawm qhov ua tau.

Kuv tau siv lub tsev qiv ntawv RH_ASK:

Kauj Ruam 4: Ua Case

Ua Case
Ua Case
Ua Case
Ua Case
Ua Case
Ua Case

Lub tshuab luam ntawv 3D yog lub cuab yeej zoo heev los ua kis thaum koj yog tus nyiam ua hluav taws xob.

Kuv ua tus tsim nrog Fusion360. Nws tau tsim rau sab nraum zoov, yog li ntawv pov thawj dej: Kuv tau txiav lub foob ua los ntawm cov ntoo cork kom kaw qhov rooj sib dhos.

Cov ntaub ntawv yog ua los ntawm PLA, xijpeem koj tuaj yeem nyeem hauv internet, nws tuaj yeem pab txhawb huab cua tsis zoo rau ntau xyoo.

4 screws yog M3. PLA tau txuas nrog lub kais, nws ua haujlwm zoo ntawm cov khoom siv no, tsuas yog tsis txhob nruj ntau.

Pom zoo: