Cov txheej txheem:

JackLit: 6 Kauj Ruam
JackLit: 6 Kauj Ruam

Video: JackLit: 6 Kauj Ruam

Video: JackLit: 6 Kauj Ruam
Video: Tshuav 6 Lub Hlis (A HeartBreaking Story That Will Make You Cry) 2024, Hlis ntuj nqeg
Anonim
JackLit
JackLit

Txoj haujlwm no tau ua los ntawm cov tub ntxhais kawm koom nrog kev koom tes ntawm Fremont Academy Femineers thiab Pomona College Electronics 128 chav kawm. Txoj haujlwm no tau npaj los ua ke hex-ware thev naus laus zis rau hauv lub tsho lom zem uas ua kom pom kev zoo nkauj nrog suab paj nruag. Peb "JackLit" tuaj yeem hnov suab paj nruag txawm hais tias lub microphone thiab siv Fast Fourier hloov pauv cov lej txhawm rau txheeb tawm cov zaus hauv cov nkauj uas tuaj yeem suav tau thiab siv los cais qhov tshwj xeeb teeb pom kev zoo ntawm lub tsho. Hauv kev ua li ntawd, pawg pawg electroluminescent, txuas hauv kab, ua kom pom lub suab ntawm ib zaj nkauj twg raws li qhov ntau zaus uas lub microphone hnov. Kev siv txoj haujlwm no yog txhawm rau muab lub tsho lom zem uas tuaj yeem ua rau lub suab ntawm txhua zaj nkauj. Nws tuaj yeem hnav rau ntawm cov xwm txheej sib tham lossis siv rau cov khoom sib txawv ntawm cov khaub ncaws. Kev siv thev naus laus zis tuaj yeem siv hauv khau, ris, kaus mom, thiab lwm yam. Nws kuj tseem tuaj yeem siv los teeb teeb pom kev zoo ntawm kev nthuav qhia thiab kev hais kwv txhiaj.

Kauj ruam 1: Cov ntaub ntawv

Txhua cov ntaub ntawv tuaj yeem nrhiav tau ntawm adafruit.com thiab amazon.com.

  • 10cmX10cm dawb electroluminescent vaj huam sib luag (x3)
  • 10cmX10cm xiav electroluminescent vaj huam sib luag (x4)
  • 10cmX10cm aqua electroluminescent vaj huam sib luag (x3)
  • 20cmX15cm aqua electroluminescent vaj huam sib luag (x2)
  • 100 cm ntsuab electroluminescent daim kab xev (x3)
  • 100 cm liab electroluminescent daim kab xev (x4)
  • 100 cm xiav electroluminescent daim kab xev (x2)
  • 100 cm dawb electroluminescent daim kab xev (x1)
  • 12 volt inverter (x4)
  • SainSmart 4 channel relay module (x1)
  • 9 volt roj teeb (x5)
  • 9 volt snap txuas (x5)
  • Ntau cov xov hlau
  • HexWear

Kauj ruam 2: Arduino Software

Ua ntej koj pib tsim JackLit, koj yuav tsum muaj cov cuab yeej tsim nyog raug cai los tswj nws. Ua ntej, koj yuav tsum mus rau Arduino lub vev xaib thiab rub tawm Arduino IDE. Thaum qhov ntawd ua tiav, ntawm no yog cov kauj ruam uas koj yuav tsum tau ua raws kom teeb tsa los ua haujlwm rau koj li Hex.

  1. (Windows nkaus xwb, Mac cov neeg siv tuaj yeem hla cov kauj ruam no) Nruab tus tsav tsheb los ntawm kev mus xyuas https://www.redgerbera.com/pages/hexwear-driver-i… Rub tawm thiab teeb tsa tus tsav tsheb (cov ntaub ntawv.exe teev nyob rau theem 2 ntawm sab saum toj ntawm nplooj ntawv RedGerbera txuas).
  2. Nruab ib lub tsev qiv ntawv xav tau rau Hexware. Qhib Arduino IDE. Hauv qab "File" xaiv "Preferences." Hauv qhov chaw muab rau Tus Thawj Saib Xyuas Ntxiv URLs, muab tshuaj txhuam https://github.com/RedGerbera/Gerbera-Boards/raw/…. Tom qab ntawd nyem "OK." Mus rau Cov Cuab Yeej -> Pawg Thawj Coj: -> Tus Thawj Saib Xyuas Haujlwm. Los ntawm cov ntawv qhia zaub mov sab laug sab saud, xaiv "Koom Nrog." Tshawb nrhiav, thiab tom qab ntawd nyem rau ntawm Gerbera Boards thiab nyem Nruab. Tawm thiab rov qhib Arduino IDE. Txhawm rau kom ntseeg tau tias lub tsev qiv ntawv tau teeb tsa kom raug, mus rau Cov Cuab Yeej -> Pawg Thawj Coj, thiab nqes mus rau hauv qab ntawm cov ntawv qhia zaub mov. Koj yuav tsum pom ntu ntu hu ua "Gerbera Boards," nyob rau hauv uas yuav tsum muaj tsawg kawg tshwm sim HexWear (yog tias tsis muaj cov laug cam ntau dua li mini-HexWear).

Kauj ruam 3: Inverter Layout

Inverter Layout
Inverter Layout

Daim duab no qhia txog kev sib txuas ntawm lub roj teeb 9 volt sib txuas rau lub inverters thiab tom qab ntawd mus rau lub tsho. Nco ntsoov tias ob khub ntawm cov xov hluav taws xob tawm ntawm txhua lub tshuab hluav taws xob nqa AC tam sim no thiab nws yog qhov tseem ceeb uas cov xov hlau txuas nrog ua ke los ntawm cov inverters yog nyob rau theem, txwv tsis pub cov nyiaj tau los yuav tsis yog 1.

Kauj ruam 4: Relay Layout

Relay txheej txheem
Relay txheej txheem

Qhov no yog qhov txuas ntxiv ntawm Circuit Court los ntawm Kauj Ruam 3 sau tias "rau cov hloov pauv" uas txuas Hex mus rau cov hloov pauv (cov qauv xa tawm).

Kauj ruam 5: Tsim

Tsim!
Tsim!

Txuas lub 9 volt roj teeb thiab cov inverters raws li qhia hauv daim duab 1. Tsib 9 volts yuav tsum tau ua tib zoo txuas thiab txuas mus rau plaub lub inverters tseem nyob ua ke. Cov xov hluav taws xob los ntawm cov inverters yuav tsum txuas nrog ua ke thiab hauv theem. Ib qho ntawm cov khoom siv hluav taws xob tso tawm cov xov hluav taws xob yuav tsum tau muab tso tseg kom sib txuas ncaj qha rau cov hluav taws xob hluav taws xob ntawm lub tsho. Lwm qhov yuav txuas nrog tus qauv txuas. Nco ntsoov tias qhov twg mus qhov twg yog qhov xav tau vim tias peb tab tom cuam tshuam nrog AC Circuit. Zoo li tau piav qhia hauv Kauj Ruam 4, koj yuav tsum faib cov xov hlau sib txuas ua peb qho, txhua qhov txuas mus rau ib ntawm plaub qhov hloov pauv. Ib qho kev hloov pauv yuav tsis siv. Saib cov lus qhia ntawm adafruit.com lossis amazon.com kom paub qhov twg koj cov xov hlau yuav tsum txuas mus rau qhov hloov pauv. Lwm lub xaim yuav tsum txuas nrog txhua qhov hloov pauv uas yuav tau teeb ib sab txhawm rau txuas mus rau cov khoom siv hluav taws xob hluav taws xob ntawm lub tsho. Nco ntsoov txuas tus qauv xa mus rau Hex kom tsim nyog raws li qhia hauv Kauj Ruam 4 thiab siab dua.

Tsiv mus rau qhov kev sib txuas ua ke rau hauv lub tsho. Tam sim no peb muaj txheej ntawm peb txoj xov hlau uas txuas rau lub inverters, thiab lwm txheej ntawm peb lub xov hlau uas txuas rau lub xov tooj. Lawv nyob hauv peb pawg vim tias peb muaj 3 txoj kab sib txuas ntawm cov vaj huam sib luag electroluminescent ntawm lub tsho. Cov vaj huam sib luag electroluminescent tuaj yeem kub kub rau ntawm lub tsho, thiab lub qhov txiav hauv cov ntaub los xov cov xov hlau kom lawv tsis pom nyob sab nraud. Cov kauj ruam tom ntej yog qhov yooj yim tshaj plaws tab sis txaus siab tshaj plaws vim tias txhua lub vaj huam sib luag electroluminescent. Xaiv cov vaj huam sib luag twg koj xav kom pom kev ib txhij. Koj tuaj yeem xaiv peb pawg ntawm pawg, thiab txhua tus yuav tsum txuas nrog ua ke. Yuav tsum muaj cov xov hluav taws xob nkag tau zoo hauv cov kab hluav taws xob thiab cov xov tooj tsis zoo nyob rau hauv ib txhij, txawm hais tias qhov zoo thiab tsis zoo yog qhov xav tau vim tias nws yog AC Circuit. Txuas ib ntawm peb txoj xov hlau los ntawm cov inverters mus rau txhua ntawm peb pawg electroluminescent teeb pom kev zoo ib yam. Tom qab ntawd txuas ib qho ntawm peb lub xov hlau los ntawm cov hloov hluav taws xob mus rau txhua ntawm peb pawg electroluminescent teeb pom kev zoo ib yam. Nco ntsoov npog cov xov hlau uas nthuav tawm vim tias lawv yuav ua rau koj poob siab.

Kauj ruam 6: Coding

Peb tus lej siv Arduino Fast Fourier Transform (fft) lub tsev qiv ntawv txhawm rau txhawm rau ua suab nrov hauv cov zaus uas Hex hnov. Qhov lej tom qab Fourier Transforms yog qhov nyuaj me ntsis, tab sis tus txheej txheem nws tus kheej tsis nyuaj heev. Ua ntej, Hex hnov suab nrov, uas yog qhov tseeb ua ke ntawm ntau qhov sib txawv sib txawv. Lub Hex tsuas tuaj yeem mloog rau qee lub sijhawm ua ntej nws yuav tsum tshem tag nrho cov ntaub ntawv thiab ntxiv, yog li txhawm rau kom nws hnov lub suab nrov, lub suab nrov ntawd yuav tsum yog feem ntau ib nrab ntawm lub sijhawm uas Hex mloog txij li Hex yuav tsum tau hnov nws ob zaug rau nws kom paub tias nws yog nws tus kheej zaus. Yog tias peb tau teeb tsa lub suab dawb huv raws li kev ua haujlwm ntawm qhov dav thiab lub sijhawm, peb yuav pom lub sine yoj. Txij li qhov tseeb tones dawb tsis yog ib txwm muaj, qhov peb pom hloov yog qhov tsis meej pem zoo nkauj thiab kab wiggly kab. Txawm li cas los xij, peb tuaj yeem kwv yees qhov no nrog qhov sib txawv ntawm ntau lub suab dawb huv sib luag mus rau qib siab zoo nkauj ntawm qhov raug. Nov yog qhov fft lub tsev qiv ntawv ua: nws siv lub suab nrov thiab tsoo nws mus rau qhov sib txawv uas nws hnov. Hauv cov txheej txheem no, qee qhov zaus uas lub tsev qiv ntawv fft siv los kwv yees lub suab nrov tiag tiag muaj qhov dav ntau dua li lwm qhov; uas yog, qee qhov nrov dua lwm tus. Yog li, txhua zaus uas Hex tuaj yeem hnov kuj muaj qhov sib xws sib luag, lossis ntim.

Peb cov cai ua fft kom tau txais cov npe ntawm qhov ntau ntawm txhua zaus hauv qhov ntau uas Hex tuaj yeem hnov. Nws suav nrog cov cai uas ob qho tib si luam tawm cov npe ntawm cov zaus thiab qhov dav, thiab teeb tsa lawv ib yam kom cov neeg siv tuaj yeem txheeb xyuas tau tias Hex yeej tau hnov ib yam dab tsi, thiab nws zoo li cuam tshuam rau kev hloov pauv hauv qhov ntim ntawm Hex yog dab tsi hnov. Los ntawm qhov ntawd, txij li peb txoj haujlwm muaj 3 qhov hloov pauv, peb tau tawg qhov sib txawv mus rau peb feem: qis, nruab nrab, thiab siab thiab ua rau txhua pab pawg sib raug rau qhov hloov pauv. Lub Hex sau los ntawm cov zaus uas nws tau hnov thiab yog tias muaj dab tsi hauv pab pawg qis/nruab nrab/siab dhau ntawm qhov ntim, tom qab ntawd qhov hloov pauv sib xws nrog pab pawg uas qhov zaus sib koom ua rau qhib thiab txhua yam tso tseg kom tso lub teeb nyob. nyob rau Qhov no txuas ntxiv mus txog rau txhua zaus uas tau txheeb xyuas, thiab tom qab ntawd Hex mloog dua thiab tag nrho cov txheej txheem rov ua dua. Txij li thaum peb muaj 3 tus hloov pauv, qhov no yog li cas peb faib cov zaus, tab sis qhov no tuaj yeem yooj yim ntsuas rau txhua tus lej hloov pauv.

Ib daim ntawv ceeb toom ntawm qee qhov txawv ntawm cov cai. Qhov laj thawj uas thaum peb rov ua dua los ntawm qhov hloov pauv zaus pib ntawm 10 yog vim tias ntawm qhov zaus ntawm 0, qhov siab tshaj yog siab heev tsis hais txog qib suab nrov vim yog DC offset, yog li peb tsuas yog pib tom qab lub pob ntawd.

Saib cov ntawv txuas nrog rau cov cai tiag peb tau siv. Xav tias dawb ua si nrog nws kom nws ntau dua lossis tsawg dua, lossis ntxiv ntau pawg teeb pom kev yog tias koj xav tau! Muaj kev lom zem!

Pom zoo: