Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Qhov No Ua Haujlwm Li Cas - MSGEQ7
- Kauj Ruam 2: Xeem Circuit
- Kauj ruam 3: Code
- Kauj ruam 4: Ntxiv Relays
- Kauj Ruam 5: Pawg Thawj Coj Ua Txhua Yam
- Kauj Ruam 6: Ua tiav + Yav Tom Ntej
Video: DIY Tsis Siv Neeg Lub Suab Nkauj Christmas Teeb (MSGEQ7 + Arduino): 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Yog li txhua txhua xyoo kuv hais tias kuv yuav ua qhov no thiab tsis muaj ib puag ncig los ua vim tias kuv ncua sijhawm ntau. 2020 yog xyoo hloov pauv yog li kuv hais tias xyoo no yog xyoo uas yuav tsum ua. Yog li cia siab tias koj nyiam thiab ua koj tus kheej lub suab paj nruag Christmas teeb. Qhov no yuav yog cov lus qhia yooj yim tab sis xyoo tom ntej kuv npaj yuav ua ntau yam ntxiv nrog txoj haujlwm no.
Tag nrho qhov project video:
Khoom siv
Bluetooth Tau Txais
Arduino Nano https://amzn.to/3piiJHb lossis
PRO Mini
(yuav xav tau https://amzn.to/2WGa19q rau program nws)
MSGEQ7 IC
MSGEQ7 Module
MSGEQ7 Shield
Resistors
Capacitors
Relays - Mechanical https://amzn.to/3pm2WXF lossis
Solid State https://amzn.to/2KOVqFU X3
Solid State 4 channel
8x8 LED zaub
Solder-tau Breadboard
Hook Up Wire Kit
JST Adapters
3.5mm Stereo Jack Socket
Cov Khoom Siv Hluav Taws Xob
9V 1A Lub Hwj Huam
AC Plug, AC qhov nyob thiab lub thawv hluav taws xob los ntawm ib qho khoom siv hauv zos
Cov cuab yeej siv (tsis tau yuav cov vis dis aus no tsuas yog cov khoom kuv muaj):
Solder Iron:
Kho Mat:
Lead-Free Solder Wire:
Sib Nqus Pab Tes:
Multimeter: https://amzn.to/3oQrgB5 (kuv yuav tom ntej)
Lub Rooj Tswjhwm Saib Circuit Court
Cov ntawv no muaj cov txuas txuas nrog, uas pab txhawb nqa kuv cov channel. Yog tias koj yuav los ntawm ib qho ntawm kuv qhov txuas, kuv yuav khwv tau nyiaj me me; tsis muaj nqi ntxiv rau koj
Kauj Ruam 1: Qhov No Ua Haujlwm Li Cas - MSGEQ7
Yog li lub hauv paus tseem ceeb ntawm txoj haujlwm no yuav yog MSGeq7. Qhov no yog xya-qhab duab sib npaug sib npaug IC yog CMOS nti uas faib cov suab nrov rau hauv xya pawg, 63Hz, 160Hz, 400Hz, 1kHz, 2.5kHz, 6.25kHz thiab 16kHz. Xya qhov zaus tau pom qhov siab tshaj thiab sib npaug rau qhov tso tawm kom muab DC sawv cev ntawm qhov dav ntawm txhua pab pawg. Tsis xav tau cov khoom siv sab nraud los xaiv cov lus teb lim. Tsuas yog ib qho tawm-nti resistor thiab lub peev xwm xav tau los xaiv lub on-chip moos oscillator zaus. Lub lim dej nruab nrab zaus taug qab qhov zaus no.
Cov ntaub ntawv:
Yog li txhua qhov yooj yim heev rau siv IC.
Kauj Ruam 2: Xeem Circuit
Cov ntawv qhia rau msgeq7 muab cov qauv siv hluav taws xob daim duab uas kuv tau ua raws thiab siv los tsim cov Circuit Court rau txoj haujlwm no.
Nco tseg ntawm qhov muaj txiaj ntsig ntawm qhov tshwj xeeb resistors thiab capacitors. Kuv muaj 2 x 3.5mm lub tso suab tso suab tso cai rau Bluetooth module rau tso suab kom hnov los ntawm msgeq7. Koj yuav xav tau ob lub 22k resistors thiab lub tshuab hluav taws xob cais cov MSG thiab tso cai rau lwm lub jack yog tso tawm rau tus hais lus ntawm AUX cable.
Tsis tas li, Kuv hloov cov LEDs tom qab nrog kev xa rov qab (lawv ib txwm zoo ib yam hauv thaj chaw ntawm txoj haujlwm no) tom qab ntawd tswj qee lub teeb Christmas.
LEDs sawv cev rau lub suab "qis" "mids" "Highs". Lub phiaj xwm yog kom nkag siab qhov ntau zaus thiab txiav txim siab lub ntsiab lus uas yuav qhib lub teeb.
Kuv kuj ntxiv qhov 8x8 coj matrix los muab lub suab zoo pom ntawm lub suab zaus raws li lawv tau ua si.
Txoj cai tuaj yeem ua haujlwm nrog txhua lub rooj tsav xwm Arduino tab sis kuv siv nano rau kev sim thiab Pro Mini hauv pawg thawj coj saib kawg.
Kauj ruam 3: Code
Yog li cov cai dua yog yooj yim zoo nkauj.
Cov lej tag nrho:
Txoj cai xav tau LedControl lub tsev qiv ntawv https://www.arduino.cc/reference/en/libraries/ledc… rau 8x8 zaub MAX7219. Tsis tas li ntawd tsis xav tau lwm lub tsev qiv ntawv ntxiv thiab cov cai nyob ib leeg.
Hauv lub voj, Kuv tshawb xyuas qhov sib txawv ntawm MSG thiab ntsuas qhov tseem ceeb ntawm 0 thiab 7 kom pom ntawm 8x8 matrix. Kuv tom qab ntawd khaws cov txiaj ntsig rau hauv ib qho array kom ua tiav sai tom qab.
Cov txiaj ntsig qhov dav dav no raug tshuaj xyuas kom pom tias lawv hla tus nqi teeb tsa. Yog tias lawv ua kuv tso lub teeb.
qhab 0, 1, 2 = LOWs (63Hz txog 400Hz)
qhab 3 = MIDs (400Hz txog 2500Hz)
Band 4, 5, 6 = HIGHs (2.5KHz txog 16KHz
Nov yog ntau qhov kev xaiv ntawm tus kheej raws li kev soj ntsuam uas muab cov teeb pom kev zoo tshaj plaws hauv kuv lub tswv yim. Qhov no tuaj yeem hloov kho thiab hloov pauv kom haum rau txhua hom suab paj nruag lossis teeb pom kev zoo.
Txij li thaum kuv tau siv cov khoom siv rov ua dua uas yog txhua yam kuv muaj nyob rau lub sijhawm no kuv ntxiv tus chij tso cai rau qhov rov ua haujlwm nyob rau qhov tsawg kawg nkaus ntawm lub sijhawm kom tsis txhob ua rau hloov pauv/nrawm oscillations uas tuaj yeem ua rau puas tsuaj thiab cuam tshuam cov teeb pom kev zoo nkauj.
Thaum lub sijhawm dhau mus thiab qhov dav tsis tau tshwm sim dua cov coj yuav tawm thiab cov txheej txheem txuas ntxiv mus.
Kuv tab tom siv millis (), tsis ncua rau qhov no kom tsis muaj txoj cai thaiv nrog ncua. Yog li cov cai sau nrawm heev thiab ua haujlwm tau zoo.
Kauj ruam 4: Ntxiv Relays
CEEB TOOM: Thov ceev faj thaum cuam tshuam nrog AC voltages. Thov tau txais kev pab los ntawm tus kws tshaj lij/Hluav Taws Xob yog tias koj tsis paub meej. Nco tseg Kuv yog tus tso cai xaim xov tooj.
Txog qhov haujlwm no, Kuv tab tom siv cov khoom siv sib txuas ua rau Solid-state relays Kuv muaj tsuas yog rau DC qhov hluav taws xob/
Hnov.
Kuv pom zoo kom koj tau txais teeb tsa SSRs yog tias koj tseem tsis tau muaj cov khoom siv txuas ntxiv thiab npaj ua txoj haujlwm no.
Lawv sai dua thiab tseem ceeb dua nyob ntsiag to. Nco tseg SSR muaj qib qis tam sim no tshaj li cov tshuab xa xov tuaj yeem sau tseg tias muaj teeb ntau npaum li cas koj xav tso rau ntawm ib lub ntsaws thiab ntsuas qhov ntsuas tam sim no.
Kauj Ruam 5: Pawg Thawj Coj Ua Txhua Yam
Tom qab tau txais txhua yam los ua haujlwm li cas kuv xav Kuv tau tso txhua yam rau ntawm lub khob cij uas muag tau.
Nws yog tib daim duab qhia ib yam li ua ntej lub sijhawm no kuv siv lub laptop qub lub suab rau lub suab tawm thiab tawm.
Kuv muaj Arduino pro mini thiab lub khob cij fais fab mov kom lub rooj tsav xwm tuaj yeem siv tau los ntawm 12v dc jack/
Qhov 8x8 zaub tau txuas rau ib qho ntawm cov ntsia hlau qhov.
Kev xa tawm muaj li 6 tus pin JST txuas uas yuav muab Gnd, 5v, thiab 4 GPIOs los tswj 4 qhov xa tawm. Txog qhov haujlwm no, Kuv tsuas yog siv 3 ntawm cov kev xa tawm no thaum lub 4 ntsaws yog ib txwm nyob ze thiab yuav siv los ua qhov rov pib dua rau yav tom ntej thiab ua kom lub rooj tsavxwm muaj zog.
Kauj Ruam 6: Ua tiav + Yav Tom Ntej
Tag nrho qhov project video:
Koj tuaj yeem pab like share thiab subscribe.
Xyoo tom ntej kuv xav ntxiv wifi thiab RTC kom tso cai tswj chaw taws teeb thiab sijhawm. Tsis tas li, tus xa xov tooj cua FM yog li cov tsheb yuav tuaj yeem qhib lub suab. Qhov tseem ceeb tshaj plaws kuv yuav hloov qhov xa tawm rau SSRs. Kuv kuj tseem tuaj yeem hloov MSGEQ7 rau DSP thiab ua qhov kev tshuaj xyuas kom raug ntawm lub suab kom pom kev zoo dua.
Vam tias txhua tus muaj Christmas zoo thiab muaj kev zoo siab xyoo tshiab.
Pom zoo:
Tsis Siv Neeg Tshuab Luam Ntawv Tsis Siv Neeg Gumball: 18 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Tshuab Luam Ntawv Tsis Siv Neeg Gumball: Peb tau Ua Kov Tsis Pub Siv Gumball Siv lub micro: me ntsis, Crazy Circuits Bit Board, ntsuas qhov deb, siv servo, thiab duab los qhia. Ua nws thiab siv nws yog "BLAST" "! ? ? Thaum koj tso koj txhais tes rau hauv lub hauv paus ntawm lub foob pob hluav taws, lub ntsuas qhov deb
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Lub Teeb Siv Lub Teeb Tsis Siv Lub Tshuab.: 7 Kauj Ruam (nrog Duab)
Lub Teeb Siv Lub Tshuab Ntsuas Tsis Siv Lub Tshuab.: Cov lus qhia no yog hais txog kev siv lub ntsuas qhov ntsuas qhov yooj yim yam tsis siv Arduino lossis lwm yam khoom siv tswj hwm lossis lub cajmeem. Lub ntsuas ntsuas lub teeb qhia pom sib txawv ntawm lub teeb siv nrog xim sib txawv ntawm LED's. LED liab
DIY Christmas Teeb Teeb rau Suab Nkauj - Choreographed House Lights: 15 Kauj Ruam (nrog Duab)
DIY Christmas Teeb Teeb rau Suab Nkauj - Teeb Lub Tsev Teeb: DIY Christmas Teeb Teeb Rau Suab Nkauj - Choreographed Lub Tsev Teeb Qhov no tsis yog tus pib DIY. Koj yuav xav tau kev nkag siab ruaj khov ntawm cov khoom siv hluav taws xob, kev sib txuas, BASIC cov phiaj xwm thiab kev ntse txog kev nyab xeeb hluav taws xob. Qhov DIY no yog rau tus neeg paub dhau los thiaj li
Christmas Teeb rau Suab Nkauj Siv Arduino: 9 Kauj Ruam (nrog Duab)
Christmas Lights rau Music Siv Arduino: Kuv tus poj niam thiab kuv tau xav tsim peb tus kheej teeb-teeb-rau-nkauj qhia rau ob peb lub caij so kawg. Kev tshoov siab los ntawm ob Cov Lus Qhia hauv qab no, peb txiav txim siab thaum kawg pib xyoo no thiab kho peb RV. Peb xav tau ib leeg-hauv-ib qhov kev sib tw