Cov txheej txheem:
- Kauj Ruam 1: Lub Rooj Tswjhwm Saib Lub Teeb - Sau Cov Khoom Siv
- Kauj Ruam 2: Pawg Tswj Xyuas - Kev Tiv Thaiv Lub Hwj Chim
- Kauj Ruam 3: Pawg Tswj Xyuas - Cov Khoom Siv Hluav Taws Xob
- Kauj Ruam 4: Tswj Lub Rooj Tswjhwm Saib - Hloov Cov Tswv Yim
- Kauj Ruam 5: Pawg Tswj Xyuas - Yuav Tsum Muaj Kev Sib Ntsib
- Kauj Ruam 6: Pawg Tswj Xyuas - Software
- Kauj Ruam 7: Kaum LED Sawb ("Teeb Chaw Nres Tsheb") - Cheeb Tsam
- Kauj Ruam 8: Kaum LED Sawb ("Chaw Nres Tsheb")
- Kauj Ruam 9: Teeb Lub Teeb
- Kauj ruam 10: Customize thiab Txaus siab rau
Video: ESP8266 Wireless RGB Headlights (Genesis Coupe): 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Puas yog koj tab tom nrhiav ntxiv ntau xim RGB LEDs rau koj lub taub hau? Rau cov neeg feem coob cov khoom siv hauv lub txee tuaj yeem tuaj yeem tshawb xyuas lub thawv uas tsim nyog. Los ntawm cov npe khoom koj tuaj yeem tau txais kev sim, pov thawj system nrog qee qib ntawm kev lees paub. Tab sis dab tsi ntxiv nws tuaj nrog? Ib qho pheej yig yooj yim kom poob chaw deb? Bulky thaiv? Hom ecosystem lockin? Yog tias koj muaj DIY chops nyeem ntxiv kom paub yuav pib li cas nrog koj tus kheej kev cai RGB LED cov khoom siv. Thov nco ntsoov nyeem cov cai hauv koj thaj tsam hais txog teeb pom kev zoo hauv tsheb. Kuv yuav tsis coj lossis xav tias yuav muaj lub luag haujlwm lossis lub luag haujlwm rau koj li kev ua!
Phau ntawv qhia no pib nrog ob peb qhov kev xav yog li thov npog cov ntsiab lus no ua ntej mus:
- kom paub nrog ESP8266 thiab yuav ua haujlwm li cas
- tuaj yeem tshem tawm koj lub tsheb lub teeb taub hau
- muaj peev xwm yaj tau yam tsis hlawv koj tus kheej… R. I. P. kuv tus ntiv tes qhia
- yuav tsum paub dab tsi ntawm no yuav txawv rau koj lub tsheb yog li kho kom haum
- nco ntsoov nyeem cov kev cai lij choj hauv koj cheeb tsam hais txog teeb pom kev zoo hauv tsheb
Kauj Ruam 1: Lub Rooj Tswjhwm Saib Lub Teeb - Sau Cov Khoom Siv
Rau ob lub taub hau lub taub hau microcontroller cov laug cam koj yuav tsum tau sau cov hauv qab no
- 2 x ESP-01 cov laug cam
- 2 x Prototyping boards (2.54 mm / 0.1 " / 100 mil suab qhov)
- 4 x 2N7000 teeb liab me me mosfets (TO-92 pob)
- 4 x 1N4001 rectifier diodes
- 4 x 0.1uF capacitors
- 2 x qhib ntws rub tawm cov neeg tawm tsam - 2k Ohm rau 4k Ohm
- 2 x resistor divider sab saum toj resistors - txog 8.2k Ohm
- 2 x resistor divider hauv qab resistors - txog 2k Ohm rau 4K Ohm
- 2 x buck converter module - tso tawm teeb rau 5 V
- 2 x LDO module - tso tawm teeb rau 3.3 V
- yeem tau: 2x ntsia hlau dav hlau thaiv
- xaiv tau: 2x ESP-01 daim ntawv qhia khoom noj khoom haus
- xaiv tau: 2x TVS diodes tiv thaiv diodes (~ 18V-21V)
- yeem: 2x 22uF capacitors (25V min)
- yeem: 2x 22uF capacitors (6.3V min)
Kev xa khoom
Kuv tau txais yuav luag txhua yam hauv phau ntawv qhia no los ntawm eBay (lossis Tuam Tshoj Bay raws li kuv hu nws). Qhov no yog vim kuv tsis txhawj xeeb txog kev cuav lossis tsis zoo thaum nws los txog rau yam xws li cov ntsia hlau txuas, cov neeg tawm tsam, cov laug cam, lossis lub zog mosfets qis. Kuv tsis tsav lawv mus rau lawv qhov txwv. Txawm li cas los xij kuv tau siv nyiaj zoo ntawm TVS diodes thiab lub peev xwm los ntawm kev xaj lawv los ntawm DigiKey. Kuv tsuas yog ua qhov no los lav qhov kuv tau txais yog qhov kuv xaj.
Kauj Ruam 2: Pawg Tswj Xyuas - Kev Tiv Thaiv Lub Hwj Chim
Txhawm rau tiv thaiv koj cov khoom siv hluav taws xob los ntawm qhov hluav taws xob rov qab lub rectifier diode los rau hauv kev ua si. Kuv tau txais 1N4004 diodes los ntawm kuv lub khw hluav taws xob hauv zos. Lawv tsuas yog siv los nqa ib lub amp max. Koj tuaj yeem pom hauv kuv tsab ntawv ntawm cov kauj ruam tom ntej kuv siv ib qho rectifier diode tab sis kom muaj kev nyab xeeb Kuv siv ob qho tib si ntawm kuv lub rooj tsav xwm zaum kawg. Rau kev tiv thaiv los ntawm qhov hluav taws xob ntau ntxiv peb siv TVS diodes. Lawv zoo li zener diodes tab sis tsis zoo li zeners lawv tuaj yeem muaj sia nyob ob peb kaum amps yam tsis muaj hws. Tej zaum koj tuaj yeem tawm mus yam tsis siv TVS diodes tab sis kuv tsis xav kom muaj kev pheej hmoo nws. Kuv kuj tseem siv lub ntsuas hluav taws xob ntawm lub tswv yim tab sis qhov ntawd tsuas yog xav tau txhawm rau tiv thaiv xim av tawm thaum twg los xij lub halo rings tau qhib.
Kauj Ruam 3: Pawg Tswj Xyuas - Cov Khoom Siv Hluav Taws Xob
Tom qab koj lub zog tawm tswv yim dhau qhov kev tiv thaiv Circuit koj xav pib ua kom siv tau rau cov khoom siv ntawm koj lub rooj tsavxwm. Nov yog lub luag haujlwm ntawm koj cov nyiaj pauv hloov thiab LDO. Tus hloov pauv phaus tuaj yeem nqis qis koj lub tsheb 14V cov khoom xa mus rau 4.5V ntawm qhov tso tawm. WS2818B LEDs thiab LDO yuav txuas nrog cov nyiaj. LDO tswj hwm qhov hluav taws xob ntxiv rau 3.3V rau siv los ntawm ESP8266 thiab cov hloov pauv nkag.
Nco tseg: Tus phaw tau teeb tsa rau 4.5V vim tias lub teeb liab digital los ntawm MCU mus rau LEDs tsuas yog 3.3V. Yog tias LEDs khiav ntawm 5.0V ces qee zaum cov ntaub ntawv tsis raug tau txais los ntawm LEDs thiab cov xim tsis raug tso tawm. Txo tus nqi hloov pauv mus rau 4.5V txo txoj hauv kev no. Xwb, siv lub ntsuas hluav taws xob hloov pauv ntawm MCU thiab LEDs.
Kauj Ruam 4: Tswj Lub Rooj Tswjhwm Saib - Hloov Cov Tswv Yim
Cia peb tham txog cov hloov pauv tam sim no. Hais tias peb xav kom peb lub rooj tsav xwm tswj xyuas kom pom thaum lub teeb liab tig mus thiab seb lub teeb nqaj qis puas ua haujlwm. Qee lub tswv yim ntawm kev txheeb xyuas lub xub ntiag ntawm lub zog yog xav tau. Peb muaj teeb meem txawm hais tias, lub zog qhia hauv koj lub tsheb muaj qhov hluav taws xob siab dhau los txuas ncaj qha rau hauv koj li ESP8266. Muaj tsawg tsawg tus nti tawm uas tuaj yeem cuam tshuam nrog 16V teeb liab thiab nyob los qhia txog nws. Vim li no peb siv txheej cais ntawm cov kab hluav taws xob hauv lub taub hau thiab cov tswv yim ntawm ESP8266. Nrog tsuas yog 3 tus tiv thaiv, lub ntsuas hluav taws xob, thiab lub teeb liab me me mosfet peb tuaj yeem tso ua ke qhov hluav taws xob muaj peev xwm hloov pauv uas daws peb cov kev xav tau thiab muaj peev xwm nthuav tawm!
Txoj kev xav ntawm kev ua haujlwm ntawm no yog siv mosfet ua qhov qhib-ntws tsis. Xa mus rau daim duab seb yuav tsim koj li Circuit Court li cas. Qhov teeb liab IN yuav los ntawm +12V lub zog ntawm koj lub teeb taws lub teeb tig, nqaj qis, lossis nqaj siab. Lub teeb liab tawm mus rau koj tus lej ESP-01. Tus pin twg los siv yuav raug them rau hauv ntu software.
Kauj Ruam 5: Pawg Tswj Xyuas - Yuav Tsum Muaj Kev Sib Ntsib
Layout yog nyob ntawm koj! Nws yeej pab kuv kos duab txheej txheem ntawm ib daim ntawv ua ntej tso cov khoom sib xyaw. Nws kuj tseem pab kom tsis txhob siv tshuaj txhuam kom txog thaum tom qab txhua yam tso thiab ua tiav. Ntawm kuv thawj lub rooj tsavxwm kuv tsuas yog muab nws pov tseg es tsis txhob sim txav cov khoom ib puag ncig tom qab qhov tseeb.
Txheej txheem cej luam ntawm cov kauj ruam dhau los:
Lub Hwj Chim Tsheb => Kev Tiv Thaiv Tawm => 5V Fais Fab => 3.3V Fais Fab => Tus Txheej Txheem
Sab xav
Kuv pom zoo nqis peev hauv cov ntsia hlau dav hlau thaiv. Qhov yooj yim ntxiv yog qhov tsis muaj nuj nqis thiab nws ua rau pawg thawj coj saib zoo dua qub. Kev siv ESP-01 daim ntawv qhia zaub mov kuj tseem tso cai rau koj tshem tawm thiab hloov ESP-01 txhua lub sijhawm nws yuav tsum tau tawg lossis yuav tsum tau rov ua dua tshiab.
Kauj Ruam 6: Pawg Tswj Xyuas - Software
Koj qhov kev txhim kho ib puag ncig yuav suav nrog qhov tseeb Arduino IDE (arduino.cc) thiab NeoPixelBus lub tsev qiv ntawv los ntawm Makuna uas koj tuaj yeem rub tawm siv Arduino ua hauv tus thawj tswj tsev qiv ntawv. Txhawm rau ntxiv ESP8266 kev txhawb nqa rau Arduino IDE ua raws cov lus qhia no: https://learn.sparkfun.com/tutorials/esp8266-thing …
Qhov chaws rau kuv qhov project tau txuas nrog
ESP-01 pinout yog raws li hauv qab no:
- GPIO 0 - cov nqaj nqaj qis
- GPIO 1 - tig teeb liab nkag
- GPIO 2 - strip 2 cov zis
- GPIO 3 - cov kab tawm kaum
Koj muaj kev ywj pheej siv ib qho ESP8266 tus qauv uas koj xav tau nrog ntau dua I/O pins.
Automation
Lub software demo tau teeb tsa lub teeb nyem rau ntawm lub ces kaum amber ua ke nrog lub teeb liab. Nov tsuas yog qhov piv txwv yooj yim ntawm yuav ua li cas koj tuaj yeem coj tus tswj hwm txoj kev no hla dhau ntawm cov khoom txee. Tom qab lub teeb liab nres rau 1.25 vib nas this nws rov qab los ib txwm-rau / DRL. Nws twb tau teeb tsa los ua kom lub teeb liab tig liab thaum khaws DRL hauv kev nco ua xim kawg uas koj teeb tsa. Qhov no txhais tau tias koj tuaj yeem siv koj lub xov tooj los teeb lub cim DRL xim thaum tseem khaws lub teeb liab liab lub ntsej muag.
Thov paub txog txoj cai teeb pom kev tsheb hauv koj cheeb tsam.
Tswj
Ntawm koj lub network ESP8266 yuav tsum tshwm li https://headlight-left.local lossis https:// headlight-right.local. Los ntawm qhov ntawd koj tuaj yeem hu rau URL "https://headlight-left.local/help" kom pom cov ntawv qhia zaub mov pab thiab kom paub txog kev xa hex xim qhov tseem ceeb raws li kev sib cav hauv HTTP thov.
Kauj Ruam 7: Kaum LED Sawb ("Teeb Chaw Nres Tsheb") - Cheeb Tsam
Koj tuaj yeem yuav cov LEDs no hauv cov ntawv ntawm 100 rau qhov pheej yig zoo nkauj online. Lawv tuaj ntawm puag ncig PCB los uas yooj yim rau solder. Nrog cov xov hlau nruj koj tuaj yeem muab cov no sib dhos ua ke thiab ua txhua hom duab. Los yog nrog cov xoob xoob koj tuaj yeem xaws cov no rau hauv khaub ncaws.
Kauj Ruam 8: Kaum LED Sawb ("Chaw Nres Tsheb")
Nws yog qhov ncaj: lub zog, av, thiab cov ntaub ntawv txhua tus ua raws ib qho kev qhia. Kuv siv 18 LEDs ntawm txhua sab. Qhov ntev ntawm LED sawb koj tuaj yeem ua tau yog programmable thiab xyaum tsis muaj qhov txwv.
Kauj Ruam 9: Teeb Lub Teeb
Tshem tawm cov teeb taub hau yog txawv rau txhua lub tsheb. Nyob rau xyoo 2013 Chiv Keeb Coupe lub teeb taub hau tsis tuaj yeem tshem tawm yam tsis tshem lub tsheb lub hauv pliaj ua ntej! Qhib cov taws teeb yog ua tsaug yooj yim. Txhua yam koj yuav tsum ua yog ci lub taub hau hauv qhov cub ntawm 205 txog 215 degrees F txog li 15 feeb. Qhov ntawd yuav ua rau lub foob tsis txaus rau koj rub lub taub hau sib nrug. Tiag tiag nres los ntawm YouTube rau qhov kev cia siab tsis kawg ntawm yuav ua li cas cov yeeb yaj kiab ntawm cov ncauj lus no.
Muab cov taws teeb rov qab ua ke tsuas yog xav kom koj ua cov khoom seem rov qab ua ke thiab xaiv kom sov dua.
Cov Lus Qhia Pro: Ua ntej tso koj lub taub hau rau hauv qhov cub koj yuav tsum tshem qhov muag teev, ntsia hlau, thiab lwm yam uas yuav tau txais txoj hauv kev. Thaum cov taws teeb tawm ntawm qhov cub koj xav kom koj qhov kev txhawj xeeb tsuas yog rub nws sib nrug.
Pom zoo:
YADPF (YET Lwm Tus Duab Duab Duab): 7 Kauj Ruam (nrog Duab)
YADPF (YET Lwm Tus Duab Duab Duab): Kuv paub qhov no tsis yog khoom tshiab, Kuv paub, Kuv tau pom qee qhov ntawm cov haujlwm no ntawm no, tab sis kuv ib txwm xav tsim kuv tus kheej cov duab thav duab. Txhua daim duab thav duab kuv tau pom yog qhov zoo, tab sis kuv tab tom nrhiav lwm yam, Kuv tab tom nrhiav qhov zoo nkauj tiag tiag
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv