Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Kauj Ruam 1: Software
- Kauj ruam 2: Kauj ruam 2: Kho vajtse
- Kauj Ruam 3: Kauj Ruam 3: Txoj Cai
- Kauj Ruam 4: Kauj Ruam 4: Nqis Nws thiab Kuaj Nws
Video: Huab Cua Raws Li Lub Tshuab Hluav Taws Xob (ESP8266 Raws Li Midi Generator): 4 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nyob zoo, hnub no kuv yuav piav qhia yuav ua li cas rau koj tus kheej me ntsis Huab cua raws li lub tshuab hluav taws xob.
Nws ua raws ESP8266, uas zoo ib yam li Arduino, thiab nws teb rau qhov kub thiab txias, nag thiab lub teeb ci.
Tsis txhob cia siab tias nws yuav ua tag nrho cov nkauj lossis ua ntu zus. Nws zoo dua li Kev Tsim Lub Suab Nkauj tib neeg qee zaum ua nrog Modular Synthesizers. Tab sis nws yog qhov kev xaiv me me tsawg dua qhov ntawd, nws ua raws qee qhov Nplai piv txwv.
Khoom siv
ESP8266 (Kuv siv Feather Huzzah ESP8266 los ntawm Adafruit)
BME280 Kub, Vaum thiab Barometric Siab Sensor (Tus I2C Version)
Arduino Los nag Sensor
25K LDR (Lub Teeb Ntsuas Tus Kheej)
Qee tus Resistors (ob 47, ib 100, ib 220 thiab ib 1k Ohm)
Poj niam Midi Connector (5 Pin Din) haum rau PCB mounting
Jumper Hlau
Breadboard lossis qee yam ntawm Prototyping board
Khoos phis tawj, Kuv yuav siv ib qho uas khiav Windows 8.1, tab sis nws yuav tsum ua haujlwm ntawm txhua OS raws li kuv paub.
Yeem: 1250 mAh LiPo roj teeb nrog JST txuas los ntawm Adafruit (tsuas yog sib xws nrog qee qhov ESP's)
Kauj ruam 1: Kauj Ruam 1: Software
Ua ntej tshaj plaws koj xav tau Arduino IDE.
Tom qab ntawd koj xav tau SiLabs CP2104 tus tsav tsheb thiab ESP8266 Pawg Tswj Xyuas Pob.
Qhov no tso cai rau koj lub khoos phis tawj los teeb tsa ESP los ntawm kev ua hauv UART thiab tso cai rau Arduino IDE los teeb tsa ESP.
Koj tuaj yeem pom tag nrho cov ntaub ntawv hais txog IDE, Tsav Tsheb thiab Pawg Thawj Coj ntawm nplooj ntawv no ntawm Adafruit lub vev xaib.
Koj tseem yuav xav tau Arduino Midi Library kom tuaj yeem xa cov ntaub ntawv Midi. Nws tuaj yeem ua tiav yam tsis muaj, tab sis qhov no tsuas yog ua rau txhua yam yooj yim dua.
Txhawm rau sib tham nrog BME280 Kuv siv lub tsev qiv ntawv BME280-I2C-ESP32. (Qhov no yog rau I2C version ntawm BME280)
Thiab lub tsev qiv ntawv ntawd tig los xav tau Adafruit Unified Sensor Driver. Qhov no tsis yog thawj zaug kuv xav tau lub tsev qiv ntawv no txhawm rau siv lub tsev qiv ntawv sib txawv yam tsis muaj teeb meem, yog li kuv ib txwm muaj Lub Tsev Qiv Ntawv bookmarked nyob qhov twg.
Kauj ruam 2: Kauj ruam 2: Kho vajtse
Al yog li peb thaum kawg tau txais cov khoom zoo, kho vajtse.
Raws li tau hais kuv tau siv Adafruit ESP no, tab sis nws yuav tsum ua haujlwm zoo nrog NodeMCU. Kuv pom zoo V2 version raws li kuv ntseeg tias nws haum zoo dua ntawm daim khob cij thiab koj tuaj yeem tau txais lawv pheej yig heev los ntawm eBay lossis AliExpress. Kuv nyiam qhov tseeb tias Adafruit ESP muaj CPU nrawm dua, los nrog tus poj niam JST txuas rau LiPo thiab them nqi hluav taws xob. Nws kuj tseem yooj yim me ntsis los txiav txim seb tus Pin koj siv. Kuv ntseeg ntawm NodeMCU tus pin Labeled D1 yog qhov tseeb GPIO5 piv txwv, yog li koj ib txwm xav tau Pinout daim ntawv qhia tau yooj yim. Tsis yog teeb meem loj hlo li, tab sis tsuas yog yooj yim rau cov neeg tshiab lawv tau sau lo lus Adafruit ib qho kom meej.
Ua ntej tshaj tawm txuas peb BME280, vim tias muaj qee qhov kev hloov pauv hauv cov qauv no. Raws li koj tuaj yeem pom los ntawm cov duab kuv muaj ib lub qhov loj, tab sis kuj tseem muaj qee qhov nrog 2 qhov. Koj tuaj yeem pom nws muaj 4 Hauv thiab Outputs, 1 rau lub zog, ib qho rau hauv av thiab SCL thiab SDA. Qhov no txhais tau tias nws sib txuas lus ntawm I2C. Kuv ntseeg tias lwm tus qauv sib tham ntawm SPI. Thiab hauv qee qhov koj tuaj yeem xaiv SPI lossis I2C. SPI yuav xav tau Lub Tsev qiv ntawv sib txawv lossis tsawg kawg cov lej sib txawv thiab cov xov sib txawv. Kuv kuj ntseeg S hauv SPI sawv cev rau Serial thiab kuv tsis tuaj yeem hais yog tias qhov no yuav cuam tshuam nrog Midi ib feem ntawm txoj haujlwm no vim tias tseem ua haujlwm ntawm Serial txuas.
Hooking no BME yog qhov ncaj ncaj rau pem hauv ntej. Ntawm ESP8266 koj tuaj yeem pom tus pin 4 thiab 5 tau sau tias SDA thiab SCL feem. Tsuas yog txuas cov pins ncaj qha rau SDA thiab SCL tus pin ntawm BME. Tau kawg tseem txuas VIN mus rau Txoj Kev Tsheb nqaj hlau zoo ntawm Breadboard thiab GND rau Txoj Kev Tsis Zoo. Cov no tau txuas nrog 3V3 thiab GND tus pin ntawm ESP.
Tom ntej no peb yuav txuas LDR. Hauv qhov piv txwv Fritzing koj tuaj yeem pom 3.3 volts dhau los ntawm tus tiv thaiv, tom qab ntawd nws tau faib rau LDR thiab lwm tus tiv thaiv. Tom qab ntawd LDR nws tau faib dua rau tus tiv thaiv thiab mus rau ADC.
Qhov no yog txhawm rau tiv thaiv ESP los ntawm kev tau txais cov hluav taws xob siab dhau thiab kom paub tseeb tias nws tau txais txiaj ntsig nyeem tau. ADC tuaj yeem tswj 0-1 Volts tab sis 3V3 xa tawm 3.3 volts. Tej zaum nws yuav tsis tshuab dab tsi yog tias koj nce siab dua 1 volt, tab sis nws yuav tsis ua haujlwm zoo.
Yog li thawj zaug peb siv Voltage Divider siv 220 thiab 100 ohm resistors kom txo qhov hluav taws xob los ntawm 3.3 txog 1.031 volts. Tom qab ntawd 25k ohm LDR thiab 1k ohm resistor tsim lwm Voltage Devider uas coj qhov hluav taws xob nqes los ntawm txhua qhov chaw ntawm 1.031 thiab 0 volts nyob ntawm seb muaj pes tsawg lub teeb uas LDR tau txais.
Tom qab ntawd peb muaj Rain Sensor. Ib feem hais tias FC-37, lwm qhov hais tias HW-103. Kuv nyuam qhuav yuav thawj tus kuv pom ntawm Ebay uas hais tias nws tuaj yeem ua haujlwm 3.3 thiab 5 volts. (Kuv xav tias lawv txhua tus tuaj yeem ua tau).
Qhov no zoo nkauj ncaj nraim, peb tuaj yeem siv Analog tso tawm, tab sis peb tsuas tuaj yeem tig lub Trimpot me me los ua kom lub ntsuas hluav taws xob zoo li peb xav tau (thiab peb twb tau siv peb tus lej Pin ntawm ESP). Ib yam li lwm qhov kev ntsuas peb yuav tsum muab Lub Hwj Chim los ntawm Txoj Kev Zoo thiab txuas nws mus rau hauv av tsheb nqaj hlau. Qee zaum qhov kev txiav txim ntawm tus pin sib txawv txawm tias. Ntawm kuv nws yog VCC, Av, Digital, Analog, tab sis ntawm daim duab Fritzing nws txawv. Tab sis yog tias koj tsuas yog ua tib zoo saib qhov no yuav tsum yooj yim kom raug.
Thiab thaum kawg, Midi Jack. Ntawm kuv daim Breadboard nws tsis tuaj yeem zaum ntawm ntug ntawm daim ntawv qhia zaub mov, vim tias cov pins tsis sib dhos. Yog tias qhov no cuam tshuam koj Kuv yuav sim kom tau lub khob cij nyob hauv khw muag khoom. Los yog tshuaj xyuas cov duab zoo heev.
Raws li koj tuaj yeem pom los ntawm cov phiaj xwm, qhov ntsuas hluav taws xob zoo thiab Serial teeb liab ob qho dhau los ntawm 47 ohm resistor.
Yog tias koj ua txoj haujlwm no nrog Arduino Uno piv txwv li nco ntsoov siv 220 ohm resistors !! Cov ESP no ua haujlwm ntawm 3.3 V logic, tab sis feem ntau Arduino siv 5.0 V yog li koj yuav tsum txwv qhov tam sim no uas hla Midi cable ntau dua.
Thiab thaum kawg txuas tus pin nruab nrab mus rau hauv av tsheb nqaj hlau. Lwm 2 tus pin los ntawm 5 Pin Din tsis siv.
Kauj Ruam 3: Kauj Ruam 3: Txoj Cai
Thiab thaum kawg peb muaj cov cai!
Hauv cov ntawv Zip no kuv tso 2 daim duab. 'LightRainTemp' tsuas yog sim ntsuas txhua qhov ntsuas thiab xa rov qab lawv qhov txiaj ntsig. (Nco ntsoov qhib lub Qhov Rooj Terminal!)
Thiab ntawm chav kawm peb muaj LRTGenerativeMidi (LRT sawv rau Lub Teeb, Los nag, Kub) kos duab.
Sab hauv koj tuaj yeem pom cov lus piav qhia hauv cov lus hais txog dab tsi tshwm sim. Kuv yuav tsis nkag mus rau qhov kuv tau sau tag nrho cov ntawv, uas yuav siv sijhawm teev. Yog tias koj xav paub qhov twg yuav pib nrog qee yam zoo li no kuv muaj qee qhov haujlwm hauv siab. Lub tshuab hluav taws xob me me Riff me me nrog ob peb lub nyees khawm thiab Sequencer nrog cov pawg ntawm cov yam ntxwv Kuv tsis tuaj yeem pom ntawm lwm tus qauv.
Tab sis cov uas kuv yuav tau ua kom tiav tsim thiab coding ua ntej. Qhia rau kuv paub yog tias koj xav tau khaws cia txog hnub tim txog lwm txoj haujlwm. Kuv tsis tau txiav txim siab yog tias kuv yuav ua qhia ntau ntxiv lossis ua yeeb yaj kiab.
Kauj Ruam 4: Kauj Ruam 4: Nqis Nws thiab Kuaj Nws
Thiab tam sim no nws yog lub sijhawm los sim nws!
Cias txuas ib lub xov tooj Midi, nco ntsoov teeb tsa koj li Synth/Keyboard los teb rau channel 1 lossis hloov cov channel hauv Arduino code thiab saib yog nws ua haujlwm!
Kuv mas xav pom thiab hnov dab tsi koj ua nrog nws. Yog tias koj hloov pauv, hloov kho tshiab, hloov kho (zoo li lub teeb pom kev zoo thiab ntsuas qhov kub. Sab nraum nws yuav ua haujlwm zoo dua lossis phem dua hauv qab) ib yam dab tsi.
Kuv kuj tseem xav paub seb nws ua haujlwm tau zoo nrog txhua Cov Khoom Siv Hluav Taws Xob. Ntawm kuv Volca Bass nws ua haujlwm zoo, tab sis ntawm kuv Neutron lub LFO tau nyam sai li sai tau thaum kuv xa Midi Note. Nws zoo thaum kuv rov pib dua nws, tab sis nws txawv. Kuv tsis paub tseeb tias muaj qee yam hauv Midi Library lossis hauv kuv tus lej, kuv yuav sim ua yam tsis muaj Lub Tsev Qiv Ntawv sai thiab pom tias nws tau zoo dua.
Ua tsaug rau kev nyeem thiab saib thiab hmoov zoo !!
Pom zoo:
Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Igniter: 6 Kauj Ruam (nrog Duab)
Cov Hluav Taws Xob Bluetooth Hluav Taws Xob Igniter: Puas yog nws zoo rau taws ntau dua ib lub foob pob hluav taws tib lub sijhawm? Lossis txawm tias muaj kev nyab xeeb nyob deb rau qhov phom sij txaus ntshai. Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub Circuit Court uas tuaj yeem ua tau li cas nrog kev pab ntawm Bluetooth ua haujlwm
Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Coj Qij: 3 Cov Kauj Ruam (nrog Duab)
Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Coj Qij: lub tshuab hluav taws xob AC me me 230 V siv ib leeg neodymium kheej kheej, lub kauj uas tsis muaj cov tub ntxhais los ntawm 230 V lub tshuab ua kom sib xyaw (A4 laminators lossis microwaves turntable motor), 3 V DC lub cev muaj zog (sab hauv cov khoom siv hluav taws xob tsheb), thiab roj teeb.Tested coj qhov muag teev 230 V 3 W - 9 W Fi
Arduino Cov Nqi Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Ntaus: 13 Cov Kauj Ruam (nrog Duab)
Arduino Cov Nqi Hluav Taws Xob Cov Hluav Taws Xob Hluav Taws Xob: Koj puas them ntau dhau rau koj cov nqi hluav taws xob? Koj puas xav paub ntau npaum li cas hluav taws xob koj lub hwj kais lossis lub rhaub dej kub? Ua rau koj tus kheej Portable Nqi Tus Nqi Hluav Taws Xob Hluav Taws Xob! Saib seb kuv pom li cas siv cov cuab yeej no
Ib Leeg Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: 6 Cov Kauj Ruam
Ib Leeg Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: Hauv qhov haujlwm no peb tab tom ua kom muaj Ib lub kauj induction lub cev Muaj zog, thiab ntau yam piav qhia ntxiv, cov qauv ntawm lub tshuab hluav taws xob no tau siv ntau yam khoom siv tam sim no. Peb lub cav tsis muaj lub zog loj, nws yog ntau ntxiv txog kev ua haujlwm
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: 6 Kauj Ruam
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: Nco tseg thiab ceev faj: CFL muaj cov mercury uas yog cov khoom phom sij, yog li nws yuav tsum tau ua raws li feem ntau CFL cov teeb, hluav taws xob hluav taws xob tau ua haujlwm zoo thiab tseem siv tau, tsuas yog lub teeb mus tsis zoo. CFL Circuit Court ntawm 18-24 Watts yog