Cov txheej txheem:

Electronic Social Distancing Emoti-Mask: 11 Kauj Ruam
Electronic Social Distancing Emoti-Mask: 11 Kauj Ruam

Video: Electronic Social Distancing Emoti-Mask: 11 Kauj Ruam

Video: Electronic Social Distancing Emoti-Mask: 11 Kauj Ruam
Video: КУПИТЬ ЭЛЕКТРОСАМОКАТ 2021 цена ОШИБКИ и ОБМАН Электротранспорт подводные камни Электросамокаты 2021 2024, Kaum ib hlis
Anonim
Image
Image

Hnav daim npog ntsej muag, tab sis tsis txhob npog koj lub siab!

Qhov npog ntsej muag DIY yooj yim no ntsuas qhov nrug ntawm tus neeg hla ntawm koj, siv lub ntsuas hluav taws xob ultrasonic, thiab hloov cov qauv LED ("kev xav") ntawm daim npog ntsej muag raws li.

  • Yog tias ib tus neeg zoo tshaj 6 ft deb ntawm koj, nws qhia kev luag ntxhi: D
  • Yog tias ib tus neeg raug cai ntawm qhov pib ntawm kev sib raug zoo (ntawm 6ft), nws qhia kev luag ntxhi:)
  • Yog tias ib tus neeg nyuam qhuav tsoo qhov kev nyab xeeb nyob nrug deb ntawm 6 ft, nws qhia lub ntsej muag ncaj: |
  • Yog tias ib tus neeg tau ze dua 5ft, ua txhaum kev sib raug zoo hauv zej zog, nws qhia txog kev luag nyav:(
  • Yog tias ib tus neeg tau ze dua 3ft, tsuas yog ncaj ncaj ua rau tsis txaus siab, nws qhia lub ntsej muag poob siab: O

Khoom siv

Electronics

FLORA - Lub tshuab hluav taws xob hnav tau - Arduino -sib xws

14 FLORA RGB SMART NEOPIXEL

Ultra-Sonic Sensor

Digital Multi-Meter (yeem), txhawm rau txheeb xyuas kev sib txuas

Kev Xaiv Ua Haujlwm-1 (Txoj Kev No-stitching)

Silicone Npog Stranded-Core Wire (txhua lub xov hlau yuav ua haujlwm, Kuv nyiam cov xaim silicone rau nws yooj)

Soldering Iron thiab solder (tuaj yeem yuav online lossis hauv khw muag khoom kho vajtse)

Cov kua nplaum kub thiab cov nplaum nplaum kub (tuaj yeem yuav online lossis ntawm txhua lub khw muag khoom siv tes ua)

Kev Xaiv Ua Ke-2 (Txoj kev sib dhos)

STAINLESS MEDIUM CONDUCTIVE THREAD

Cov Xov Xwm Tsis Zoo

Xaws Koob

Ntsia cov ntsia thawv polish (xaiv tau, tab sis pom zoo)

Kev xaiv lub zog (ib qho ntawm cov kev xaiv hauv qab no ua haujlwm):

Micro USB cable (uas tuaj yeem txuas rau hauv USB lub txhab nyiaj fais fab)

Roj teeb lossis Roj Teeb nrog JST PH txuas

Kauj Ruam 1: Tau Daim Npog

Muab cov Neopixels (LEDs)
Muab cov Neopixels (LEDs)
  • Siv daim npog qhov ncauj uas koj twb muaj lawm
  • Los yog ua daim npog ntsej muag (koj tuaj yeem ua raws qhov kev qhia yooj yim no tsis muaj kev hloov pauv hloov lub tsho qub rau hauv daim npog ntsej muag

Kauj Ruam 2: Tso Neopixels (LEDs)

Muab cov Neopixels (LEDs)
Muab cov Neopixels (LEDs)
  • Hnav koj daim npog ntsej muag thiab kos rau thaj tsam dav ntawm koj lub qhov ncauj, yog li daim phiaj neopixel haum nrog koj lub qhov ncauj. (kwv yees li 2 ntiv tes los ntawm sab saum toj ntawm koj daim npog ntsej muag rau hauv nruab nrab yog qhov kwv yees zoo)
  • Taw qhia cov neopixels zoo li daim phiaj qhia hauv daim duab. Nco ntsoov tias cov cim ntxiv, rho tawm kos thiab cov xub sib piv rau thawj daim duab.
  • Tam sim no tig lub neopixels kom sab LED tau kov daim npog daim npog thiab sab PCB liab qab tab tom ntsib koj. Raws li qhia hauv daim duab thib ob. Ib zaug ntxiv, xyuas kom tseeb tias cov cim tau phim cov duab!

Kauj Ruam 3: Txuas Neopixels

Txuas Neopixels
Txuas Neopixels
Txuas Neopixels
Txuas Neopixels
  • Ruaj ntseg cov neopixels nyob hauv qhov chaw. Koj tuaj yeem siv cov kua nplaum kub rau ntawm cov ces kaum ntawm neopixels (tsis txhob muab cov kua nplaum kub tso rau ntawm cov ntaub qhwv). Lossis siv cov xov uas tsis ua haujlwm tsis tu ncua ntawm cov ces kaum ntawm neopixels kom ruaj ntseg rau hauv qhov chaw.
  • Tam sim no tias cov neopixels muaj kev nyab xeeb hauv kab sib chaws, ua kom muaj kev sib txuas hluav taws xob raws li qhia hauv daim duab.

    • Yog tias koj tab tom txuas cov kev sib txuas, koj tuaj yeem txuas cov ntaub qhwv uas nyob ib sab nrog cov laug ntau dhau, tsis tas yuav xav tau xov hlau. Koj tseem yuav tsum tau siv qee cov xov hlau los txuas cov ntaub qhwv uas tsis nyob ib sab (Nco tseg: Cov kua nplaum kub zoo li yaj thaum koj tab tom siv thiab cov neopixels tuaj yeem txav tawm ntawm lawv txoj haujlwm. Nco ntsoov qhov no thiab cia cov kua nplaum txias ua ntej koj txav mus. txhawm rau txuas tus neopixel tom ntej)
    • Yog tias koj tab tom xaws cov neopixels, siv qhov no rau kev siv yuav ua li cas thiaj yuav xaws nrog cov xov coj.

Kauj Ruam 4: Muab lub Rooj Tsav Xwm FLORA

Muab lub Rooj Tsav Xwm FLORA
Muab lub Rooj Tsav Xwm FLORA

Muab lub Rooj Tswjhwm Saib Xyuas FLORA ze rau ntawm neopixel array raws li qhia hauv daim duab. Koj tuaj yeem ua kua nplaum rau ntawm lub rooj lossis siv cov xov uas tsis ua haujlwm txuas rau lub rooj tsavxwm hauv qhov chaw (siv cov pawm #7 thiab #9 rau kev xaws)

Kauj Ruam 5: Txuas Neopixel Array rau Flora Board

Txuas Neopixel Array rau Flora Board
Txuas Neopixel Array rau Flora Board
Txuas Neopixel Array rau Flora Board
Txuas Neopixel Array rau Flora Board

Ua cov kev sib txuas raws li qhia hauv daim duab. Nco ntsoov tias lub ncoo #6 ntawm lub rooj ntoo muaj txuas nrog DATA_IN ncoo (xub taw qhia sab hauv) ntawm thawj neopixel

(Nco tseg: Yog tias koj tau xaws, xyuas kom tseeb tias cov xov hlau/kev sib txuas tsis hla hla thiab ua rau luv-Circuit)

Kauj Ruam 6: Txuas UltraSonic Sensor

Txuas lub UltraSonic Sensor
Txuas lub UltraSonic Sensor
Txuas lub UltraSonic Sensor
Txuas lub UltraSonic Sensor

Muab lub ultra-sonic sensor tso rau sab xub ntiag ntawm daim npog ntsej muag (sab uas tsis kov koj lub ntsej muag). Muab nws tso rau hauv qab ntawm daim npog ntsej muag, ntawm qhov chaw. Ruaj ntseg nws nyob rau hauv qhov chaw (nrog kua nplaum kub lossis xov tsis ua haujlwm tsis tu ncua)

Ua qhov kev sib txuas mus rau lub rooj ntoo raws li pom hauv daim duab siv xov hlau lossis xov xov

Kauj Ruam 7: Txheeb Xyuas Koj Cov Kev Sib Txuas (Cov kauj ruam xaiv tau, Tab sis Pom Zoo)

  • Nco ntsoov tias txhua qhov koj sib txuas raug thiab raug.
  • Txheeb xyuas qhov txuas ntawm koj kev sib txuas siv Digital Multimeter (tig lub xov tooj ntawm koj DMM mus rau qhov uas zoo li lub suab yoj). Txheeb xyuas tias txhua lub ntsiab lus uas yuav tsum tau txuas nrog hauv Circuit Court tau txuas nrog tiag tiag thiab tsis muaj luv luv ntawm ib qho kev sib txuas uas tsis tau txhais tias yuav txuas nrog (tshwj xeeb yog VBATT, GND thiab 3.3V ncoo)

Kauj ruam 8: Teeb Software

  • Rub tawm Arduino IDE los ntawm no
  • Rub tawm Neopixel Library ntawm no

    • Uncompress ZIP cov ntaub ntawv tom qab nws ua tiav rub tawm
    • Hloov lub npe (suav nrog.cpp thiab.h cov ntaub ntawv) rau Adafruit_NeoPixel, thiab tso nws nrog koj lwm lub tsev qiv ntawv Arduino, feem ntau nyob hauv koj (tsev ntawv tais ceev tseg)/Cov Ntaub Ntawv/Arduino/Libraries nplaub tshev.
    • Xwb, koj tuaj yeem rub lub tsev qiv ntawv los ntawm IDE Los ntawm Sketch menu,> suav nrog Lub Tsev Qiv Ntawv> Tswj Tsev Qiv Ntawv… Saib rau "Adafruit NeoPixel los ntawm Adafruit" thiab xaiv qhov hloov tshiab kawg los ntawm txhaj rau cov ntawv qhia zaub mov nyob ib sab ntawm lub pob Install. Tom qab ntawv nyem rau ntawm lub pob Install. Tom qab nws tau teeb tsa, koj tuaj yeem nyem lub pob "kaw".

Kauj Ruam 9: Rub Txoj Cai rau Txoj Haujlwm no

Rub tus lej no

Kauj Ruam 10: Program FLORA Board

  • Txuas lub rooj tsav xwm FLORA rau koj lub khoos phis tawj siv USB-A rau micro-USB cable
  • Los ntawm Cov cuab yeej ntawv qhia zaub mov, hauv qab "Pawg Thawj Coj", xaiv "Adafruit Flora"
  • Txheeb xyuas qhov chaw nres nkoj COM uas pawg thawj coj tau txuas nrog ntawm koj lub khoos phis tawj tus thawj tswj ntaus ntawv
  • Los ntawm Cov cuab yeej ntawv qhia zaub mov, nco ntsoov tias tib lub chaw nres nkoj COM raug xaiv
  • Tam sim no nias lub pob Upload ntawm IDE thiab txheeb xyuas tias kho vajtse ua haujlwm

Kauj Ruam 11: Kov Kawg

  • Txiav txim siab seb koj xav txhawb koj lub teeb li cas.

    Koj tuaj yeem siv USB cable nrog USB fais fab-txhab nyiaj lossis siv roj teeb nrog JST PH txuas (Tsis txhob txuas ob qho tib si ib zaug!)

  • Yog tias koj siv roj teeb, koj tuaj yeem xaws lossis ua lub hnab me me/tuav rau koj lub roj teeb nrog kub-kua nplaum rau ntawm daim npog nrog cov ntaub ntxiv
  • Npog tag nrho cov khoom siv hluav taws xob nrog cov ntaub ntxiv kom nws tsis kov koj lub ntsej muag. (nws yuav tsis ua rau koj poob siab, tab sis nws tuaj yeem ua rau me ntsis) Koj tuaj yeem hnav ib daim npog ntsej muag nyob hauv qab daim npog no ua lwm txoj hauv kev.

Pom zoo: