Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Txuas lub RGB Xim Picker Circuit Circuit
- Kauj Ruam 2: Ua Haujlwm Rau Koj Arduino RGB Color Picker
- Kauj Ruam 3: Txhim Kho Cov Cheeb Tsam Rau Hauv Qhov Kaw
- Kauj Ruam 4: 3D Luam Tawm Cov Ntaub Ntawv
- Kauj Ruam 5: Siv lub Circuit Court
- Kauj Ruam 6: Mount Cheeb Tsam Rau Hauv Qhov Rauv
- Kauj Ruam 7: Siv Koj Cov Xim Xim RGB
Video: Arduino RGB Xim Xaiv - Xaiv Xim Los Ntawm Lub Neej Lub Hom Phiaj: 7 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Tinkercad Cov Haujlwm »
Yooj yim xaiv cov xim los ntawm cov khoom siv lub cev nrog Arduino raws li RGB tus neeg xaiv xim, ua rau koj rov tsim cov xim uas koj pom hauv cov khoom tiag hauv koj lub PC lossis lub xov tooj ntawm tes. Tsuas yog thawb lub pob txhawm rau tshuaj xyuas cov xim ntawm cov khoom siv tus nqi pheej yig TCS34725 xim lub cim ntsuas thiab koj tau muab RGB tus nqi xim ntxiv nrog rau qhov qhia txog qhov ntsuas xim ntawm RGB LED.
Yog tias koj txaus siab rau Cov Lus Qhia no, thov pov npav rau nws hauv Kev Ua Nws Glow Kev Sib Tw.
Kuv tau tsim qhov yooj yim 3D luam ntawv rau cov khoom siv hluav taws xob kom ua rau lub cuab yeej txav tau yooj yim, ntsaws nws rau hauv USB chaw nres nkoj, them nyiaj lossis lub txhab nyiaj hluav taws xob los txhawb nws. Koj kuj tseem tuaj yeem hloov kho tus qauv kom haum rau lub roj teeb kom ua rau nws nqa tau ntau dua.
Kuv ib txwm sim siv Arduino Uno vim qhov no yog ib qho ntawm kev siv dav tshaj plaws Arduino cov laug cam, tab sis txhawm rau ua kom lub cuab yeej siv tau yooj yim no, nws tau tsim los nyob ib puag ncig Arduino Pro Micro board. Txawm li cas los xij nws tuaj yeem hloov kho kom yooj yim los khiav ntawm feem ntau ntawm lwm cov Arduino cov laug cam uas muaj IO txaus, xws li Uno, Leonardo lossis Mega.
Phau ntawv qhia no kwv yees tias koj tau ua haujlwm nrog Arduino micro-maub los ua ntej paub qhov pib ntawm kev ua haujlwm ntawm Arduino thiab txuas lub LCD vaj huam sib luag rau nws. Yog tias koj tsis ua, ua raws cov lus qhia txuas rau cov ntaub ntawv ntau ntxiv thiab piav qhia tob.
Khoom siv
- Arduino Pro Micro (lossis Lwm Yam) - Yuav Ntawm No
- TCS34725 RGB Sensor - Yuav Ntawm No
- 16 x 2 LCD Vaj Huam Sib Luag - Yuav Ntawm No
- Pushbutton - Yuav Ntawm No
- 2 x 10K Resistors - Yuav Ntawm No
- 3 x 220Ω Resistors - Yuav Ntawm No
- 470Ω Resistor - Yuav Ntawm No
- RGB LED - Yuav Ntawm No
- 7 Tus Poj Niam Header Sawb (Txiav kom Ntev) - Yuav Ntawm No
- 10K Potentiometer - Yuav Ntawm No
- Breadboard & Jumpers rau Kev Xeem - Yuav Ntawm No
- 3D Tshuab Luam Ntawv & Dawb/Dub Filament (Yeem rau Vaj Tsev) - Qhov no Siv
Ntxiv rau cov no, koj yuav xav tau cov cuab yeej yooj yim rau kev ua haujlwm nrog cov khoom siv hluav taws xob, suav nrog cov hlau txuas yog tias koj tab tom tsim koj li kev siv hluav taws xob rau hauv ib lub thawv.
Kauj Ruam 1: Txuas lub RGB Xim Picker Circuit Circuit
Nws ib txwm yog lub tswv yim zoo los sib sau ua ke koj cov khoom sib xyaw rau hauv lub khob cij ua ntej kuaj lawv thiab xyuas kom tseeb tias koj lub Circuit thiab software ua haujlwm tau raug ua ntej ua ib qho kev sib txuas.
Cov khoom sib txuas tau txuas rau ntawm daim ntawv qhia zaub mov raws li qhia hauv daim duab qhia kab.
Tsis muaj ib yam tshwj xeeb tshwj xeeb lossis txawv txawv nrog ib qho ntawm cov kev sib txuas no ntawm cov khoom siv thiab Arduino, lawv yog cov txheej txheem yooj yim teeb tsa txuas rau txuas LCD, khawm khawm thiab LEDs rau Arduino.
10K resistors tau siv rau lub laub khawm txuas thiab 220Ω resistors rau Xim sensor LED thiab liab thiab xiav ceg ntawm RGB LED. 470Ω tus tiv thaiv siv rau ceg ntsuab ntawm LED kom txo nws qhov ci me ntsis los tsim cov xim tiag tiag.
RGB xim xim txuas nrog Arduino siv qhov yooj yim I2C interface. Nco ntsoov tias koj siv tus pin raug rau qhov kev sib tham no yog tias koj siv lwm lub rooj tsav xwm sib txawv. Nws tau tswj hwm siv Adafruit lub tsev qiv ntawv tham hauv kab lus.
Yog tias koj siv pawg Arduino sib txawv, nco ntsoov tias koj muaj tib lub luag haujlwm ntawm txhua tus pin raws li siv ntawm Pro Micro. Piv txwv li, koj xav tau PWM qhib tus pin rau kev tswj hwm ntawm RGB LED txhawm rau txhawm rau sim ua cov xim RGB xaiv.
Kauj Ruam 2: Ua Haujlwm Rau Koj Arduino RGB Color Picker
Tam sim no koj tau txais koj cov khoom sib dhos ua ke rau ntawm lub khob cij thiab ua kom muaj kev sib txuas sib txuas, koj tuaj yeem thauj cov cai mus rau koj Arduino siv koj lub PC thiab tshawb xyuas tias cov khoom ua haujlwm raug.
Txheeb tag nrho koj cov kev sib txuas dua ua ntej ntsaws USB cable rau hauv koj Arduino kom paub tseeb tias lawv raug. USB cable txhawb lub rooj tsavxwm thiab cov khoom sib txuas uas yuav ua rau lawv puas yog tias lawv tsis txuas nrog raug.
Pawg thawj coj tshwj xeeb no, Arduino Pro Micro ua raws li Leonardo thaum txuas nrog koj lub PC, yog li nco ntsoov xaiv hom pawg thawj coj kom raug hauv Arduino IDE txwv tsis pub koj yuav ua yuam kev thaum koj sim thiab xa cov cai.
Nov yog qhov txuas rau RGB xim tus lej xaiv tus lej: Rub tawm RGB Xim Xaiv Tus lej
Txoj cai muaj cov lus piav qhia txog txhua ntu ua haujlwm li cas. Cov cim xim thiab LED ib feem yog ua raws Adafruit cov xim piv txwv piv txwv. Yog tias koj xav sim sau koj tus kheej cov cai ces qhov no yog qhov piv txwv muaj txiaj ntsig los ua haujlwm dhau los thiab pib nrog.
Koj yuav tsum muaj Adafruit cov tsev qiv ntawv teeb tsa. Qhov no ua tiav tau yooj yim los ntawm txhaj rau Cov Cuab Yeej -> Tswj Cov Tsev Qiv Ntawv hauv koj li IDE thiab tom qab ntawv ntaus hauv "Adafruit TCS" hauv kab ntawv tshawb nrhiav thiab teeb tsa lub tsev qiv ntawv pom.
Qee yam uas yuav tsum tau saib rau hauv cov cai:
Cov lej LCD tau muab tso rau hauv qhov kev txiav txim coj txawv txawv (15, 14, 16, 4, 5, 8, 7). Kuv ib txwm sim thiab khaws cov pins ua ntu zus tab sis hauv qhov piv txwv no lawv sib xyaw me ntsis vim tias muaj ob yam, ib qho vim kuv xav tau los ua haujlwm ib puag ncig PWM pins rau LED thiab qhov thib ob vim tias cov pins ntawm Pro Micro tsis yog txhua yam nyob rau hauv sequential order.
Cov xim xim LED thiab lub laub khawm tau txuas nrog Pro Micro cov kev sib piv sib piv, raug siv los ua digital IO, vim tias tsis muaj cov IO digital pins txaus. Lawv tseem tau hais tseg hauv txoj cai raws li tus qauv digital IO pins.
Muaj cov txheej txheem luv luv kom ploj LED ntawm liab, ntsuab thiab xiav thaum pib. Qhov no tsuas yog qhov pom kev zoo uas siv sijhawm li 1.5 vib nas this los hla thiab tuaj yeem tshem tawm yog tias koj xav kom koj cov xim tuaj pib sai dua.
Qhov kev zov me nyuam yuav tsis ua tiav yav dhau los teeb tsa yog tias nws tsis tsim kev sib txuas nrog lub ntsuas xim, nws yuav tshwm li "Sensor Error" ntawm koj lub LCD yog tias nws tsis tuaj yeem tsim kev sib txuas. Yog tias LED tab tom los, qhia lub zog rau lub ntsuas hluav taws xob ces txheeb xyuas koj li SDA thiab SCL kev sib txuas thiab tias koj tab tom siv qhov tseeb Arduino pins.
Cov lus gamma tsuas yog hloov qhov ntsuas RGB qhov ntsuas los ntawm lub ntsuas hluav taws xob rau hauv qhov muaj txiaj ntsig uas yuav ua rau pom qhov tseeb LED sawv cev ntawm cov xim tiag, qhov no tsuas yog txhawm rau txhim kho LED pom kev zoo thiab tsis muaj qhov cuam tshuam ntawm ntsuas RGB qhov txiaj ntsig pom.
Txoj cai ntawd tos rau lub laub-khawm nkag mus nyeem los ntawm lub sensor thiab tso saib qhov tseem ceeb ntawm LCD thiab dhau ntawm LED. Peb qhov kev ncua hauv lub voj yog cov lus yooj yim kom tsis txhob rov nyeem dua ua ntej lub pob raug tso tawm dua raws li qhov kev nyeem tiag tiag thiab lub sijhawm yuav yog kwv yees li 100ms, koj tseem tuaj yeem ua si ib puag ncig nrog cov txiaj ntsig no yog tias koj xav ua koj tus neeg xaiv sai dua lossis qeeb dua.
Kauj Ruam 3: Txhim Kho Cov Cheeb Tsam Rau Hauv Qhov Kaw
Txhawm rau ua kom muaj txiaj ntsig thiab siv tau lub cuab yeej, Kuv txiav txim siab muab cov khoom sib txuas ua ke thiab muab tso rau hauv ib qho yooj yim 3D luam ntawv.
Lub voj voog ntawm qhov nyuaj no yuav tsum tau tsim mus rau PCB tab sis cov neeg feem coob tsis muaj kev nkag mus rau PCB cov kev pabcuam tsim khoom yog li kuv tau nyam nrog cov khoom siv sib txuas ua ke nrog ntu ntu ntawm kab hlua.
Kauj Ruam 4: 3D Luam Tawm Cov Ntaub Ntawv
Kuv tsim lub tsev nyob puag ncig rau cov xim xaiv, cov ntawv luam 3D tuaj yeem rub tawm ntawm no. Koj tseem tuaj yeem muaj tswv yim thiab hloov kho qhov tsim kom haum rau koj cov khoom siv thiab yuav ua li cas koj yuav siv koj cov xim xaiv.
Lub ntsuas xim nyob sab nraub qaum kom koj tuaj yeem tuav lub cuab yeej hla ib qho khoom thiab xaiv cov xim nrog nyeem tawm uas tau qhia rau ntawm xub ntiag.
Kuv luam cov vaj tsev siv dawb PLA thiab 20% ntxiv rau, Kuv yuav zam kev siv cov xim lim dej rau sab nraum qab vaj huam sib luag vim koj tsis xav qhia ua lub teeb pom kev zoo rau ntawm qhov chaw raug khaws.
Qhov ntev ntawm vaj tsev yog kwv yees li 110 hli (4.3 ") x 46mm (1.8") x 20mm (0.78 ") nrog ob qho tib si sib dhos ua ke. Txhua ib nrab yog 10 hli (0.39 ") siab.
Kauj Ruam 5: Siv lub Circuit Court
Thaum koj tau luam tawm 3D lub tsev, koj yuav muaj lub tswv yim ntawm txhua qhov ntawm cov khoom siv tau teeb tsa thiab ntev npaum li cas los ua cov hlua txuas txuas txuas.
Pib los ntawm kev siv txhua qhov khoom sib txuas rau koj Arduino thaum koj tshem nws los ntawm lub khob cij thiab sim tshem tawm cov khoom los ua kom muaj hluav taws xob puv sijhawm.
Piv txwv li, pib nrog LED Circuit thiab muab cov tshuaj tiv thaiv rau lub LED thiab tom qab ntawd txuas lawv mus rau Arduino ua ntej tshem tawm cov khoom thawb khawm. Txoj hauv kev no koj yuav tuaj yeem taug qab cov khoom sib txuas thiab ua kom ntseeg tau tias koj txuas lawv ib tus zuj zus mus rau qhov tseeb Arduino cov tswv yim nkag thiab tawm.
Saib xyuas nrog LCD vaj huam sib luag thiab Xim xim kom paub tseeb tias koj ua kev sib txuas rau qhov raug Arduino IO cov chaw nres nkoj.
Cov xim sib txuas sib txuas tuaj yeem hloov mus rau 7 tus pin poj niam header strip (txiav 8 tus pin header strip mus rau 7 pins) txhawm rau ua kom nws ntsaws rau hauv los ntawm ntu sab nraub qaum ntawm lub tsev. Qhov no tsuas yog ua rau ob qho kev sib cais kom raug yog tias koj xav tau qhib nws. Koj kuj tseem tuaj yeem txuas ncaj qha mus rau Xim lub ntsej muag nrog ntu ntu ntawm kab hlua, tsuas yog ua kom ntseeg tau tias txoj hlua hlua hla los ntawm qhov nyob hauv vaj tse ua ntej yuav txuas qhov txuas.
Muaj cov lej sib txuas uas yuav tsum tau ua rau GND thiab 5V thiab nws ua rau koj cov laug txuas tau yooj yim txuas lawv mus rau cov ntsiab lus tseem ceeb ntau dua li sim ua kom lawv tag nrho mus rau ob lub Arduino pins. Kuv txuas lawv txhua tus mus rau ob sab sab nraud ntawm lub LCD potentiometer vim qhov no yog ntxhib nyob hauv nruab nrab ntawm vaj tsev thiab muaj thaj chaw loj tshaj plaws los ua kev sib txuas.
Thaum koj tau ua txhua yam ntawm koj cov kev sib txuas thiab koj zoo siab nrog txoj hlua ntev ntev. Sim ua kom muaj zog hauv koj lub Circuit ib zaug ntxiv txhawm rau txheeb xyuas tias txhua yam ua haujlwm tau zoo ua ntej teeb tsa cov khoom sib txuas rau hauv tsev. Ua kom ntseeg tau tias tsis muaj ib qho ntawm cov khoom siv lossis lub davhlau ya nyob twg raug kov ib leeg, uas tuaj yeem ua rau luv Circuit Court. Tej zaum koj yuav tsum tau ntxiv me ntsis ntawm cov kab xev hluav taws xob los yog daim ntawv nruab nrab ntawm cov khoom siv kom tsis txhob muaj hluav taws xob luv.
Yog tias koj lub Circuit ua haujlwm tau zoo ces koj tuaj yeem txhim kho koj cov khoom siv rau hauv 3D luam tsev.
Kauj Ruam 6: Mount Cheeb Tsam Rau Hauv Qhov Rauv
Kauj ruam kawg yog txhawm rau txhim kho koj cov khoom siv rau hauv koj lub tsev. Kuv siv rab yaj phom yaj yaj kub los txhawm rau txhim kho cov khoom siv, koj tseem tuaj yeem siv epoxy lossis tus nqi me me ntawm superglue.
Cov xim xim tuaj yeem lo rau hauv kab noj hniav nyob tom qab ntawm lub tsev nrog tus pin header strip lo hla mus rau sab hauv ntawm lub tsev. Tus poj niam header strip yuav raug siv rau lub ntsuas hluav taws xob ntsaws rau hauv Circuit Court.
Nias lub laub khawm, LCD thiab LED hla lub qhov hauv lub vaj huam sib luag pem hauv ntej thiab muab lo rau hauv qhov chaw ntawm sab hauv tsev.
Koj Arduino yuav tsum haum haum rau hauv lub qhov hauv qab thiab yuav tsum tsis muaj cov kua nplaum los tuav nws rau hauv qhov chaw tab sis yog tias nws ua, xyuas kom koj tsis txhob muab cov kua nplaum tso rau ntawm cov khoom nyob tom qab ntawm lub rooj tsavxwm. Tsis txhob muab cov kua nplaum tso rau ntawm ntug ntawm lub rooj tsavxwm.
Qhov chaw nres nkoj micro USB yuav tsum yooj yim nkag los ntawm ib sab ntawm lub tsev.
Kaw ob lub ntsej muag ua ke, siv cov pegs ntawm ob lub ces kaum ua cov lus qhia. Cov no yuav tsum nias ua ke kom nruj thiab pab tuav ob lub ntsej muag ua ke. Nco ntsoov tias tsis muaj qhov pom ntawm koj lub davhlau ya nyob twg lossis ua rau ntawm koj cov resistors, LED lossis lub zog ntsuas tau kov lwm yam hauv koj lub Circuit Court raws li tau hais ua ntej, koj tuaj yeem siv qee daim kab xev lossis ntawv los cais cov khoom sib txuas - Kuv tau siv qee daim kab xev daj nyob tom qab ntawm LCD.
Kauj Ruam 7: Siv Koj Cov Xim Xim RGB
Txhawm rau siv koj tus neeg xaiv xim, ntsaws lub micro USB cable rau hauv qhov chaw nres nkoj ntawm sab ntawm koj tus neeg xaiv xim kom txhawb nws.
Qhov pib ua ntu zus yuav tsum khiav thiab tom qab ntawd koj tuaj yeem tuaj yeem xaiv xim, qhia los ntawm Xim Picker Ready.
Muab lub ntsuas hluav taws xob hla cov xim uas koj xav xaiv thiab tom qab ntawd nias lub pob kom xaiv xim. Lub teeb LED ntawm lub ntsuas yuav tsum tuaj ib ntus, tom qab uas koj yuav tau txais RGB nyeem ntawm lub LCD thiab LED yuav hloov pauv kom pom qhov xim uas tau xaiv.
RGB LED yog lub ntsiab lus muab rau koj qhia qhov xim uas tau txheeb xyuas. Qhov no tsuas yog txoj hauv kev nrawm rau koj txhawm rau txheeb xyuas qhov ntsuas tau khaws ntawm cov xim raug thiab tsis yog ib txwm sawv cev raug ntawm cov xim vim muaj kev txwv nrog LED. Piv txwv li, lawv tsis tuaj yeem pom cov xim dub lossis xim av vim tias cov khoom siv LED yog dawb thiab tsuas tuaj yeem tsim lub teeb kom rov tsim dua cov xim. Vim li no tib yam, cov xim tsaus kuj tseem tsis pom zoo ntawm LED.
Yog tias koj nyiam qhov Qhia Ntawv no, thov pov npav rau nws hauv Kev Sib Tw Ua Kom Nws Glow.
Ua tibzoo saib kuv qhov blog rau ntau Arduino qhia, cov haujlwm thiab tswv yim.
Runner Up hauv Kev Ua Nws Glow Contest
Pom zoo:
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txoj Kev/Cov Txheej Txheem Siv Cov Duab Puncher: 5 Kauj Ruam
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txoj Kev/Cov Qauv Siv Cov Duab Puncher: Kawm/qhia txoj hauv kev rau cov tub ntxhais kawm tshiab rau kev tsom mus rau lub hom phiaj. Nov yog txoj hauv kev tso cai rau lawv kom pom kev thiab pom cov txheej txheem ntawm kev tsim cov khoom los ntawm cov chav kawm. EkTools 2-nti loj punch; cov duab zoo tshaj plaws. 2. Daim ntawv los yog c
Lub Hom Phiaj Nrhiav Lub Koob Yees Duab Slider Nrog Kev Sib Hloov. 3D Luam & Ua Rau ntawm RoboClaw DC Lub Cev Muaj Zog Tswj & Arduino: 5 Kauj Ruam (nrog Duab)
Lub Hom Phiaj Nrhiav Lub Koob Yees Duab Slider Nrog Kev Sib Hloov. 3D Luam & Ua Rau ntawm RoboClaw DC Tsav Tus Tswj & Arduino: Txoj haujlwm no tau yog ib qhov kuv nyiam tshaj plaws txij li thaum kuv tau koom ua ke kuv qhov kev txaus siab ntawm kev ua yeeb yaj kiab nrog DIY. Kuv ib txwm saib thiab xav ua raws cov yeeb yaj kiab uas tau ua hauv cov yeeb yaj kiab uas lub koob yees duab txav mus hla lub vijtsam thaum tab tom taug qab mus
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txuj Ci/Txuj Ci Siv Txiab: 5 Kauj Ruam
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txoj Kev/Txuj Ci Siv Txiab: Kawm/qhia txoj hauv kev rau cov tub ntxhais kawm tshiab rau lub hom phiaj ua haujlwm. Nov yog ib txoj hauv kev tso cai rau lawv kom pom kev thiab pom cov txheej txheem ntawm kev tsim cov khoom los ntawm cov chav kawm.Parts: 1. Txiab (yam twg yuav ua). 2. Daim ntawv lossis daim npav. 3. Marker… nyeem ntxiv
"GRECO" - Lub Hom Phiaj Arduino Tsis Txhob Siv Neeg Hlau rau Cov Pib: 6 Cov Kauj Ruam (nrog Duab)
"GRECO" - Arduino Object Zam Txim Tus Neeg Hlau rau Cov Pib: Zoo, yog tias koj yog tus pib, ntawm no koj yuav pom txoj hauv kev yooj yim tshaj plaws los tsim koj tus kheej cov khoom tsis txhob siv neeg hlau! . Rau ib zaug ntxiv peb xaiv los siv lub npe nrov Arduino UNO board.Our
Ntxiv Cov Duab Dub Nyob Ib puag ncig Koj Cov vis dis aus ntawm Lub Hom Phiaj!: 4 Cov Kauj Ruam
Ntxiv Daim Duab Dub Nyob Ib Leeg Ntawm Koj Lub Vev Xaib ntawm Lub Hom Phiaj!: Kuv qhov vis dis aus tsis ntev los no ua tau zoo hauv Is Taws Nem, tab sis yog me ntsis me me ntawm 26 "TV Flat Screen TV. Tam sim no Nws tau tua thaum hmo ntuj nrog F-Stop qhib dav ntawm +2, tab sis kuv xav pom nws ntawm qhov me me dua li puv npo 16: 9 hauv TV. Hloov TV