Cov txheej txheem:

Bass, Treble, thiab Volume USB Controller Nrog Keyboard LEDs: 6 Cov Kauj Ruam (nrog Duab)
Bass, Treble, thiab Volume USB Controller Nrog Keyboard LEDs: 6 Cov Kauj Ruam (nrog Duab)

Video: Bass, Treble, thiab Volume USB Controller Nrog Keyboard LEDs: 6 Cov Kauj Ruam (nrog Duab)

Video: Bass, Treble, thiab Volume USB Controller Nrog Keyboard LEDs: 6 Cov Kauj Ruam (nrog Duab)
Video: LM386 Audio Amplifier Circuit With Bass Boost and Volume Control 2024, Hlis ntuj nqeg
Anonim
Bass, Treble, thiab Volume USB Controller Nrog Keyboard LEDs
Bass, Treble, thiab Volume USB Controller Nrog Keyboard LEDs
Bass, Treble, thiab Volume USB Controller Nrog Keyboard LEDs
Bass, Treble, thiab Volume USB Controller Nrog Keyboard LEDs

Kuv muaj Creative SoundBlaster Audigy hauv kuv lub khoos phis tawj lub computer tseem ceeb thiab kuv xav tau ib txoj hauv kev los kho cov ntses bass thaj tsam thiab suab nrov sai (nrog rau lub ntim) thaum mloog suab lossis vis dis aus.

Kuv tau yoog raws txoj cai los ntawm ob qhov chaw muab rau hauv cov lej-npe, thiab tseem nyob hauv qhov txuas ntawm qhov kawg, uas ua rau siv Arduino Micro los ntawm Arduino lub koom haum, lossis lwm yam ATmega32u4, raws li USB Tib Neeg Kev Sib Txuas Ntaus los ntawm kev siv Nico Hood HID-Project cov tsev qiv ntawv.

Kuv kuj tseem siv lub keyboard wireless uas tsuas yog qhia lub xeev ntawm Caps-lock, Num-lock thiab Scroll-lock keys rau lub sijhawm luv luv kom nws lub roj teeb ntau dua. Yog li kuv kuj tseem suav nrog peb lub LED uas qhia txog cov xwm txheej ntawm peb cov keyboard ua haujlwm no.

Vim tias Micro tuaj yeem rov ua dua tau yooj yim txawm tias tom qab muab nws tso rau hauv qhov chaw nkag los ntawm USB chaw nres nkoj, koj tuaj yeem hloov kho tus lej kom haum rau tus yam ntxwv ntawm koj tus kheej lub cuab yeej suab thiab keyboard los ntawm kev hloov pauv cov cim qhia siv hauv tus lej nrog koj tus kheej xaiv. Muaj cov npe loj ntawm txhua txoj haujlwm uas koj tuaj yeem siv muaj nyob ntawm Nico Hood HID Github lub vev xaib - tshuaj xyuas cov ntaub ntawv npe ConsumerAPI.h rau tag nrho lwm cov haujlwm HID.

Kauj Ruam 1: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Arduino Micro lossis lwm yam ATmega32u4 raws Arduino board xws li Sparkfun Pro Micro. Leonardo tuaj yeem siv tau tab sis nws yog pawg thawj coj loj heev piv rau micro…

5 LEDs ntawm cov xim sib txawv

5 x 470 ohm resistors

4 x pushbutton keyboards

Rotary encoder nrog A B C thiab hloov kev sib txuas

Cov ntaub thaiv me me, pob qhov rooj, kab laug sab, txuas xov hlau thiab lwm yam.

Kauj Ruam 2: Kev tsim kho

Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho

Cov ntsiab lus tau muab hauv cov duab, cov phiaj xwm thiab Fritzing stripboard layouts. Kuv siv ob daim phiaj me me - ib lub tsev 4 LEDs thiab plaub lub hloov pauv, thiab lwm qhov rau qhov ntim ntim xiav qhia qhov taw qhia LED, thiab cov kab ntawv loj dua rau lub micro thiab cov encoder teb. Lawv tau txuas nrog los ntawm txoj kev 9 txoj kev thiab ob txoj kab hlua kab.

Kauj ruam 3: Software

Raws li tau hais los ntawm USB Volume no, Bass, thiab Treble Control siv lub tshuab ntsuas teb raws li lub ntim tswj nrog lub kaw lus ntsiag to/tsis qhib, thiab Bass thiab Treble tswj los ntawm plaub khawm nce thiab nqis.

Nws kuj muaj PC Keyboard LED ntsuas uas yog Caps-lock, Scroll-lock, thiab Num-lock.

Nws siv Arduino Micro (lossis lwm yam ATmega32u4-based) MCU thiab cov cai raws li kev hloov pauv xeev ISR roto_sm.ino los ntawm boolrules ntawm Arduino lub rooj sab laj, uas qhia meej qhov sib txawv nce thiab nqis.

Txoj cai kuj tseem ua raws li pleriche's USB Volume Control thiab Caps Lock LED qhia.

Nws xav tau Nico Hood HID-Project lub tsev qiv ntawv ntawm github: rub lub tsev qiv ntawv ua zip file thiab rho tawm nws, tom qab ntawd luam daim nplaub tshev rau koj lub tsev qiv ntawv Arduino hauv qab koj cov ntawv tais ceev tseg.

Vim tias Micro tuaj yeem rov ua dua tau yooj yim los ntawm nws qhov chaw nres nkoj USB, koj tuaj yeem hloov kho tus lej kom haum rau tus yam ntxwv ntawm koj tus kheej lub cuab yeej suab thiab keyboard los ntawm kev hloov pauv kev tshaj xov xwm qhia siv hauv tus lej nrog koj tus kheej xaiv.

Muaj cov npe loj ntawm txhua txoj haujlwm uas koj tuaj yeem siv muaj nyob ntawm Nico Hood HID Github lub vev xaib - tshuaj xyuas cov ntaub ntawv npe ConsumerAPI.h rau txhua qhov lwm HID ua haujlwm uas tuaj yeem suav nrog kev ua haujlwm xws li pw lossis rov qhib qhov tseem ceeb thiab lwm yam Kuv muaj suav nrog cov duab ntawm kev tsim kho raws li nws tau nce mus.

Kauj ruam 4: Txuas

Arduino Micro Cov

Lub xeev tshuab ISR roto_sm.ino los ntawm boolrules

P LeRiche USB Volume Control thiab Caps Lock LED

Nico Hood HID-Project Github lub tsev qiv ntawv

Kauj Ruam 5: Ntxiv Bass thiab Treble Rotary Controls

Ntxiv Bass thiab Treble Rotary Controls
Ntxiv Bass thiab Treble Rotary Controls

Nws muaj peev xwm hloov pauv plaub lub pob nyem uas tswj cov ntses bass thaj tsam thiab suab paj nruag nrog ob txoj hauv kev tswj. Schematic2 muab cov ntsiab lus thiab Sketch nyob hauv Sketch2.

Ob lub laub khawm ntawm txhua qhov kev tswj hwm tau siv los ua kom muaj zog ntses bass thaj tsam thiab nce siab ntxiv ib feem.

Kauj Ruam 6: Siv Sparkfun Pro Micro rau Cov Ntaub Ntawv Me Me

Siv Sparkfun Pro Micro rau Cov Case Me
Siv Sparkfun Pro Micro rau Cov Case Me
Siv Sparkfun Pro Micro rau Cov Case Me
Siv Sparkfun Pro Micro rau Cov Case Me

Koj tuaj yeem siv qhov me me ntawm Arduino Micro uas yog Sparkfun Pro Micro los ua lub thawv me me rau Bass Treble Volume thiab Keyboard LED USB Controller.

Photo5 thiab Photo6 muab cov ntsiab lus ntawm kev tsim thiab koj tuaj yeem siv Sketch3 rau Pro Micro

Pom zoo: