Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Luam Ntawv thiab Xov Tooj…
- Kauj Ruam 2: Sib dhos PCB
- Kauj ruam 3: Sketch
- Kauj Ruam 4: Nws Yog Sijhawm Hais Tias Zoo
Video: 7 Ntu Sijhawm: 4 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Tom qab ob peb xyoos ntawm kev siv, kuv lub moos sib piv yog tias muaj tseeb tuag.
Lub caij no kuv tab tom nrhiav rau 3d lub phiaj xwm phiaj xwm los luam tawm nrog kuv Prusa, yog li kuv pom 7 ntu ntu yuav tsum tau tsav los ntawm ws2812 leds thiab Arduino.
Kuv xav tias lub zog ntawm cov leds ntawd yog los qhia ntau yam xim tom qab ntawd lo lus nug yog, yuav ua li cas sib xyaw ntau xim ntawm lub moos digital?
Tom qab ntawd lub tswv yim los kho lub moos nrog cov yam ntxwv hauv qab no:
- 7 qhov sib txawv feeb hloov pauv
- 3 xim ua ntej teeb tsa rau lub sijhawm
- ambient teeb siv pib dim
- pib kaw/pib thaum tsis tas yuav qhia lub sijhawm
- pib nruab hnub txuag lub sijhawm hloov kho
Khoom siv
Txoj haujlwm tuaj yeem ua tiav siv lub tshuab luam ntawv 3D lossis googling rau cov haujlwm ntawm 7 ntu moos. Qee leej ua rau lawv nrog duab los qhia thiab.
Kuj tseem xav tau:
- Arduino nano cov
- photo chaw
- momentary laub khawm
- on/off hloov
- DC ntsaws
- 5V hloov hluav taws xob
- n ° 30 WS2812 leds (qauv 30 leds/meter)
- pcb xab
- DS3231 tus qauv
- nyias cables rau leds sib txuas
- resistors 10K, 550
- laug
- kua nplaum
- dhia
- headers txiv neej/poj niam
Kauj Ruam 1: Luam Ntawv thiab Xov Tooj…
Thawj qhov haujlwm ntawm Thingverse tau hloov kho me ntsis. (Ua tsaug rau cov neeg siv random1101)
Ob lub ntsiab lus tau nthuav dav kom haum rau kev coj ua siv rau txoj haujlwm no. Ib ntawm peb sab nraub qaum kuj tau hloov kho kom haum pcb. Hloov pauv lub moos puag.
Lub luag haujlwm tseem ceeb yog txhawm rau txhawm rau leds. Rau thawj zaug kuv tau pib ua haujlwm leds sab nraum 3d luam tus lej rov qab, tom qab ntawd ntxig rau hauv nws.
7th tus thawj coj ntawm thawj tus lej pib ntawm sab laug yuav txuas nrog thawj coj ntawm tus lej tom ntej. Thaum kawg ntawm tus lej thib 4, txuas ob kab ntawv coj mus, lawv yuav suav tus lej 28 thiab 29 hauv ntu.
Cov coj ua ntu zus tuaj yeem hloov pauv hloov qee qhov tsis nkag mus rau Arduino lub tsev qiv ntawv raws li tau piav qhia.
Thaum txuas nrog, feem ntau ntawm cov haujlwm tau ua tiav.
Kauj Ruam 2: Sib dhos PCB
Tam sim no nws yog lub sijhawm los sib sau ua ke pcb qhov twg siv qee qhov tiv thaiv, lub taub hau, thiab lwm yam. Cov khoom siv txuas Arduino yog:
Pushbutton txuas ntawm Arduino tus pin 3 thiab GND nrog sab hauv rub tawm tus tiv thaiv.
Lub teeb pom kev zoo txuas nrog ua qhov faib hluav taws xob, nruab nrab ntawm Arduino tus pin A7 thiab GND. Ntxiv kuj 10K resistor ntawm A7 thiab +5V ……… Qhov yuam kev loj
lub teeb pom kev nruab nrab ntawm +5V thiab A7 tus pin thiab 10K resistor ntawm A/ tus pin thiab GND
DS3231 module txuas ntawm i2c thiab SQW tus pin rau Arduino cuam tshuam tus pin 2
Leds txuas nrog tus pin 5 txog 550Ohm resistor.
Kauj ruam 3: Sketch
Muaj ntau qhov kev hloov kho uas tuaj yeem ua rau sab hauv daim duab.
Txuag lub tsev qiv ntawv lub sijhawm nruab hnub yog ua los ntawm cov sijhawm TimeChangeRule, saib JChristensen lub tsev qiv ntawv ntawm Github kom paub ntau ntxiv.
Tsis siv neeg kaw hauv lub voj yog ua los ntawm qhov sib txawv ntawm qhov nkag mus. Hauv kuv qhov xwm txheej ntawm 0:00 Arduino mus rau hauv hom pw tsaug zog, tom qab ntawd lub moos kaw.
Teeb ALARM ntawm DS3231 tus qauv los ntawm qhov sib txawv ntawm qhov nkag mus, tso cai rau Arduino kom sawv los ntawm hom pw tsaug zog. Hauv kuv qhov xwm txheej thaum 7:00 sawv ntxov.
Lwm qhov tshwj xeeb yog hloov xim xim thaum nruab hnub hauv kev ua haujlwm:
void printDateTime (time_t t, const char *tz)
Hauv kuv qhov chaw txij h 0:00 txog 12:00 lub sijhawm tau pom liab, thaum 12:00 txog 17:00 ntsuab thiab los ntawm 17:00 txog 0:00 feem ntau yog xiav. Nov yog qhov sib npaug xim zoo tshaj pom txog tam sim no rau qhov sib piv zoo nrog phab ntsa dawb tom qab.
Cov kev hloov pauv tau tso cai kom muaj cov xim hloov pauv xim thaum hloov pauv. Muaj 6 qhov sib txawv uas tuaj yeem xaiv xaiv nias lub pob tam sim, qhov kev xaiv thib 7 yog w/o kev hloov pauv. Qhov uas kuv nyiam yog lub npe tshiab () uas yog presetted (int hom = 1;).
Kuv tau ua qee qhov kev hloov pauv rau lub tsev qiv ntawv rau kev sib raug zoo nrog coj ua ntu zus. Sab hauv cov ntaub ntawv segment_display.cpp, thaum kawg, hloov (i) koj tuaj yeem hloov kho koj li kev coj ua. Thaum ua tiav hloov cov ntaub ntawv sab hauv
/Arduino/tsev qiv ntawv/7segment_NeoPixel-master
Cov tsev qiv ntawv xav tau:
- avr pw
- ntu_display
- SWB 32231
- TimeLib
- Hlau
- Adafruit NeoPixel
- Lub Sijhawm
Kauj Ruam 4: Nws Yog Sijhawm Hais Tias Zoo
Kuv nyiam lub moos no, lub sijhawm tam sim no pom tseeb los ntawm qhov deb thiab nws tig tawm thaum kuv tsis xav tau.
Yuav ua li cas thiaj thov tau ntau dua ntawm lub moos?
Pom zoo:
Cov Ncua Sijhawm Ncua Sijhawm: 19 Kauj Ruam (nrog Duab)
Cov Ncua Sij Hawm Ncua Sijhawm: Kev tsim lub tshuab ntaus suab paj nruag yog siv sijhawm, feem ntau nyuaj siab, thiab txheej txheem kim. Yog tias koj xav tias koj yuav txuag sijhawm thiab nyiaj txiag los ntawm kev ua koj tus kheej lub tsheb qeeb qeeb, Kuv qhia koj kom nyeem R.G. Keen nplooj ntawv ntawm kev lag luam ntawm pedal tsev
WiFi Lub Sijhawm, Lub Sijhawm & Chaw Huab Cua, Blynk Tswj: 5 Cov Kauj Ruam (nrog Duab)
WiFi Clock, Timer & Weather Station, Blynk Tswj: Qhov no yog Morphing digital moos (ua tsaug rau Hari Wiguna rau lub tswvyim thiab hloov pauv tus lej), nws tseem yog lub moos sib piv, chaw qhia huab cua thiab lub sijhawm ua noj. Blynk app ntawm koj lub smartphone los ntawm WiFi. Lub app tso cai rau koj
Siv DS1307 thiab DS3231 Lub Sijhawm Teev Sijhawm Sijhawm Nrog Arduino: 3 Kauj Ruam
Siv DS1307 thiab DS3231 Lub Sijhawm Caij Nyoog Sijhawm Nrog Arduino: Peb tseem tau txais kev thov yuav siv DS1307 thiab DS3231 lub sijhawm teev sijhawm nrog Arduino los ntawm ntau qhov chaw-yog li qhov no yog thawj ntawm ob ntu kev qhia yuav siv li cas. Txog qhov kev qhia Arduino no peb muaj ob lub sijhawm teev sijhawm ua haujlwm rau peb
Lub Sijhawm Teem Sijhawm Teem Sijhawm ntawm RaspberryPi-4: 6 Cov Kauj Ruam (nrog Duab)
Lub Sijhawm Teem Sijhawm Teem Sijhawm ntawm RaspberryPi-4: Hauv Cov Lus Qhia no peb yuav ua lub ntsej muag-paub lub sijhawm tiag tiag ntawm Raspberry Pi 4 nrog Shunya O/S siv Shunyaface Library. Koj tuaj yeem ua tiav qhov ntsuas pom ntawm 15-17 ntawm RaspberryPi-4 los ntawm kev ua raws cov lus qhia no
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