Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Siv Oled
- Kauj Ruam 2: Ntau OLEDs
- Kauj Ruam 3: Tsim Cov Ntawv Qhia Scrollable Nrog Rotary Encoder
- Kauj Ruam 4: Muab Txoj Cai Yav Dhau Los Togetther
- Kauj Ruam 5: Kev Cai PCB Nrog Fritzing + Schematic
- Kauj Ruam 6: Tsim + Lasercutter
- Kauj Ruam 7: Sib dhos
- Kauj Ruam 8: Tsis Txhob Tso Ntawm No
Video: Oled Tswb Tswb: 8 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Muaj ntau ntawm arduino/ESP32 moos nyob ib puag ncig, tab sis lawv puas siv cov OLEDs zoo thiab nkig?
Kuv tau sim nrog arduinos thiab ESP32 ib pliag tam sim no, tab sis kuv tsis tau ua tiav rau cov khoom tiav. Kuv tau ua lub tswb moos nrog 4 1.3 nti monochrome OLEDs. Lub moos tseem muaj lub teeb pom kev zoo ntawm lub txaj thiab lub USB them chaw nres nkoj (tsis muaj leej twg muaj lub qhov hluav taws xob nyob ib sab ntawm nws lub txaj). OLEDs yog dimmable ib yam, qhov no tau ntxiv zaum kawg tom qab kuv qhov haujlwm tau raug hem los ntawm kuv tus hluas nkauj. Yuav tsum dim tsis yog -in tus hluas nkauj lub suab -dim txaus, Kuv tseem tuaj yeem muab cov qauv ntawm cov cai uas 3 cov lus tau siv nruab nrab ntawm qee lub sijhawm. Lub hom phiaj yog ua kom yooj yim siv tau lub moos, nrog saib dhau qhov "qauv". Thaum ua kuv lub moos Kuv ntsib qee qhov nyuaj kuv yuav tsum tau daws, uas yog vim li cas kuv thiaj xav tias cov lus qhia no tsim nyog sib qhia. Lub moos tuaj yeem ua nrog cov cuab yeej me me, Kuv tsis nyiam "thiab rau qib tom ntej kuv tau siv kuv li 10.000 €/$ CNC zeb" kev qhia.
Qee yam uas yuav piav qhia hauv cov lus qhia no (hauv kev teeb tsa-xaiv):
- Yuav siv/xaim I2C OLED zaub nrog arduino/ESP32 li cas
- Yuav siv ntau yam khoom I2C nrog ib qho arduino/ESP32
- Yuav ua li cas kom "scroll-tau" cov ntawv qhia siv lub cav nkag teb chaws (+ yuav siv tus lej nkag nrog ESP32/arduino li cas)
- Yuav tsim thiab xaj PCB raws li kev siv fritzing li cas.
- Lub moos tseem siv RTC (lub sijhawm tiag tiag), coj tus tsav tsheb, nqis qis dua qhov ntsuas hluav taws xob … Kuv yuav tsis nkag mus rau cov no tiag vim tias muaj cov ntaub ntawv tiag tiag npaj tau rau cov qauv no.
Kuv xav sau tseg tias kuv tsis yog tus kws tshaj lij programmer. Lub hom phiaj ntawm kuv cov lus qhia yog piav qhia cov ntsiab lus uas kuv tau hais los saum no. Yuav ua li cas kuv muab tag nrho ua ke rau kuv cov khoom kawg yog yuav tsis yog txoj kev huv tshaj plaws. Nws yog txoj hauv kev uas tso cai rau kuv taug qab txhua yam.
Khoom siv
Thaum yuav khoom rau cov khoom siv Kuv ib txwm sim ntsuas qhov tseem ceeb ntawm qhov zoo/cov ntaub ntawv piv rau tus nqi. Kuv cov khoom siv yog sib xyaw ntawm A-hom thiab cov khoom hauv Suav pheej yig dua. Mouser yog tus muab khoom lag luam zoo yog qhov tseem ceeb, kuv xaj los ntawm Banggood/Aliexpress rau qhov pheej yig dua.
- Pawg ESP32, Kuv siv Huzzah32 los ntawm adafruit, tab sis muaj ntau ntau lwm qhov (pheej yig dua) xaiv. Kuv xaiv Huzzah32 vim tias nws tau sau zoo heev.
- 4 1.3 nti I2C OLED cov lus (128x64, nrog tus tsav tsheb SH1106), 0.96 "ib leeg yog ntau dua tab sis rau txoj haujlwm no kuv nyiam 1.3" sawv daws yuav
- Sparkfun femtobuck tsav tsheb los tsav LED
- RTC moos, Kuv tau siv ib lub roj teeb lithium
- Arduino nano
-Poj niam USB 2.0 chaw nres nkoj (Kuv siv: SS-52200-002 los ntawm Stewart Connector)
- Poj niam DC nkaus (Kuv siv: L722A los ntawm Switchcraft)
- 12V 3A DC adapter (GST36E12-P1J los ntawm Txhais Tau Zoo)
- Kev cai PCB, xaiv tau tab sis qhov no ua rau peb tes num ntau qhov kev cog lus thiab ua haujlwm tau yooj yim yog tias ib feem tuag + muaj kev ntseeg tau ntau dua vim tias tsis muaj xov hlau (jlcpcb.com)
M3 ntsia hlau & ntsia hlau
- M3 tooj dag ntxig
- 12V mus rau 5V nqis nqis los ntawm Pololu (DF24V22F5)
- 3 watts zog nrog lub rhaub dej kub
- Jumper xov hlau
- Buzzer
I2C multiplexer (TCA9548A los ntawm adafruit)
- 2 Tus lej nkag teb (Kuv tau sim qee qhov, tsis yog txhua yam ua haujlwm nrog kuv tus lej. Ib qho los ntawm "DFrobot" ua haujlwm thiab yog li ib qho los ntawm nrog puag ncig PCB los ntawm "DIYmore". Kuv tus lej tsis zoo li ua haujlwm rau lub khawm ntawm KY-040 hom. Kuv lub tswb nrov siv ib qho los ntawm DIYmore vim tias lawv yooj yim heev rau kev teeb tsa vaj huam sib luag (tsis xav tau cov ntsia hlau ntxiv/qhov xav tau ntxiv).
- Assortment ntawm poj niam headers (yeem)
Ntoo rau tus ncej: 18mmx18mmx2400mm
- Daim ntawv taug qab
Kuv tau siv qee yam cuab yeej (cov hlau txhuam, tes thib 3, pom…) ib yam nkaus, tab sis tsis muaj ib yam txawv kiag li.
Kauj ruam 1: Siv Oled
Txhawm rau siv OLEDs koj yuav tsum teeb tsa lub tsev qiv ntawv. Kuv siv U8G2lib los ntawm Oli Kraus, nws nkag siab heev thiab muaj cov lus qhia siv nrog piv txwv meej.
Txhawm rau txuas koj lub rooj tsavxwm (ESP lossis arduino) koj yuav tsum nrhiav SDA thiab SCL pins. Cov pins no yog I2C tus pin kev sib txuas lus. Google rau "pinout" ntawm koj pawg thawj coj tshwj xeeb yog tias koj nrhiav tsis tau lawv.
Kuv twb ntxiv qee qhov piv txwv. Txoj cai ua haujlwm rau ob qho tib si arduino thiab ESP32, tab sis ESP32 tsis tshua muaj peev xwm khiav tsis tau. Txhua qhov oleds kuv tau sim kom deb li deb ua haujlwm nrog ob qho 3.3v (ESP32) thiab 5V.
Kauj Ruam 2: Ntau OLEDs
Nov yog qhov uas kuv qhov haujlwm pib txawv ntawm ntau lwm lub tswb moos. Feem ntau arduinos/ESPs tsuas muaj ib lossis ob I2C tus pin. Hom kev txwv no siv I2C ntu. Yuav ua li cas yog tias kuv muaj 4 I2C sensors thiab xav kom pom lawv nyeem ntawm I2C zaub? Nkag mus rau multiplexer. Muliplexer tso cai rau koj hais txog 7 qhov sib txawv I2C ntu. Qhov no tso cai rau kuv ESP32 siv I2C lub sijhawm tiag tiag, thiab kom pom lub sijhawm siv dua I2C dua li 4 cov lus (lossis ntau dua, tsis txhob cia kuv tsum koj).
Kuv tau ntxiv qee qhov piv txwv rau ESP32, los ntawm no kuv tsis paub tseeb tias arduino tuaj yeem khaws cia. Qhov piv txwv tsuas yog siv cov lus qhia, nws tuaj yeem yog lwm yam xws li I2C sensors thiab lwm yam. Lub hauv paus ntsiab lus ib txwm zoo ib yam, koj hu rau txoj cai channel nrog "tcaselect (#);" muaj nuj nqi, tom qab ntawd koj ua txhua txoj cai tsim nyog rau koj cov khoom I2C.
Kauj Ruam 3: Tsim Cov Ntawv Qhia Scrollable Nrog Rotary Encoder
Thawj yam ua ntej, sim koj lub encoders. Kuv tau ntxiv qee qhov chaws txhawm rau sim koj cov lej encoder. Raws li tau hais hauv cov khoom siv: Kuv tsuas yog ua tiav qhov ntsuas kuv cov lej nrog cov qauv ntsuas qhov ntsuas los ntawm DF neeg hlau thiab cov qauv nrog puag ncig PCB los ntawm DIYmore. Saib cov duab saum toj no rau txoj cai encoders.
Lub tsev qiv ntawv kuv siv yog qhov no:
PDF kuv tau ntxiv kev cia siab pab nrog cov qauv zaub mov uas kuv tau siv rau kuv lub moos.
Ua tus encoder ua haujlwm, yog qhov nyuaj tshaj plaws rau kuv hauv txoj haujlwm no. Muaj ntau qhov sib txawv encoders, thiab ntau lub tsev qiv ntawv sib txawv uas tsis ib txwm sib xws nrog ESP32. Tab sis kuv xav tias a (ua haujlwm) rotary encoder yog qhov kev daws teeb meem yog tias koj xav nkag mus rau qee yam. Kuv puas yuav tsum tau siv cov khawm nkaus xwb, Kuv xav tau ntau dua 1 thiab teeb tsa lub sijhawm yuav siv ntau qhov nias.
Kauj Ruam 4: Muab Txoj Cai Yav Dhau Los Togetther
Lub ntsiab lus ntawm cov ntsiab lus uas kuv tau ua. Kuv sim ib feem rau ib feem thiab tom qab ntawd kuv muab txhua yam ua ke. Tab sis vim tsis muaj ib yam yooj yim li, kuv yuav tsum hloov qee yam. Kev sib txuas lus hauv xov tooj cua yog txheej txheem qeeb. Qhov no tau txais txoj hauv kev nyeem cov encoder kom raug. Txhawm rau kov yeej qhov no kuv ntxiv qhov cuam tshuam rau tus pin ntawm tus encoder. Txoj cai los nyeem tus encoder yog tam sim ntawd hu yog tias koj thawb lossis tig lub encoder.
Thaum koj nkag siab li cas cov ntawv qhia zaub mov tau tsim, koj yuav pom tias nws yooj yim heev rau ntxiv lossis tshem tawm cov yam ntxwv rau koj tus kheej nyiam. Tej zaum koj xav nqa cov huab cua tam sim no lossis lub sijhawm los ntawm internet thiab tso tawm?
Kuv tau tawm ntau lub tswv yim zoo li no vim tias kuv xav tau tshaj txhua qhov kev ntseeg siab tau-kev thaj yeeb. Ib qho uas tsis ua dab tsi. Kuv ua haujlwm ntau teev nyob rau thaj tsam txuag hnub nruab hnub. Txhua lub sijhawm hloov pauv Kuv tshee hnyo rau tsaug zog. Kuv lub xov tooj puas hloov sijhawm? Kuv puas yuav saib? Zoo, kuv lub moos yuav tsis, tshwj tsis yog kuv hloov nws tus kheej. Tab sis tej zaum koj xav muab koj lub moos tso rau hauv chav ua noj? Cov xwm txheej sib txawv, ntxiv cov yam kom txog thaum lub cim xeeb tawm!
Kauj Ruam 5: Kev Cai PCB Nrog Fritzing + Schematic
Lub ntsiab lus ntawm kev mloog: Adafruit qhia tawm tias thaum koj tuaj yeem siv lub zog huzzah32 ntawm tus pin USB, koj yuav tsum tau ceev faj kom tsis txhob siv tib lub zog micro USB nkag mus ib txhij. Kuv tus PCB tau siv los ntawm cov kauj ruam nqis qis, uas tom qab ntawd ua rau huzzah ntawm USB tus pin. Yog li ib txwm tshem lub zog sab nraud/tshem tawm huzzah los ntawm pawg thawj coj thaum rub tawm.
Kuv txiav txim siab muab tus poj niam lub taub hau tso rau ntawm PCB vim nws ua rau nws yooj yim dua los pauv ib feem, lossis ntxiv piv txwv ntxiv I2C sensor. Qhov no tseem tso cai rau kuv tshem tawm nano lossis ESP32 kom yooj yim rau thauj cov haujlwm.
Kuv tau ntxiv cov ntaub ntawv Frizting, Kuv tuaj yeem ntaus cov ntawv tshiab ntawm no, tab sis kuv xav tias qhov piv txwv hais tau zoo tshaj plaws. Kuv pib nrog schematic ntawm kev teeb tsa tag nrho. Thaum Fritzing muaj ntau qhov hauv nws lub thoob, tsis yog txhua yam nyob ntawd. Qee zaum koj tuaj yeem pom Fritzing ib feem ntawm is taws nem, qee zaum koj tsis tuaj yeem pom. Qhov uas kuv nrhiav tsis tau, kuv hloov pauv los ntawm ib tus poj niam header ib feem. Yog tias koj nyem rau nws, koj tuaj yeem hloov lub taub hau rau tus lej ntawm tus pin koj xav tau, thiab muab tus pinout rau nws. Kuv tau ua qhov no nrog txhua ntu kuv nrhiav tsis tau. Raws li yuav luag txhua qhov qauv siv tib lub suab ntawm 0.1in (2.54mm) qhov no yuav ua rau koj muaj qhov sib txawv ntawm qhov.
Tom ntej no koj hloov mus rau PCB saib ntawm fritzing app. PCB yuav muab tso rau hauv, yog tias koj nyem nws, koj tuaj yeem teeb tsa nws qhov loj me thiab xaiv ib lossis ob txheej txheej PCB. Kuv siv 2 txheej. Fritzing yuav qhia cov kev sib txuas uas koj tau ua hauv cov txheej txheem pom. Qhov kev zov me nyuam muaj kev xaiv autoroute, tab sis kuv yeej tsis siv nws. Kuv nyiam rau manually teeb tsa kuv cov kev sib txuas. Hauv PCB saib cov kev sib txuas daj yog nyob rau txheej saum toj kawg nkaus, cov txiv kab ntxwv nyob hauv txheej txheej hauv qab. Ib zaug ntxiv yog tias koj nyem rau ntawm qhov txuas koj tuaj yeem xaiv nws cov khoom.
Txhawm rau ua qhov tseeb PCB, koj yuav tsum xa nws tawm ua cov ntaub ntawv gerber. Ua ntej koj ua qhov no, hauv qab tab "routing" koj tuaj yeem tshawb xyuas cov cai tsim. Yog tias txhua yam tshuaj xyuas koj tuaj yeem nyem rau "export rau PCB". Feem ntau cov tuam txhab yuav thov cov ntaub ntawv gerber, yog li xaiv xa mus rau gerber.
Kuv xaj kuv li PCB los ntawm JLCPCB, Kuv nyiam qhov lawv tam sim hais nqe rau koj. Muaj ntawm chav kawm ntau lwm txoj kev xaiv.
Txog cov txheej txheem: muaj 2 qhov hluav taws xob uas tau siv. LED thiab femtobuck tau ncaj qha los ntawm 12V khoom. Tus so yog lub zog los ntawm kev nqis nqis nqis nrog 5 volts.
Kauj Ruam 6: Tsim + Lasercutter
Rau kuv thawj tus qauv kuv tau sim siv cov ntoo qhib ntoo (Kuv tab tom ua cov chav ua haujlwm ntoo), tab sis nws tau nrawm nrawm pom tias qhov no tsis zoo tagnrho. Ntoo yog tuab heev, ua rau nws nyuaj rau haum koj qhov chaw. 3mm birch multiplex tso cai rau txoj hauv kev yooj yim dua kom nrawm cov encoders thiab cov lus qhia.
Kuv pom qhov kev pabcuam lasercut online, snijlab.nl, muaj rau cov nyiam ua haujlwm nyob hauv Rotterdam (lawv xa mus rau Belgium, Lub Netherlands thiab Lub Tebchaws Yelemees). Ntawm lawv lub vev xaib koj tuaj yeem xa koj cov duab kos thiab lawv tam sim hais koj tus nqi. Kuv siv Autocad, uas kuv tau ua haujlwm, tab sis software tsis muaj teeb meem tiag. Nws tsuas yog yuav tsum yog duab kos duab (Vectr, Illustrator, Inkscape…). Cov khw feem ntau siv xim los txiav txim seb koj puas xav txiav lossis kos duab.
Qee yam yuav tsum nco ntsoov:
- Max. qhov ntev ntawm lub lasercutter (Kuv kos ib kab ib ncig kuv qhov chaw)
- Min. nrug deb ntawm kev txiav
- Nco ntsoov tias koj tsis kos kab ob kab, lub laser yuav ua kom dhau mus, ua rau koj raug nqi ntau dua.
- Thaum npaj rau PDF, xyuas kom tseeb tias koj npaj 1: 1. Koj tsis xav kom txo qis lossis haum rau daim ntawv.
Kauj Ruam 7: Sib dhos
Kuv ua lub moos nyob ib puag ncig tus ntoo ntoo, cov vaj huam sib luag tau khaws cia nrog M3 cov ntsia hlau thiab ntxig rau hauv tus ncej. Kuv puas yuav tsum tau tsim ib qho version 2, Kuv yuav siv txhuas "L" profiles los txuas cov vaj huam sib luag rau. Nws yog qhov nyuaj heev los txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhuam cov tooj dag. Nws siv kuv ntev heev, tsuas yog qhov ua tau zoo. Qhov no yuav txhais tau tias cov duab lasercut yuav tsum tau kho dua. Kuv xav nrog aluminium profiles thiab tsuas yog txiv ntseej thiab bolts koj yuav tau txais txiaj ntsig zoo dua.
Txhawm rau nthuav lub teeb kom zoo dua, Kuv tau glued daim ntawv taug qab ntawm sab hauv ntawm qhov perforations. Qhov no muab lub teeb ci zoo rau nws.
Kauj Ruam 8: Tsis Txhob Tso Ntawm No
Txoj haujlwm nyob ib puag ncig ESP32, Kuv tsis tau siv nws. Kuv lub teeb chav pw tam sim no tuaj yeem tswj chaw taws teeb siv blynk. Tswj lawv nrog lub moos tsuas yog ib kauj ruam me me ntxiv. Tej zaum koj xav tau qee qhov kev qhia ntxiv uas qhia koj qhov kub nyob ib puag ncig koj lub tsev? Los yog qee qhov kev ntsuas hauv zos (tseem tshuav seem I2C txuas rau ntawm tus lej sib tw!). Tej zaum teeb tsa lub sijhawm/tswb ntawm app thiab bluetooth?
Qhia rau kuv paub tias koj hloov dab tsi, koj yuav hloov dab tsi, kuv yuav hloov dab tsi …
Pom zoo:
Tswb Tswb Tswb Tswb Tswb Ntse Teeb: 8 Kauj Ruam (nrog Duab)
Tswb Tswb Tswb Tswb Tswb Lub Teeb: Hauv qhov haujlwm no kuv tau siv lub tshuab cua-tsoo lub tswb tawg tag. Lub ntsej muag ntawm lub moos tau hloov pauv los ntawm 12 LEDs, teeb pom kev los ntawm LED kab ib ncig ntawm ntug ntawm lub moos. 12 LEDs qhia lub sijhawm thiab cov hlua LED tau teeb tsa los ua lub tswb, tig
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: 10 Kauj Ruam (nrog Duab)
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: Koj puas tau xav tau lub moos ntse? Yog tias yog, qhov no yog kev daws teeb meem rau koj! Thaum lub tswb nrov tawm, yuav muaj lub suab (buzzer) thiab 2 lub teeb yuav
Arduino Push Alerts rau Lub Tswb, Tswb Tswb, Tswb Tswb Tswb Thiab Lwm Yam: 8 Kauj Ruam
Arduino Push Alerts rau Tswb, Tswb Tswb, Tswb Tswb Tswb thiab lwm yam: IoT Cov Ntawv Ceeb Toom los ntawm koj lub Tswb, Tswb Tswb, Tswb Tswb thiab lwm yam siv Arduino Uno thiab Ethernet Shield. Cov ncauj lus kom ntxaws ntawm kuv lub vev xaib ntawm no Hais txog Arduino Push Alert Box Siv Arduino Uno thiab Ethernet Shield raws li Wiznet W5100 nti rau
Tswb Tswb Tswb Tswb Nrog Arduino: 9 Kauj Ruam (nrog Duab)
Tswb Tswb Tswb Tswb Nrog Arduino: Lub caij ntuj no tuaj yeem tu siab. Koj sawv, nws tsaus ntuj thiab koj yuav tsum tau tawm ntawm txaj. Qhov kawg uas koj xav hnov yog lub suab nrov nrov ntawm koj lub tswb tswb. Kuv nyob hauv London thiab kuv muaj lub sijhawm nyuaj thaum sawv ntxov. Tsis tas li ntawd, kuv nco tsis tau txog rau
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa: 7 Kauj Ruam (nrog Duab)
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa Tswm Tswm: Tsa Kuv Lub Caij Ntuj No Lub caij ntuj no kuv tus hluas nkauj muaj teeb meem sawv thaum sawv ntxov thiab zoo li raug kev txom nyem los ntawm SAD (Lub Caij Caij Nyoog Muaj Teeb Meem). Kuv txawm pom tias nyuaj npaum li cas kom sawv thaum lub caij ntuj no vim lub hnub tsis tuaj