Cov txheej txheem:

DIY RGB-LED Glow Poi Nrog Kev Tswj Chaw Taws Teeb: 14 Cov Kauj Ruam (nrog Duab)
DIY RGB-LED Glow Poi Nrog Kev Tswj Chaw Taws Teeb: 14 Cov Kauj Ruam (nrog Duab)

Video: DIY RGB-LED Glow Poi Nrog Kev Tswj Chaw Taws Teeb: 14 Cov Kauj Ruam (nrog Duab)

Video: DIY RGB-LED Glow Poi Nrog Kev Tswj Chaw Taws Teeb: 14 Cov Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
DIY RGB-LED Glow Poi Nrog Chaw Taws Teeb
DIY RGB-LED Glow Poi Nrog Chaw Taws Teeb
DIY RGB-LED Glow Poi Nrog Chaw Taws Teeb
DIY RGB-LED Glow Poi Nrog Chaw Taws Teeb
DIY RGB-LED Glow Poi Nrog Chaw Taws Teeb
DIY RGB-LED Glow Poi Nrog Chaw Taws Teeb
Duab
Duab

Taw qhia

Nyob Zoo Txhua Tus! Nov yog kuv phau ntawv qhia thawj zaug thiab (vam tias) thawj zaug hauv kab lus qhia ntawm kuv qhov kev thov kom tsim qhov qhib-qhov RGB-LED pom pom poi. Txhawm rau ua kom yooj yim ua ntej, qhov no yuav ua rau muaj qhov yooj yim coj-poi nrog cov chaw taws teeb tswj ntawm IR thiab txhua yam xim-hloov-ua yeeb yaj kiab.

Nco ntsoov: Hom poi no (tsis muaj IR -chaw taws teeb) tuaj yeem yuav tau ib ncig 20 $ ntawm Amazon, yog li qhov no tsis tsim nyog siv nyiaj txiag - DIY rau qhov kev paub dhau los, tsis yog qhov tshwm sim.

Kuv vam tias tib neeg yuav pab txhawb cov tsiaj ntawv rau GitHub ntawm txoj haujlwm no ua rau muaj ntau yam kev ua yeeb yaj kiab zoo rau koj xaiv los ntawm thiab yog li ntawd muab cov ntawv no qee qhov muaj txiaj ntsig ntau dua piv rau cov khw muag khoom.

Duab
Duab

Tsis lees paub

Ua ntej tshaj plaws ob peb lus ceeb toom txog kev nyab xeeb. Tsuas yog sim ua qhov no yog tias koj paub tias koj tab tom ua dab tsi. Kuv tsis yog kws kho hluav taws xob, Kuv yuav tsis raug lav yog tias muaj qee yam tsis raug. Ob peb kauj ruam txaus ntshai/cov ntaub ntawv koom nrog thiab koj yuav tsum paub txog lawv:

Lipos tej zaum yuav txaus ntshai. Tshwj xeeb tshaj yog cov laug, ua kom luv thiab khaws cia LiPos los nrog ntau yam kev phom sij. Txawm hais tias kev tsim tawm mus tau zoo, cov xov hlau yuav tuaj yeem xoob, cov cell yuav raug puas tsuaj lossis ib qho ntawm cov tsis muaj npe hauv Suav cov khoom yuav ua tsis tau thiab ua rau luv luv. Tsis txhob cia lawv them tus neeg tsis muaj neeg saib xyuas, zoo tshaj yog siv lub charger sab nraud los them lawv, tshem tawm lipo rau kev cia & thauj (qhov zoo tshaj yog khaws lawv hauv ib qho ntawm cov "lipo hnab" Kuv ntseeg).

Cov tshuaj lom raug rau qee lub zog tseem ceeb thaum ua nrog lawv. Yog tias koj tsoo ib tus neeg lossis ib yam dab tsi nrog lawv lossis luam ntawv tsis ua tiav & ntu ya ncig tib neeg yuav raug mob.

Siv kev nkag siab zoo, paub txog kev phom sij, nyeem ntawm koj tus kheej yog tias koj tsis paub meej. Koj tau txais lub tswv yim.

Yog tias kuv tsis tau ntshai koj, txaus siab rau kev tsim & muaj kev lom zem nrog lawv.

Kauj Ruam 1: Cov Khoom & Cov Cuab Yeej

Khoom & Cov Cuab Yeej
Khoom & Cov Cuab Yeej
Khoom & Cov Cuab Yeej
Khoom & Cov Cuab Yeej

Nqi Khoom

Ua ntej cia saib seb peb xav tau dab tsi rau qhov kev tsim no. Kuv pom zoo kom yuav khoom feem ntau ntawm AliExpress yog tias koj muaj sijhawm tos. Kuv tsuas pom lub lipos ntawm HobbyKing xwb.

Duab
Duab

Cheebtsam/Khoom Siv Hluav Taws Xob

Qty Lub Npe Qhov chaw Saib
2 TP4056 Lithium roj teeb Charger Module Amazon.com, AliExpress
2 Turnigy nano-tech 1000mah 1S 15C Round Cell Hobbyking
2 2-5V txog 5V Boosting Step Up Power Supply AliExpress MT3608 lub tshuab hluav taws xob sib txuas zoo ib yam
2 ArduinoPro Mini ATMEGA328P 5V 16MHz Amazon.com, AliExpress
2 1838 940nm IR-Tau Txais Diode Amazon.com, AliExpress
1m ua APA102 LED Sawb (144 lossis 96 LED/m) Amazon.com, AliExpress Koj xav tau txog 2x10 Leds ntawm qhov ntev
2 220uF 10V Capacitor AliExpress
1 IR Chaw Taws Teeb AliExpress
Duab
Duab

Cov cuab yeej

Lub Npe Kev pom zoo Saib
3D-Tshuab Luam Ntawv
Soldering Hlau QAB T12
Kub Nplaum Phom
Khoos phis tawj nrog Arduino IDE
FTDI USB Chip FWB 232 lwm txoj kev: Arduino Uno
Wirestrippers yeem
Cov neeg hlau Knipex Cutters yeem
Breadboard + Jumpers yeem
Arduino Ib yeem

Khoom siv

Lub Npe Saib
Nyias Hlau 24-28 AWG
Soldering Lead
Ntsws Tube
Pin Headers (Txiv neej & Poj niam) lossis txuas me
Ntshiab 3D-Luam Ntawv Filament Kuv siv PLA tab sis Nylon yuav muab cov txiaj ntsig zoo dua
Kub-Kua nplaum
zinc flux & solder lossis hlau txhuam/ntawv txhuam Sanding Paper ua haujlwm zoo rau kuv
Qee cov hlua rau cov hlua Kuv siv cov yas yooj yim chord tab sis koj yuav xav kom muaj tswv yim

Kauj Ruam 2: Luam Ntawv 3D

3D Luam Ntawv
3D Luam Ntawv
Duab
Duab
Duab
Duab

Txij li qhov no siv sijhawm ntev tshaj plaws, peb yuav pib luam tawm txhua feem rau qhov kev tsim no ob zaug nrog kev txhawb nqa tso rau - txhua qhov chaw.

Lub taub hau hla mus rau Thingiverse, rub cov ntaub ntawv STL thiab hlais nrog koj nyiam cov txiab.

Kuv siv PLA meej ntawm 0.28 kev daws teeb meem uas ua haujlwm tau zoo tab sis yog tias koj tuaj yeem ua tau, koj yuav xav siv cov khoom muaj zog kom nyob rau sab nyab xeeb thiab tiv thaiv ib qho tsis ua haujlwm thaum tig.

Qhov tshwm sim yog qhov tsis pom kev ntau dua li pob tshab uas yog qhov zoo rau peb txij li poi ua lub diffusor thiab teeb pom kev zoo yam tsis muaj ib qho LEDs pom. Tom qab cov ntawv luam tawm tiav, tso cov khoom txhawb nqa thiab ntswj & tshem tawm ob lub kaum ob pawg ua ke. Cov ntaub ntawv txhawb nqa muab tuav zoo dua thiab thaum lawv haum zoo ua ke, koj tuaj yeem tshem tawm txhua qhov kev txhawb nqa.

Duab
Duab

Kauj Ruam 3: Programming: Npaj

Txhawm rau sau cov phiaj xwm peb yuav tsum teeb tsa FastLED thiab IRremote Library. Both tuaj yeem pom pom siv Arduino IDE kev tsim hauv Kev Tswj Xyuas Tsev Qiv Ntawv. Txhawm rau rub cov duab kos rau Arduino pro mini, koj yuav tsum siv FTDI Chip.

Ib qho ntxiv koj xav tau cov lej-code rau txoj haujlwm no uas tuaj yeem pom nyob ntawm GitHub.

Kauj ruam 4: Programming: Kho qhov Code

Programming: Kho qhov Code
Programming: Kho qhov Code
Programming: Kho qhov Code
Programming: Kho qhov Code
Programming: Kho qhov Code
Programming: Kho qhov Code
Programming: Kho qhov Code
Programming: Kho qhov Code

Kuv siv cov khoom seem Arduino Uno kom yooj yim tab sis koj tsuas tuaj yeem siv ib qho ntawm Arduino Pro Minis.

Duab
Duab

Xaim kab hluav taws xob uas pom hauv daim duab saum toj no siv ib qho ntawm cov infrared-receiver chips, upload IRrecvDemo piv txwv piv txwv rau koj Arduino thiab qhib qhov saib ua ntej.

Tom qab ntawd siv koj lub chaw taws teeb thiab nias lub pob uas koj xav siv. Txhua lub pob-nias yuav tsum tso saib tus lej hex. Yog tias koj tuav lub pob, tus lej sib txawv hex yuav tsum rov ua dua.

Duab
Duab

Ua ntej, luam tus nqi ntawm tus lej hex rov ua dua thiab hloov BTN_REPEAT rau tus nqi ntawd. Tom qab ntawd ua haujlwm los ntawm cov lus txhais hauv cov cai thiab hloov txhua yam kom phim koj cov chaw taws teeb. Nco ntsoov tias txhua qhov txiaj ntsig yuav tsum pib nrog 0x kom lees paub tias yog tus lej hex - yog li tsuas yog hloov qhov tseem ceeb ntawm tus lej.

Duab
Duab

Kauj ruam 5: Programming: Upload Code

Programming: Upload Code
Programming: Upload Code
Programming: Upload Code
Programming: Upload Code

Sau cov cai rau tus poi thiab xaim mus rau Arduino pro mini nrog koj li FTDI nti. Xaiv Arduino pro mini li lub cuab yeej, hloov pauv hloov ua tus programmer thiab xa cov cai rau ob qho tib si Arduinos.

Koj tuaj yeem yooj yim xa cov cai yam tsis siv cov xov hlau/lub taub hau rau Arduino los ntawm nws lo rau hauv lub khob cij raws li qhia hauv daim duab saum toj no. Nco ntsoov tias koj teeb hluav taws xob jumper ntawm koj tus programmer rau 5V ua ntej txuas tus programmer rau koj lub PC.

Duab
Duab

Kauj Ruam 6: Soldering: Txheej txheem cej luam

Soldering: Txheej txheem cej luam
Soldering: Txheej txheem cej luam
Soldering: Txheej txheem cej luam
Soldering: Txheej txheem cej luam

Tom ntej no peb yuav muab cov khoom sib dhos ua ke. Siv daim duab saum toj no los ua qhov siv yog tias muaj dab tsi tsis meej.

Txij li qhov chaw tau txwv, peb xav khaws cov xov hlau kom luv li sai tau, tab sis kuv pom zoo kom xub xub muab cov xov hlau txuas ntev dua thiab tom qab ntawd ntsuas qhov raug qhov ntev siv rooj plaub thiab txiav tawm ib qho twg tshaj.

Kauj Ruam 7: Soldering: Module Lub Hwj Chim

Soldering: Lub Hwj Huam Module
Soldering: Lub Hwj Huam Module
Soldering: Lub Hwj Huam Module
Soldering: Lub Hwj Huam Module
Soldering: Lub Hwj Huam Module
Soldering: Lub Hwj Huam Module
Soldering: Lub Hwj Huam Module
Soldering: Lub Hwj Huam Module

Thawj cov xaim hluav taws xob txuas rau B (attery) thiab OUT (muab) cov ntaub qhwv ntawm TP4056.

Tom ntej tso TP4056 tus qauv hauv ntu hauv qab ntawm 3d-luam tawm-rooj plaub, muab lub roj teeb xov hlau tso rau hauv lub me me ua ntej mus rau lub roj teeb thiab txiav tawm cov xov hlau tshaj.

Duab
Duab

Tom qab ntawd tso cov pob-txhawb tus lej hauv qab TP4056 tus qauv thiab txiav tawm cov xov hluav taws xob kom koj tuaj yeem yooj yim muab lawv txuas rau cov xov hlau nkag ntawm lub pob txhawb nqa lub zog.

Duab
Duab

Nqa txhua yam tawm ntawm cov ntawv luam thiab muab ob tus txiv neej tus pin-lub taub hau lossis tus txiv neej ib feem ntawm koj txuas rau koj lub xov tooj roj teeb thiab ruaj ntseg lawv nrog qee qhov kub-ntsws tubing.

Duab
Duab

Tom qab ntawd ua ke ua ke cov pins tso tawm thiab cov pins nkag ntawm ob qho qauv

Duab
Duab

Kauj Ruam 8: Soldering: Roj Teeb

Soldering: Roj teeb
Soldering: Roj teeb
Soldering: Roj teeb
Soldering: Roj teeb
Soldering: Roj teeb
Soldering: Roj teeb

Tom ntej no peb yuav txuas cov xov hlau thiab txuas rau lub roj teeb.

Nco ntsoov muab tshuaj txhuam sai thiab meej lossis cov cua sov los ntawm cov laug yuav ua rau koj lub cell puas. Ceev faj tsis txhob luv lipos los ntawm kev ua yuam kev.

Soldering cov xov hlau rau lipo tuaj yeem nyuaj vim tias kev sib cuag tau ua los ntawm txhuas. Koj tuaj yeem siv tshwj xeeb zinc flux & solder, txhuam hlau lossis ntawv txhuam kom ntxuav txhua cov oxide tawm ntawm kev sib cuag. Tom qab ntawd txuas rau ntawm cov xov hlau thiab cais lawv siv cua sov-ntsws-raj.

Tom ntej no peb tso lub roj teeb rau hauv rooj plaub 3d-luam tawm, ntsuas qhov ntev ntawm cov xov hlau, tawm me ntsis kom tsis txhob siv, tshem nws rov qab thiab txiav cov xov hlau ntau dhau.

Duab
Duab

Peb tuaj yeem tom qab ntawd txuas tus poj niam tus pin-headers lossis peb tus poj niam txuas txuas rau cov xov hlau thiab ib zaug ntxiv, cais lawv siv cua sov.

Kauj Ruam 9: Soldering: Arduino, Leds thiab Sensor

Soldering: Arduino, Leds thiab Sensor
Soldering: Arduino, Leds thiab Sensor
Soldering: Arduino, Leds thiab Sensor
Soldering: Arduino, Leds thiab Sensor
Soldering: Arduino, Leds thiab Sensor
Soldering: Arduino, Leds thiab Sensor

Tom ntej no peb yuav tsum xaim Arduino, IR-Sensor thiab LED-strip

Arduino tau txais xov hlau rau VCC thiab GND

Infrared-Sensor yog qhov ua kom yuam kev me ntsis: Ua ntej peb yuav tsum txuas lub tshuab hluav taws xob kom ze rau lub ntsuas cua ntau li ntau tau. Txij li lub tsev nyob ntawm lub sensor tau tsaws hauv av, peb yooj yim txuas cov kab hluav taws xob tsis zoo txhais ceg mus rau lub tsev nyob thiab cov ceg zoo rau VCC xaim. Tom ntej no peb xaim tag nrho peb tus pin thiab cais lawv siv cov cua sov-ntsws-raj.

Rau LED-Sawb peb xub txiav ib daim kab xev nrog 10 LEDs. Tom qab ntawd peb txuas cov xov hlau rau txhua 4 tus neeg sib cuag.

Kauj Ruam 10: Soldering: Muab Nws Ua Ke

Soldering: Muab tag nrho ua ke
Soldering: Muab tag nrho ua ke
Soldering: Muab tag nrho ua ke
Soldering: Muab tag nrho ua ke
Soldering: Muab tag nrho ua ke
Soldering: Muab tag nrho ua ke
Soldering: Muab tag nrho ua ke
Soldering: Muab tag nrho ua ke

Cov kauj ruam tom ntej yog txiav cov xov hlau kom luv li sai tau thiab txuas txhua tus qauv ua ke.

Peb pib los ntawm kev txiav cov kab hluav taws xob Arduinos los ntawm kev tso nws thiab txhawb nqa-ntxiv rau hauv rooj plaub thiab txiav cov kab hluav taws xob kom ntev.

Duab
Duab

Tom ntej no peb rov ua zoo ib yam rau Infrared-Receiver. Qhov txuas rau LED Sawb tuaj yeem txiav tau yam tsis ntsuas vim peb muaj chaw txaus kom lawv nyob ntev dua.

Duab
Duab

Peb tuaj yeem tom qab ntawd muab cov kab hluav taws xob xa hluav taws xob txuas ncaj qha mus rau tus pin ntawm Arduino thiab nws cov ntaub ntawv-tus pin rau tus pin 11 ntawm Arduino.

Duab
Duab

Tom ntej no peb muab cov ntaub ntawv thiab kab xov tooj ntawm peb cov coj coj mus rau Arduino. Txuas lub moos cable rau tus pin 5 thiab cov ntaub ntawv cable rau tus pin 6.

Duab
Duab

Ib yam nkaus uas yuav tsum tau ua yog txuas ob qho Arduinos thiab coj cov kab hluav taws xob txuas hluav taws xob mus rau qhov tsim tawm ntawm cov qauv txhawb nqa.

Duab
Duab

Kauj ruam 11: TESTING TIME

TESTING SIJ HAWM!
TESTING SIJ HAWM!

Txij li tam sim no peb yuav tsum tau ua kom tiav peb tuaj yeem ntsaws lub roj teeb thiab sim txhua yam. Peb xav kom ntseeg tau tias txhua yam ua haujlwm tau zoo, txij li tom qab cov kauj ruam tom ntej debugging yuav dhau los ua npau suav phem.

Duab
Duab

Kauj Ruam 12: Sib dhos

Tam sim no peb xav kho txhua yam hauv rooj plaub siv kub-kua nplaum.

Peb pib nrog TP4056 module

Duab
Duab

tom qab ntawd muab cov kua nplaum tso rau hauv qhov kev txhawb nqa

Duab
Duab

ua raws los ntawm Arduino

Duab
Duab

thaum kawg tus IR-txais

Duab
Duab

thiab LED-strip

Duab
Duab

Kauj Ruam 13: Ntxiv Cov Pluaj

Ntxiv ib txoj hlua
Ntxiv ib txoj hlua

Kuv tsis tau tawm ntawm qhov no thiab kuv xav qhia koj kom muaj tswv yim thiab nqis peev me ntsis ntxiv sijhawm thiab siv zog ntau dua li kuv tau ua. Kuv pom cov lus qhia no uas kuv yuav ntxiv yav tom ntej.

Txog tam sim no, Kuv nyuam qhuav siv qee qhov chord kuv tau tso ncig, pub nws los ntawm cov ntawv luam tawm 3d thiab khi lub pob cyuam.

Kauj ruam 14: Ua tiav

Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Duab
Duab

Thiab peb ua tiav. Rov ua dua txhua kauj ruam kom txog thaum koj muaj 2 thiab koj npaj txhij mus rau qhov tig.

Kuv vam tias koj tau lom zem ua raws nrog. Ua tsaug rau kev nyeem:)

Pom zoo: