Cov txheej txheem:

Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow: 6 Cov Kauj Ruam
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow: 6 Cov Kauj Ruam

Video: Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow: 6 Cov Kauj Ruam

Video: Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow: 6 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow
Skype rau Kev Lag Luam Raws Li Txoj Cai WS2812 RGB LED Desk Underglow

Kuv nyob deb ntawm thawj tus neeg los ua lub teeb hloov xim raws li xwm txheej ntawm koj li Skype rau Kev Lag Luam, tab sis kuv xav tias kuv yog thawj tus neeg sau ntawv qhia siv qhov chaw nyob WS2812 LED strips. Kuv nyiam cov teeb no vim tias nrog kho vajtse tsawg heev (kab txaij, lub zog/cov ntaub ntawv/hauv av) koj tuaj yeem muaj cov teeb ci LED ntau. Koj tsis tas yuav siv cov tshuaj tiv thaiv kab mob, lub zog hloov hluav taws xob, lossis cais cov xov hlau rau Liab/Ntsuab/Xiav. Lawv tuaj yeem ua tau ntau dua li tso saib cov xim zoo ib yam siv hauv txoj haujlwm no.

Hu nrov nrov tawm rau Hackster rau kev qhia thiab tus lej Kuv siv los ua lub hauv paus rau kuv-txheeb xyuas nws, lawv tej zaum yuav sau tau zoo dua li kuv: https://www.hackster.io/matheus-fenner/skype-statu …

Lawv qhov project github:

Kuv yeej coj lawv txoj haujlwm thiab ntxiv ntau yam ntxiv. Muaj lwm Cov Lus Qhia ntawm no uas siv qhov kev tshuaj xyuas sib txawv thiab muaj lub teeb ua haujlwm ploj. Kuv xav tias cov duab ua kom txias, tab sis txiav txim siab tias rau lub rooj puv hauv qab zoo ib yam li kuv lub teeb uas ploj mus yuav cuam tshuam rau txhua tus neeg hauv chaw ua haujlwm.

Kauj Ruam 1: Cov Khoom thiab Cov Cuab Yeej

Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej

Software

  • Rub tawm qhov tseeb Arduino kos duab thiab.exe ntawm kuv github:
  • Koj yuav xav tau Arduino IDE txhawm rau upload nws mus rau koj lub microcontroller.
  • Yog tias koj xav hloov kho txoj haujlwm koj tus kheej koj yuav xav tau Visual Studio.

Kho vajtse

  • WS2812B LED sawb - nws tuaj yeem muaj lub npe WS2811/WS2812/WS2812B - lawv zoo ib yam, tsuas yog them nyiaj rau qhov hluav taws xob ntawm koj lub sawb (lossis pixels) [eBay tshawb nrhiav] [Amazon tshawb nrhiav]
  • DC chim jack (poj niam) nrog cov ntsia hlau txuas - lub teeb xav tau lub zog ntau dua USB 2.0 lossis Arduino Uno tuaj yeem muab khoom, yog li kuv tau siv lawv nrog lub hwj chim 12V tsis siv. Cov kab hluav taws xob no yog txoj hauv kev zoo los cuam tshuam nrog DC cov khoom siv hluav taws xob yam tsis muaj kev hloov pauv ntawm cov khoom tsim nyog. [eBay]
  • 12V fais fab mov, tsawg kawg 1A, nyiam dua 2A-5A. Cov LED no tuaj yeem kos ntau qhov tam sim no ntawm qhov ci ci, feem ntau cov laij lej online yuav hais tias koj xav tau tsawg kawg yog 3.3A fais fab mov rau txhua 1 meter ntawm 60led/m sawb - uas yog txhoj puab me ntsis, tab sis siv lub zog cais cais ib txoj kev lossis lwm. Los yog 5V fais fab mov yog tias koj siv 5V LED strips
  • Connector hlau - Kuv siv cov tub ntxhais 22AWG hlau [eBay] Kuv pom zoo kom Remmington Kev Lag Luam
  • Arduino Uno (lossis lwm lub microcontroller uas lub tsev qiv ntawv FastLED tau tshaj)
  • Cov hlau nplaum - Txhawm rau muab nws tso rau hauv qab ntawm lub rooj. Yog tias koj lub rooj tsis yog hlau ces koj yuav tsum siv Velcro

Cov cuab yeej

  • Kub kua nplaum phom
  • Soldering hlau
  • Hlau strippers/cutters
  • Windows PC
  • XActo riam lossis lub thawv txiav kom txiav koj cov duab los qhia/ntawv ua npuas ncauj kom loj
  • Tus thawj coj uas tsis muaj kev xav tsis thoob txog qhov xwm txheej tsis zoo rau koj

Kauj Ruam 2: WS2811/WS2812/b Cov Ntaub Ntawv Yav Tom Ntej

WS2811/WS2812/b Cov Ntaub Ntawv Yav Tom Ntej
WS2811/WS2812/b Cov Ntaub Ntawv Yav Tom Ntej
WS2811/WS2812/b Cov Ntaub Ntawv Yav Tom Ntej
WS2811/WS2812/b Cov Ntaub Ntawv Yav Tom Ntej

WS2811 yog lub npe ntawm hom pheej yig thiab ib txwm muaj nyob ntawm cov kab lus LED teeb. Txhua lub teeb ntawm kab txaij yog RGB LED thiab koj tuaj yeem tswj cov xim ntawm ib tus zuj zus. WS2811 qhov tseeb tsis yog LED - nws yog ib qho kev sib txuas hauv Circuit Court uas siv qee cov ntaub ntawv raws tu qauv. [ntaub ntawv] Txhua WS2811 nti txhawb cov ntaub ntawv teeb liab mus txog rau qhov ua haujlwm voltage, yog li koj tsis tas yuav txhawj xeeb txog teeb liab puas tsuaj. Koj tuaj yeem tsav ntau dua 1000 LEDS ntawm 20fps nrog WS2811 raws tu qauv.

Kuv nyiam siv cov hlua LED no vim tias txoj hlua hlau tuag yooj yim rau lawv. Muab nws lub zog, av, thiab cov ntaub ntawv. Koj tsis tas yuav siv lub tshuab hluav taws xob zoo ib yam li koj ua nrog tus qauv 4-hlau RGB kab txaij, thiab koj tsis tas yuav siv xov hlau mus rau lub microcontroller rau txhua lub teeb lossis txhua lub channel. Koj tsuas yog muab nws lub zog thiab cov ntaub ntawv teeb tsa thiab koj zoo mus.

Qhov tsis zoo ntawm cov kab no yog qhov lawv xav tau microcontroller muab lub teeb liab rau lawv thaum lawv qhib, koj tsis tuaj yeem tsuas yog muab lub zog thiab tsis muaj teeb liab thiab cia siab tias nws yuav ua haujlwm. Tom qab koj sau tus qauv xim rau nws daim kab xev yuav tuav tus qauv ntawd kom txog thaum koj hloov kho nws lossis nws poob lub zog. Lwm qhov tsis zoo yog tias lawv lub sijhawm ua qauv yog qhov tseeb thiab raug xaiv, yog li koj yuav tsum tau cuam tshuam kev cuam tshuam ntawm koj lub microcontroller kom lub tsev qiv ntawv FastLED muaj qhov tseem ceeb thaum sau ntawv rau LEDs. Qhov no tuaj yeem ua rau wifi tsis ruaj khov thiab xav tau qee qhov qauv tshwj xeeb.

Tam sim no uas peb tau tham txog nws, koj tsis tas yuav lis cov ntaub ntawv raug raws sijhawm koj tus kheej !! Lub tsev qiv ntawv FastLED ua rau koj !! Tias yog vim li cas lawv thiaj yooj yim siv.

NCO TSEG - Cov ntsiab lus WS2811/WS2812/WS2812b yog txhua yam siv sib pauv. Raws li nplooj ntawv no, WS2811 yog LED tsav IC, thiab WS2812 yog WS2811 tso rau hauv 5050 LED pob. Feem ntau WS2811 yog 12V thiab tsuas yog hais tau txhua 3 LED's, WS2812 yog 5V thiab hais tau txhua txhua LED.

Kauj Ruam 3: Cov Kab Xaim thiab Cov Khoom Kho Vajtse

Teeb duab thiab teeb tsa kho vajtse
Teeb duab thiab teeb tsa kho vajtse
Teeb duab thiab teeb tsa kho vajtse
Teeb duab thiab teeb tsa kho vajtse
Teeb duab thiab teeb tsa kho vajtse
Teeb duab thiab teeb tsa kho vajtse
Teeb duab thiab teeb tsa kho vajtse
Teeb duab thiab teeb tsa kho vajtse

Tsuas yog TUS NEEG ZOO TSHAJ PLAWS HAUV TSEV KAWM NTAWV THIAB TUS NEEG UA HAUJ LWM TSIS TXAUS SIAB +5V lossis +12V sib sau ua ke. Yuav tsum muaj ob lub xov hlau mus los ntawm lub microcontroller mus rau koj cov hlua LED: Cov ntaub ntawv, thiab Gnd.

Ua ntej txiav tawm daim ntawv los lossis daim txiag ua npuas ncauj los teeb lub teeb ci rau ntawm. Nws yooj yim dua kom muaj cov kab xev teeb tsa nyob rau hauv qhov chaw thaum siv cov kab txaij ntau dua li siv tus thib peb txhais tes los tuav cov hlua hauv huab cua.

Tshem cov thaub qab los ntawm cov kab kom pom cov nplaum thiab muab tso rau saum lub rooj ua npuas ncauj. Lawv zoo li lo zoo rau nws, tab sis yog tias koj muaj teeb meem koj tuaj yeem siv cov kua nplaum kub ib yam.

Kuv siv 3-tus pin JST txuas ntawm txhua qhov kawg ntawm kab txaij kom txhua yam tau hloov pauv, tab sis koj tseem tuaj yeem tsuas yog muag txhua yam hauv qhov chaw.

Saib ntawm cov kab ntawv thiab yuav tsum muaj tus xub txhua ob peb lub teeb, lossis txhua sab yuav sau tias "DO" lossis "DI" - DI yog cov ntaub ntawv Hauv, DO yog cov ntaub ntawv tawm. Koj yuav tsum xaim nws [Arduino] [DI] ---- LED ---- [DO] [DI] ------ LED ----- [DO] [DI] thiab lwm yam. arduino mus rau DI tus pin. Yog tias nws muaj cov xub, xyuas kom tseeb tias koj cov ntaub ntawv "ntws" raws cov lus qhia.

Tus kheej kuv tau pom tias nws yooj yim dua rau siv lub zog thiab hauv av mus rau nruab nrab ntawm kab txaij es tsis txhob siv tus pin nkag - nws yeej tsis muaj teeb meem qhov twg koj tso nws vim tias +/- txhua tus tau txuas ua ke ua ib txoj kev tsheb loj. Yog li koj yuav pom hauv ib qho ntawm cov duab uas mus los ntawm ib qho LED sawb mus rau lwm qhov Kuv tsuas yog siv cov khoom sib txuas rau Cov Kab Xov Xwm - qhov no ua haujlwm vim tias kuv tau muab +12V thiab Gnd ntawm ob daim kab xev. Ib txoj hauv kev lossis lwm qhov koj xav tau tag nrho koj cov xov hlau hauv av kom raug sib koom ua ke thoob plaws hauv txoj haujlwm.

Kuv siv DC lub laj kab txuas txuas rau cov tswv yim los ntawm kuv lub zog hluav taws xob thiab Arduino Uno tau siv los ntawm USB cable. Kuv siv daim kab xev ntsuab los kaw cov hlau nplaum rau hauv lub rooj tsavxwm vim nws tau ua haujlwm zoo.

Kauj ruam 4: Arduino Programming

Arduino Txoj Haujlwm
Arduino Txoj Haujlwm

Raws li qhov program Arduino mus, Kuv xav tias qhov no zoo nkauj heev. Nws saib xyuas qhov chaw nres nkoj hauv xov tooj thiab thaum muaj cov ntaub ntawv tshiab nws nyeem hauv cov lej sib npaug thiab tom qab ntawd sau tias RGB rau lub teeb.

Koj yuav xav tau lub tsev qiv ntawv FastLED los sau cov cai. Koj tuaj yeem rub nws los ntawm Arduino IDE tus thawj tswj hwm lub tsev qiv ntawv lossis los ntawm FastLED lub vev xaib:

Tib yam koj yuav tsum tau hloov yog tus lej PIN thiab NUM_LEDS thaum pib ntawm txoj haujlwm. PIN yog tus lej digital uas koj tau txuas Cov Kab Cov Ntaub Ntawv ntawm lub teeb rau - Kuv siv tus pin 11. Kuv 12V sawb tsuas yog tuaj yeem pom txhua txhua 3 lub teeb, yog li txawm hais tias muaj nyob ib ncig ntawm 75 qhov tsis sib xws ntawm LEDs ntawm kab sawb Arduino code tsuas yog hais txog 26 teeb. (Yog li yog tias kuv hais tias "Qhib LED 2" ces 3 lub teeb me me yuav ci.)

Cias hloov tus lej PIN thiab NUM_LEDS kom phim koj cov thaiv thiab xa cov cai rau tus tswj. Tom qab ntawv khiav LyncPresenceBridge.exe raws li ntxaws ntxaws ntawm cov kauj ruam tom ntej …

Kauj Ruam 5: PC Software Txhim Kho thiab Siv

PC Software Installation thiab Siv
PC Software Installation thiab Siv

Rub tawm ntawm no:

Koj yeej tsis tas yuav teeb tsa dab tsi - tsuas yog khiav LyncPresenceBridge.exe. Nws yuav muab lub cim tso rau hauv koj lub tais (hauv qab txoj cai kaum ntawm lub vijtsam) uas zoo li USB flash drive nrog lub teeb nyob hauv qab.

Txoj nyem rau lub cim thiab xaiv "Chaw" thiab teeb tsa Serial chaw nres nkoj mus rau qhov chaw nres nkoj twg koj Arduino txuas nrog. Txoj hauv kev yooj yim tshaj plaws los nrhiav qhov yog qhib Arduino IDE thiab Mus rau Cov Cuab Yeej> Chaw Nres Nkoj> thiab saib qhov chaw nres nkoj twg tau teev tseg. Lwm txoj hauv kev kom paub yog qhib Tus Thawj Tswj Ntaus Ntawv thiab nthuav ntu "Chaw Nres Nkoj (COM & LPT)" thiab saib dab tsi txhua qhov muaj. Kuv tsuas yog qhia ib qho, tab sis yog tias muaj ntau yam tsuas yog sim lawv txhua qhov kom txog thaum koj tau txais ib qho uas ua haujlwm nrog software.

Siv

Qhov kev zov me nyuam tsuas yog saib xyuas koj li xwm txheej Skype thiab ntawm qhov xwm txheej hloov pauv nws sau ib txheej ntawm RGB qhov tseem ceeb tawm ntawm qhov chaw nres nkoj. Yog li koj tuaj yeem hloov koj li xwm txheej los ntawm "Muaj" mus rau "Tsis khoom" thiab lub teeb yuav tsum hloov ntawm ntsuab mus rau liab.

Koj tuaj yeem nyem rau lub cim thiab xaiv qhov teeb tsa teeb rau xws li Muaj, Tsis khoom, Tsis Nyob, thiab Tawm. Qhov no muaj txiaj ntsig zoo rau yog tias koj nkees nkees ntawm Green/Red teeb lossis xav kom tua lawv tag.

Ob npaug nyem rau lub cim kom tshwm rau Tus Neeg Xaiv Xim qhov twg koj tuaj yeem teeb xim ntawm lub teeb rau xim tshwj xeeb xws li ntshav lossis paj yeeb. Koj tseem tuaj yeem nkag mus rau qhov no los ntawm txoj cai-nias cov ntawv qhia zaub mov.

Cov ntawv qhia zaub mov tseem tuaj yeem siv los hloov qhov ci ci ntawm lub teeb thiab cov duab nrawm

Kauj Ruam 6: Hloov Kho Software

Hloov kho Software
Hloov kho Software

Koj tuaj yeem hloov cov xim rau txhua tus xwm txheej los ntawm kev hloov kho cov ntaub ntawv daws teeb meem hauv chav pom duab.

Rub tawm txhua yam los ntawm kuv nplooj ntawv Github thiab qhib cov ntawv.sln hauv Visual Studio (Zej zog tsab ntawv ua haujlwm). Los ntawm qhov ntawd koj tuaj yeem hloov kho xim dab tsi nws tawm rau txhua qhov xwm txheej, ntxiv/tshem tawm cov khoom hauv cov ntawv qhia zaub mov, thiab ntau ntxiv.

Cov duab siv ua cov cim nyob hauv Resources.resx hauv qab LyncPresenceBridge Properties.

Yog tias koj tab tom ua qhov kev kho kuv pom zoo kom mus rau Properties, Settings.settings thiab hloov qhov chaw nres nkoj tsis raug rau ib qho uas koj tus tswj tau txuas nrog. Txhua lub sijhawm koj Tsim cov kev daws teeb meem nws yuav rov pib dua rau qhov chaw nres nkoj qub, thiab nws laus dhau los hloov chaw nres nkoj hauv kev teeb tsa txhua lub sijhawm.

Yog tias daim ntawv pov thawj muaj tus password sim "password" yam tsis muaj nqe lus. Yog tias nws hais tias kev kos npe tas sijhawm ces sim ua "Tsim daim ntawv pov thawj" thiab siv qhov ntawd los kos npe rau koj tus kheej siv. Yog tias txhua yam tsis ua ces email rau kuv.

Pom zoo: