Cov txheej txheem:

Arduino Decibelmeter: 6 Kauj Ruam
Arduino Decibelmeter: 6 Kauj Ruam

Video: Arduino Decibelmeter: 6 Kauj Ruam

Video: Arduino Decibelmeter: 6 Kauj Ruam
Video: Amazing arduino project 2024, Hlis ntuj nqeg
Anonim
Arduino Decibelmeter yog qhov zoo tshaj plaws
Arduino Decibelmeter yog qhov zoo tshaj plaws
Arduino Decibelmeter yog qhov zoo tshaj plaws
Arduino Decibelmeter yog qhov zoo tshaj plaws

Hauv cov lus qhia no, kuv yuav piav qhia yuav ua li cas ntsuas lub Decibel meter siv Arduino cov lej thiab qee yam khoom siv yooj yim.

peb yuav faib txoj haujlwm no ua 2 ntu, ua rau kho vajtse thiab tsim cov software rau lub ntsuas ntsuas decibel, Ua ntej, peb yuav tsim kho vajtse thib ob, peb yuav npog cov software.

Piav video:

Khoom siv

Rau qhov project no koj yuav xav tau:

Kho vajtse:- Arduino Uno R3 + mounting case- Grove shield rau Arduino Uno- 5x Grove LED module- Grove nrov nrov sensor- Mini Servo nrog cov ntoo txuas- Grove khawm (rear-mounted)- 5 LEDs (3mm) (2 Ntsuab, 1 Daj), 1 Liab, 1 Xiav)- Cov roj teeb 9V + roj teeb- 7x Grove txuas cable (10cm)- 5x 4cm xaim dub, 5x 4cm xaim liab

Rooj plaub:

- 200x200x5mm Plywood phaj- 23x 2mmx5mm screws

Cov Cuab Yeej:- Soldering hlau + Solder- Accessibility to a 3D printer- Accessibility to a laser cutter- A pair of pliers- Small screwdriver fitting to the screw of choice- Ntoo nplaum- Superglue

Kauj Ruam 1: Lasercutting Txhua Plywood rau Lub Hauv Paus

Lasercutting Txhua Plywood rau Lub Hauv Paus
Lasercutting Txhua Plywood rau Lub Hauv Paus

Thawj kauj ruam yog ua lub hauv paus ntawm lub cuab yeej uas peb yuav txhim kho tag nrho peb cov ntoo ntoo thiab lwm yam.

Koj tuaj yeem rub tawm cov ntawv DXF ntxiv thiab siv lub tshuab txiav laser los ua lub phaj, rau qhov kho qhov teeb tsa ua ntej kos tag nrho cov kab dub, tom qab ntawd txiav tag nrho cov kab xiav, thiab thaum kawg txiav kab liab. Tom qab ntawd, koj yuav tsum tau lo rau sab phaj khawm ntawm sab laug ntawm lub phaj tseem ceeb, thiab phaj rau lub suab sensor nyob rau sab saud. 2 lub pob liab liab yuav tsum tau muab lo rau ntawm cov duab plaub nyob ze ntawm servo rau cov ntsia hlau.

Qhov/Cov Cuab Yeej:- 200x200x5mm Plywood phaj- Kev nkag tau mus rau lub tshuab txiav laser- Ntoo nplaum

Kauj Ruam 2: Siv cov LEDs kom ntev dua thiab kho tau cov khoom sib txuas

Soldering cov LEDs kom ntev dua thiab kho tau cov khoom sib txuas
Soldering cov LEDs kom ntev dua thiab kho tau cov khoom sib txuas
Soldering cov LEDs kom ntev dua thiab kho tau cov khoom sib txuas
Soldering cov LEDs kom ntev dua thiab kho tau cov khoom sib txuas

Txhawm rau muab chav me me rau ua si nrog, peb yuav tsum tau ncua lub pegs ntawm LEDs. Yog li ntawd peb yuav tsum tau txiav cov pegs thiab cov kab laug sab, insulated xaim nyob nruab nrab. Tom qab qhov no, peb tuaj yeem lo cov LED hauv txhua qhov chaw yam tsis tas suav hauv qhov muab tso lossis qhov loj ntawm GROVE module nws tus kheej.

Tom qab koj tau hloov tag nrho 6 LED's, koj tuaj yeem lo lawv rau hauv qhov. Kuv tsuas yog siv qee qhov superglue thiab nws ua haujlwm tau zoo tab sis txhua hom kua nplaum yuav tsum ua haujlwm zoo xwb. 2 sab laug LEDs yuav ntsuab, 3 yuav yog daj thiab zaum kawg yuav tsum liab. Ib qho ntawm kaum sab xis tshaj plaws yuav tsum yog xiav.

Qhov/Cov Cuab Yeej:- 5x 4cm xaim dub, 5x 4cm xaim liab- 5 LEDs (3mm) (2 Ntsuab, 1 Daj, 1 Liab, 1 Xiav)- Soldering hlau + Solder- Superglue- Ib khub pliers

NCO TSEG: Nco ntsoov them sai sai rau qhov sib txawv ntawm LED. (Qhov luv/khoov peg yog qhov zoo, yog li liab)

Kauj Ruam 3: Txhim Kho Txhua Tus Qauv hauv Qhov Chaw raug

Mounting Txhua Tus Qauv hauv Qhov Chaw Zoo
Mounting Txhua Tus Qauv hauv Qhov Chaw Zoo

Tam sim no koj muaj tag nrho cov LEDs nyob rau hauv qhov chaw thiab txhua yam npaj txhij rau mount, koj tuaj yeem pib ua haujlwm ntawm kev txhim kho tag nrho cov cuab yeej seem. Txhua qhov chaw teeb tsa raug muab sau rau hauv ntoo, nrog qhov qhia luv tias qhov module yuav tsum mus qhov twg. Koj tuaj yeem siv cov ntsia hlau me 2mm txhawm rau txhim kho txhua yam hauv qhov chaw. tsis tas yuav muaj cov kua nplaum hauv cov kauj ruam no.

Yog tias tag nrho cov qauv tau ntsaws rau hauv qhov chaw raug, koj tuaj yeem pib txuas txhua yam mus rau Arduino. Analog Chaw nres nkoj 1: Lub suab sensor nkag mus Port 2: ButtonPort 3: ServoPort 4: LED 1 (Green) Port 5: LED 2 (Green) Port 6: LED 3 (Daj) Port 7: LED 4 (Red) Port 8: LED 5 (Blue)

Qhov Chaw/Cov Cuab Yeej:- Arduino Uno R3 + cov ntaub ntawv teeb tsa- Grove shield rau Arduino Uno- 5x Grove LED module- Grove nrov nrov sensor- Mini Servo nrog txuas txuas ntoo- Grove khawm (rov qab teeb tsa)- 9V roj teeb rooj + roj teeb- 7x Grove txuas cable (10cm)- Cov ntsia hlau me me haum rau cov ntsia hlau xaiv- 23x 2mmx5mm screws

NCO TSEG: Kuv pom nws yooj yim dua pib nrog lub khawm khawm sab thiab lub teeb tsa lub suab sab saud, vim cov no muaj qhov nruj thiab tsis yooj yim mus txog thaum txhua yam nyob hauv qhov chaw.

- Kuv tsim txhua yam kom nce rau 1 phaj. Qhov no muaj qhov zoo dua uas lub decibel meter yuav yooj yim rau kev hloov kho thiab kho cov khoom raws li txoj cai thiab lwm yam.

Kauj Ruam 4: Tsim/luam tawm Phaj Pem Hauv Ntej

Tsim/luam tawm Phaj Pem Hauv Ntej
Tsim/luam tawm Phaj Pem Hauv Ntej

Txhawm rau ua kom lub decibel meter me ntsis zoo dua saib, peb tuaj yeem ua rau pem hauv ntej me ntsis kom txaus siab los ntawm kev ntxiv tsim qauv rau lub ntsej muag ntawm lub cuab yeej.

Kuv tau ua lub tswv yim yooj yim hauv Illustrator uas koj tuaj yeem luam tawm thiab txuas nrog siv cov txheej ntoo me me- lossis tshuaj tsuag kua nplaum. Kuv kuj ntxiv cov ntawv Illustrator yog li koj tuaj yeem kho qhov tsim koj tus kheej

Kauj Ruam 5: Ua Case rau Npog Txhua Qhov Khoom Siv Hluav Taws Xob

Ua Case rau Npog Txhua Qhov Khoom Siv Hluav Taws Xob
Ua Case rau Npog Txhua Qhov Khoom Siv Hluav Taws Xob

Tam sim no peb tau txais tag nrho cov qauv teeb tsa thiab ua haujlwm, peb xav tau ib txoj hauv kev los npog tag nrho cov khoom siv hluav taws xob.

Kuv tsim 2 qhov kev xaiv los ntawm, 1 nrog, thiab 1 yam tsis muaj daim clip nyob tom qab kom dai lub cuab yeej mus rau txoj siv sia, hnab ev khoom lossis qee yam zoo sib xws.

Koj tuaj yeem rub tawm qhov koj nyiam saum toj no, thiab siv ib lub tshuab luam ntawv 3D los luam tawm lub tsev nyob tom qab kom ua tiav koj lub cuab yeej.

Qhov/Cov Cuab Yeej:- Kev nkag tau mus rau lub tshuab luam ntawv 3D

Kauj ruam 6: Software

Software
Software

Tam sim no peb tau txais tag nrho cov cuab yeej txuas nrog thiab teeb tsa, peb tuaj yeem pib ua haujlwm ntawm software sab ntawm yam.

Kuv tsim lub hauv paus ntawm cov cai hauv Thinkercad thiab ntxiv "ResponsiveAnalogRead" lub tsev qiv ntawv tom qab ntawd.

ResponsiveAnalogRead lub tsev qiv ntawv ua kom yooj yim nkag nkhaus ntawm lub suab sensor kom cov servo yuav hnov zoo dua thiab ntau dua.

Koj tuaj yeem rub tawm ob txoj cai nrog thiab tsis muaj lub tsev qiv ntawv ntxiv saum toj no. Just rub tawm cov cai, qhib nws hauv Arduino IDE thiab sau nws rau koj Arduino ntawm USB hom B. pib ua haujlwm tam sim ntawd.

Kev piav qhia ntawm cov cai hauv paus: Ua ntej, cov lus sib piv ntawm lub suab sensor tau muab faib ua 2 qhov sib txawv: qhov sib txawv rau servo, nrog thaj tsam ntawm 155 thiab 25 (GradenServo). Thiab qhov sib txawv rau LEDs, nrog thaj tsam ntawm 0 thiab 100 (Ledwaarde)

Tom qab ntawd, txoj cai yuav tig LEDs 1-4 rau lossis tua thaum lub sijhawm tshwj xeeb ntawm "Ledwaarde" thiab teeb tsa MiniServo kom raug tus nqi raws qib raws qhov sib txawv "GradenServo". Qhov thib 5 LED (xiav) yuav qhib yog tias qhov sib txawv nce siab tiag tiag. Thaum qhov no tshwm sim nws tseem sau lwm qhov sib txawv hu ua "resetLED" rau tus nqi "1". Qhov no txhais tau tias lub xiav LED yuav tsis tua tus kheej. Lub voj no yuav rov ua dua, thiab LED xiav yuav nyob twj ywm. Tab sis thaum lub pob nyem, nws yuav tshuaj xyuas yog qhov sib txawv "resetLED" sib npaug rau "1" (yog li yog tias cov coj tau qhib) thiab yog tias qhov no tshwm sim, nws tua Blue led, thiab sau qhov "resetLED" hloov pauv rov qab mus rau "0". Tam sim no cov coj xiav tau muab tua dua thiab yuav nyob zoo li no kom txog thaum "Ledwaarde" tau siab dua 90 dua

Lwm qhov pom tau tuaj yeem pom hauv daim phiaj, uas tuaj yeem rub tawm los ntawm cov ntaub ntawv ntxiv rau theem no.

NCO TSEG:

Yog tias koj xav siv ResponsiveAnalogRead, nws yuav tsis suav sau, ua ntej koj yuav tsum teeb tsa lub tsev qiv ntawv hauv koj lub khoos phis tawj, hauv cov vis dis aus piav qhia yuav ua li cas rau nruab qhov no. Tom qab kev teeb tsa, koj tseem tuaj yeem hloov qee qhov txiaj ntsig zoo li "setSnapmultiplier" txhawm rau hloov pauv ntau npaum li cas cov software yuav ua kom yooj yim rau kev nkag mus, ntxiv ib qib rau kev ua kom du dua, thiab ntau ntxiv.

Pom zoo: