Cov txheej txheem:

Theremoose - The Theremin Controlled Computer Mouse: 6 Kauj Ruam (nrog Duab)
Theremoose - The Theremin Controlled Computer Mouse: 6 Kauj Ruam (nrog Duab)

Video: Theremoose - The Theremin Controlled Computer Mouse: 6 Kauj Ruam (nrog Duab)

Video: Theremoose - The Theremin Controlled Computer Mouse: 6 Kauj Ruam (nrog Duab)
Video: Altura Theremin MIDI Controller TUTORIAL 2024, Hlis ntuj nqeg
Anonim
Theremoose - The Theremin Controlled Computer Mouse
Theremoose - The Theremin Controlled Computer Mouse
Theremoose - The Theremin Controlled Computer Mouse
Theremoose - The Theremin Controlled Computer Mouse
Theremoose - The Theremin Controlled Computer Mouse
Theremoose - The Theremin Controlled Computer Mouse

Txoj haujlwm no tau ua hauv kev koom tes nrog Randy Glenn, nco ntsoov xyuas nws ntawm no:

Txog ib lub lim tiam dhau los Kuv tau koom nrog hauv hackathon rau cov tswv yim txaus ntshai ntawm no hauv Toronto (stupidhacktoronto.com). Qhov no yog qhov tshwm sim ntawm lub lis piam ntawd.

Peb pib tawm nrog lub tswv yim sib txawv heev. Ib tus tswv cuab ntawm peb pab pawg tau ua tiav ib nrab ua tiav 3D cov phiaj xwm phiaj xwm, thiab ob lub ntsej muag lub ntsej muag, yog li peb lub tswv yim yog ua kom muaj qhov txaus ntshai etch-a-sketch, tswj cov phiaj xwm nrog lub ntsej muag lub ntsej muag. Hmoov tsis zoo, ib nrab hnub dhau los tom qab teeb meem teeb tsa lub ntsuas hluav taws xob, thiab thaum kawg tau txais lawv los ua haujlwm nrog raspberry pi thiab lub suab nrov tsim hluav taws xob, ib qho ntawm lub tshuab hluav taws xob ntawm lub phiaj xwm ua tsis tiav thiab yaj nws. Sab laug nrog lub phiaj xwm yaj thiab lub ntsej muag ruam piav qhia qhov khoom ntawd, peb xav tau lub tswv yim tshiab.

Qhov ntawd yog thaum nws tshwm sim rau peb, yuav ua li cas yog tias peb siv peb lub ntsej muag ruam li lub computer nas? Thiab yog li cas peb lub tswv yim tau yug los. Tej zaum koj yuav xav, vim li cas thiaj hu nws qhov ntawd, thaum nws pom meej tias muaj ib lub tsev? Zoo, kom nkag siab tiag, koj yuav tsum tsim ib qho rau koj tus kheej, tab sis hauv txoj ntsiab cai, lub npe nyob ntawd tau txiav txim siab vim tias tsis muaj tus nas tuaj yeem ua suab nrov ntau, qhov suab nrov zoo li moose. Peb kuj yog neeg Canadians, yog li txhua yam yuav tsum koom nrog cov mos lwj.

Nco tseg: Qhov no tsis yog qhov tseeb nyob hauv, vim nws tsis ua haujlwm siv lub peev xwm, theej yooj yim siv lub ntsej muag ntsuas. Tab sis nws tseem ua haujlwm zoo ib yam! Kuv twv koj tuaj yeem hu nws ua digital tam sim no?

Kauj Ruam 1: Sau Cov Khoom

Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom
Sau Cov Khoom

Peb tau muaj hmoo heev uas ib tus ntawm peb pab pawg yog tus tsim khoom txaus, thiab coj txhua yam xav tau los tsim txoj haujlwm no, thiab ntau ntxiv. Tab sis yog tias koj tsis muaj lub ntiaj teb cov khoom siv hluav taws xob zoo tshaj plaws hauv ntiaj teb, koj yuav tsum tau muab cov khoom no.

Koj yuav xav tau:

  • Teensy v3.0
  • Teensy suab ntaub thaiv npog
  • hais lus nrov ntawm qee yam
  • khawm khawm loj heev nrog ua hauv LED (lossis tsis muaj LED, tab sis LED ua rau nws lom zem dua)
  • ntau cov kab hluav taws xob
  • cov laug cam
  • 2x sparkfun piav tes piav taw (qhov no yog qhov hloov tshiab ntawm yam peb tau siv, txhua yam zoo ib yam tsuas yog saib nws zoo li cas)
  • 4 x LEDs
  • 5x transistors (PN2222A)
  • 5 x 470 ohm resistors
  • qee yam ntawm tus thav duab rau nas (peb siv ntoo, thiab khob yas, vam tias koj tuaj yeem ua tau zoo dua)

Kauj Ruam 2: Txhim Kho Cov Cwj Pwm Taw

Txhim Kho Cov Cwj Pwm Cuam Tshuam
Txhim Kho Cov Cwj Pwm Cuam Tshuam
Txhim Kho Cov Cwj Pwm Cuam Tshuam
Txhim Kho Cov Cwj Pwm Cuam Tshuam
Txhim Kho Cov Cwj Pwm Cuam Tshuam
Txhim Kho Cov Cwj Pwm Cuam Tshuam
Txhim Kho Cov Cwj Pwm Cuam Tshuam
Txhim Kho Cov Cwj Pwm Cuam Tshuam

Rau kuv, qhov no yog qhov lom zem tshaj plaws. Txuas txhua yam.

Txhawm rau pib, peb yuav tsum ua qee qhov kev hloov kho rau sab xis tes sensor nkaus xwb (qhov no yog qhov uas yuav txav koj tus nas nce thiab nqis):

  1. Tshem cov kab laug sab txuas rau "I2C Pullup" pawm.
  2. Choj cov ntaub ntawv "Addr".

Kuv tau kos daim duab me me qhia qhov twg cov pawm no pom saum toj no.

Tam sim no koj muaj txoj cai ntsuas lub tes hloov kho, xaim ob lub ntsuas mus rau Teensy board tib yam nkaus:

  1. Txuas hauv av rau hauv av (GND rau GND).
  2. Txuas VCC ntawm lub ntsuas hluav taws xob rau 3.3v ntawm Teensy.
  3. Txuas cov ntaub ntawv tus pin ntawm cov ntsuas (DA) rau tus pin 18 ntawm Teensy.
  4. Txuas lub moos tus pin ntawm lub ntsuas (CL) rau tus pin 19 ntawm Teensy.

Qhov ntawd yog txhua yam, cov sensors tau txuas nrog!

Kauj Ruam 3: Txhim Kho Txhua Yam Ntxiv

Txhim Kho Txhua Yam
Txhim Kho Txhua Yam
Txhim Kho Txhua Yam
Txhim Kho Txhua Yam

Tam sim no tias cov ntsuas tau txuas nrog, cia peb txuas txhua yam ntxiv rau Teensy. Muaj cov lus qhia hauv qab no, thiab txhais tes kos duab nrog cov duab saum toj no, vam tias qhov ntawd txaus los piav qhia txog kev thaiv kab mob kom raug!

Khawm

Hlau khawm kom tus pin 0 ntawm Teensy, thiab hauv av. Nco ntsoov tias koj xaim lub khawm ib txwm qhib (sau tsis yog thiab COM ntawm peb lub pob).

Txhawm rau xaim LED, yog tias koj muaj LED ua rau hauv koj lub pob zoo li peb ua:

  1. txuas Teensy tus pin 1 rau lub hauv paus ntawm koj lub transistor
  2. txuas tus emitter rau hauv av
  3. txuas tus neeg khaws khoom mus rau qhov anode ntawm LED
  4. xaim cov cathode ntawm LED rau +3.3v ntawm Teensy, nrog 470 ohm resistor hauv koob

Qhov taw qhia LEDs

Cov no yuav muab cov lus tawm tswv yim kom koj paub tias koj tus nas txav mus li cas, koj paub, yog tias koj xav siv koj li ntawd thaum tsis saib lub monitor. Okay, zoo, peb tau ntxiv lawv vim tias tsis muaj txoj haujlwm ua tiav yam tsis muaj lub teeb pom kev tawm ntawm lub teeb.

Peb ntxiv plaub LEDs, thiab txhua tus tau txuas rau Teensy tus pin los ntawm 2 txog 5, xaim lawv li no:

  1. txuas lub hauv paus ntawm transistor rau ib qho ntawm 4 Teensy pins saum toj no.
  2. txuas tus emitter rau hauv av
  3. txuas tus neeg khaws khoom mus rau qhov anode ntawm LED
  4. xaim cov cathode ntawm LED rau +3.3v ntawm Teensy, nrog 470 ohm resistor hauv koob

Hais lus

Tsuas yog ntsaws lawv rau hauv Teensy audio shield. Nws muaj 1/8 audio jack.

Yog tag nrho! Tsis muaj dab tsi ntxiv rau xaim hauv txoj haujlwm no.

Kauj ruam 4: Software

Software!
Software!

Cov cai rau txoj haujlwm no txuas nrog hauv qab no:

drive.google.com/file/d/1hLA2Aydn1qutxAOlt…

Koj yuav tsum muaj peev xwm rub nws los ntawm qhov txuas ntawd thiab qhib nws hauv Arduino IDE, xa nws mus rau koj pawg thawj coj, thiab kom txhua yam ua haujlwm tau zoo. Tab sis qhov ntawd tho txawv! Sim sim nrog cov cai, thiab hloov pauv tsis. Peb tau muaj kev lom zem ntau rau kev sim nrog hom yoj uas tuaj yeem tsim los ntawm Teensy. Peb tshawb pom tias nthwv dej pom hniav yog qhov nyuaj tshaj plaws. Muaj cov duab saum toj no ntawm qhov ntsuas uas yuav tsum tau hloov kho kom hloov pauv qhov yoj.

Thaum cov cai tau rub tawm, thaum koj ntsaws koj Teensy rau hauv lub khoos phis tawj, nws yuav ua tus nas! Qhov no tuaj yeem cuam tshuam thaum koj tab tom sim hloov kho cov cai, thiab qee tus neeg ua si nrog nws. Thaum Teensy thawj zaug tau ntsaws, nws tuaj yeem nkag mus rau ib ntawm ob hom. Yog tias koj tuav lub pob loj cia thaum nws ua haujlwm, nws yuav nyob rau hauv hom ntsiag to (zoo rau kev siv hauv tsev), yog tias koj tsuas ntsaws nws, nws yuav nrov nrov (zoo tshaj plaws los tshem tawm lub khw kas fes yog tias koj tuaj yeem ' t nrhiav tau lub rooj zaum).

Kauj Ruam 5: Mount Txhua Yam Kom Nws Siv Tau

Mount txhua yam kom nws siv tau
Mount txhua yam kom nws siv tau

Nov yog theem uas koj tau txais kev muaj tswv yim! Peb tau tsim lub thav duab rau qhov siv cov ntoo ntxiv, teeb tsa lub ntsuas pa ntawm ob sab ntawm lub khoos phis tawj, thiab siv lub khob liab liab (ntim nrog pob zeb) tuav lub pob, uas yuav siv los nyem (peb siv lub khob liab liab vim tias nws yog qhov siab zoo tshaj plaws los tsoo koj lub puab tsaig).

Kuv xav tias qhov no yog qhov kev daws teeb meem zoo tshaj plaws raws li peb tau nyob ntawm hackathon, thiab ua qee yam ntawm tus ncej rau nws yog lub tswv yim feeb kawg, tab sis kuv kuj xav tias koj tuaj yeem ua tau zoo dua, yog li koj tuaj nrog, thov qhia tawm nrog kuv!

Txawm li cas los xij koj txiav txim siab txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau sab laug thiab sab xis. Peb pom tias qhov no yog qhov yooj yim tshaj plaws los tswj.

Koj tuaj yeem pom peb cov kab ke hauv daim duab saum toj no.

Kauj Ruam 6: Koj Ua Tiav lawm! Muaj Kev Lom Zem

Image
Image
Koj Ua Tiav lawm! Muaj Kev Lom Zem!
Koj Ua Tiav lawm! Muaj Kev Lom Zem!
Koj Ua Tiav lawm! Muaj Kev Lom Zem!
Koj Ua Tiav lawm! Muaj Kev Lom Zem!

Txoj hauv kev zoo tshaj plaws los qhia koj yuav siv qhov no, yog qhia koj li video. Koj tuaj yeem saib cov vis dis aus saum toj no kom pom qhov sib txawv hauv kev nqis tes ua. Nov yog nws tau siv los ua si Minecraft thiab Minesweeper, tab sis koj tsis tas yuav tsum tau ua si uas pib nrog "kuv li", qhov muaj peev xwm ntawm qhov ntawd tsis muaj qhov kawg!

Yog tias koj tsim ib qho ntawm cov no, thov qhia rau kuv paub! Thiab thov tseem qhia qhov kev siv zoo tshaj plaws rau qhov tsis txaus ntseeg, qhov tsim tawm ntawm cov thev naus laus zis.

Peb kuj tseem yuav txaus siab rau nws yog tias koj tau pov npav rau peb hauv kev sib tw suab, vim li cas lwm qhov muaj peev xwm hais txog kev tsim suab paj nruag tuaj yeem zoo dua li qhov ntawd?

Peb muaj kev lom zem heev los tsim txoj haujlwm no, thiab peb vam tias koj yuav ua!

Pom zoo: