Cov txheej txheem:
Video: Ambient Lub Sij Hawm Tiag: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Aim
Kuv tau ua Lub Sijhawm no vim tias kuv muaj qhov chaw nyob LED teeb nyob ib puag ncig thiab kuv xav siv nws. Tom qab ntawd kuv pom kuv chav tsis muaj moos zoo uas phim nws cov phab ntsa. Yog li kuv txiav txim siab los ua Lub moos uas tuaj yeem hloov nws cov xim raws li cov neeg siv lub siab lossis xim phab ntsa.
Kauj ruam 1: YouTube Video
Saib cov vis dis aus youtube no rau cov lus qhia tag nrho
Kauj ruam 2: Txheej txheem
Kuv xub nqa 24 x 15 nti plywood board.
Txiav LED sawb rau hauv daim thiab muab lawv tso rau ntawm lub rooj tsav khoom Tom qab ntawd muab lawv pov tseg Kuv npog tag nrho nrog daim ntawv dub daim ntawv Tom qab ntawv muab cov ntawv thermocoal tso rau saum nws thiab txiav cov thermocoal nrog rab riam ntse hauv cov duab ntawm 4 xya ntu qhia nrog rau ob qhov nyob hauv nruab nrab. Tom qab ntawd ua rau kuv cov phiaj xwm npaj tau siv cov duab kos hauv qab no
thiab dhau qhov no tag nrho tom qab lub rooj tsavxwm. Kuv kuj xaj ib tus pcb kev cai rau tib yam los ntawm https://jlcpcb.com lawv muab cov pcb zoo tshaj plaws rau tus nqi qis tshaj los ntawm Tuam Tshoj thiab xa thoob ntiaj teb sai thiab nyab xeeb. tom qab muab tag nrho kuv cov khoom tso rau ntawm kuv lub rooj tsavxwm Kuv tshem lub khob cij thiab kho txhua yam tom qab lub rooj tsavxwm thiab npog ntu pem hauv ntej siv cov ntawv me me txhais lus. Lub moos zoo li txaus thiab nce kev zoo nkauj ntawm phab ntsa. customization xim ua rau nws zoo meej rau txhua phab ntsa.
Yog tias koj nyiam txoj haujlwm no ua siab zoo Subscribe hauv youtube lossis mus ntsib peb lub vev xaib https://robocircuits.com Ua tsaug rau kev nyeem!
Kauj ruam 3: Code
/* Txoj Cai tau tsim los ntawm RoboCircuits
* Mus ntsib peb Lub Vev Xaib https://robocircuits.com kom tau txais kev pabcuam ntawm tus lej no * Tus lej no siv DS3231.h Lub Tsev Qhua rub tawm nws los ntawm https://robocircuits.com * Rau Daim Ntawv Qhia Taus Saib vis dis aus ntawm peb YouTube Channel https:// youtube. com/robocircuits */
#ncig #ncig
int kuv = 0, j = 0, k = 150;
// Pib DS3231 siv kho vajtse interface DS3231 rtc (SDA, SCL);
#ifdef _AVR_ #include #endif
// Tus pin twg ntawm Arduino txuas nrog NeoPixels? // Ntawm Trinket lossis Gemma peb hais qhia hloov qhov no rau 1 #txhais tus lej 6
// Muaj pes tsawg NeoPixels txuas rau Arduino? #define NUMPIXELS 45
// Thaum peb teeb tsa NeoPixel lub tsev qiv ntawv, peb qhia nws pes tsawg tus pixels, thiab tus pin twg siv los xa cov cim. // Nco ntsoov tias rau cov kab ntawv qub NeoPixel koj yuav xav tau hloov qhov ntsuas thib peb-saib cov strandtest // piv txwv rau cov ntaub ntawv ntau ntxiv ntawm qhov muaj peev xwm ua tau. Adafruit_NeoPixel pixels = Adafruit_NeoPixel (NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
int ncua sij hawm = 500; // ncua rau ib nrab thib ob
void teeb () {// Qhov no yog rau Trinket 5V 16MHz, koj tuaj yeem tshem tawm peb kab no yog tias koj tsis siv Trinket #if tau hais tseg (_AVR_ATtiny85_) yog (F_CPU == 16000000) clock_prescale_set (clock_div_1); #endif // End of trinket code tshwj xeeb
pixels.begin (); // Qhov no pib ua lub tsev qiv ntawv NeoPixel. // Teeb Serial txuas Serial.begin (115200); // Initialize lub rtc kwv rtc.begin (); // Cov kab hauv qab no tuaj yeem tsis suav nrog teeb tsa hnub thiab sijhawm //rtc.setDOW(WEDNESDAY); // Teeb Hnub-ntawm-Lub Limtiam rau SUNDAY //rtc.setTime(12, 0, 0); // Teem sijhawm rau 12:00:00 (24 teev hom ntawv) //rtc.setDate(1, 1, 2014); // Teev hnub tim rau Lub Ib Hlis Tim 1, 2014}
void loop () {yog (digitalRead (2) == HIGH) {int a = analogRead (A0); int b = analogRead (A1); int c = analogRead (A2); kuv = daim ntawv qhia (a, 0, 1025, 0, 150); // Ntsuab Xim j = daim ntawv qhia (b, 0, 1025, 0, 150); // Xim Xim k = daim ntawv qhia (c, 0, 1025, 0, 150); // Liab Xim} lwm {i = 0; j = 0; k = 150; }
// Code rau Backlight rau (int x = 29; x <= 45; x ++) {pixels.setPixelColor (x, pixels. Color (i, j, k)); pixels.show (); }
// Fetching Real Time from rtc String x = rtc.getTimeStr (); // Xa sijhawm Serial.println (rtc.getTimeStr ()); int teev 1 = x.charAt (0); int teev 2 = x.charAt (1); int min1 = x.charAt (3); int min2 = x.charAt (4); teev 1 = teev 1-48; teev 2 = teev 2-48; min1 = min1-48; min2 = min2-48;
// Zaub lub sijhawm ntawm Lub moos hloov (teev 1) {// rooj plaub 0: xoom (0); // tawg; rooj plaub 1: ib (0); tawg; rooj plaub 2: ob (0); tawg; vim: nulll (0); tawg; } hloov (teev 2) {rooj plaub 0: xoom (7); tawg; rooj plaub 1: ib (7); tawg; rooj plaub 2: ob (7); tawg; rooj plaub 3: peb (7); tawg; rooj plaub 4: plaub (7); tawg; rooj plaub 5: tsib (7); tawg; rooj plaub 6: rau (7); tawg; rooj plaub 7: xya (7); tawg; rooj plaub 8: yim (7); tawg; rooj plaub 9: cuaj (7); tawg; vim: nulll (7); tawg; } hloov (min1) {rooj plaub 0: xoom (15); tawg; rooj plaub 1: ib (15); tawg; rooj plaub 2: ob (15); tawg; rooj plaub 3: peb (15); tawg; rooj plaub 4: plaub (15); tawg; rooj plaub 5: tsib (15); tawg; vim: nulll (15); tawg; } hloov (min2) {rooj plaub 0: xoom (22); tawg; rooj plaub 1: ib (22); tawg; rooj plaub 2: ob (22); tawg; rooj plaub 3: peb (22); tawg; rooj plaub 4: plaub (22); tawg; rooj plaub 5: tsib (22); tawg; rooj plaub 6: rau (22); tawg; rooj plaub 7: xya (22); tawg; rooj plaub 8: yim (22); tawg; rooj plaub 9: cuaj (22); tawg; vim: nulll (22); tawg; } pixels.setPixelColor (14, pixels. Color (i, j, k)); pixels.show (); ncua (250); pixels.setPixelColor (14, pixels. Color (0, 0, 0)); pixels.show (); ncua (250); }
void zero (int a) {pixels.setPixelColor (a+0, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void ib (int a) {pixels.setPixelColor (a+0, pixels. Color (0, 0, 0))); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void ob (int a) {pixels.setPixelColor (a+0, pixels. Color (0, 0, 0))); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (0, 0, 0)); pixels.show (); } void peb (int a) {pixels.setPixelColor (a+0, pixels. Color (0, 0, 0))); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void plaub (int a) {pixels.setPixelColor (a+0, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void tsib (int a) {pixels.setPixelColor (a+0, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void rau (int a) {pixels.setPixelColor (a+0, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void xya (int a) {pixels.setPixelColor (a+0, pixels. Color (0, 0, 0))); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void yim (int a) {pixels.setPixelColor (a+0, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void cuaj (int a) {pixels.setPixelColor (a+0, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (i, j, k)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (i, j, k)); pixels.show (); } void nulll (int a) {pixels.setPixelColor (a+0, pixels. Color (0, 0, 0))); pixels.show (); pixels.setPixelColor (a+1, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+2, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+3, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+4, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+5, pixels. Color (0, 0, 0)); pixels.show (); pixels.setPixelColor (a+6, pixels. Color (0, 0, 0)); pixels.show (); }
Kauj ruam 4: Ua tsaug
mus ntsib
Pom zoo:
Tsho Tsho: Lub Sij Hawm Tiag Tiag Wearable Posture Detection: 9 Kauj Ruam
Tshaj Tawm: Lub Sij Hawm Lub Caij Nyoog Wearable Lub Sijhawm Pom Kev Pom Zoo: Lub tsho tshaj tawm yog lub sijhawm tiag tiag wireless lub zog ntsuas lub cev uas xa tawm thiab cais cov ntaub ntawv ntsuas kev ntsuas los ntawm Adafruit Feather mus rau Android daim ntawv thov ntawm Bluetooth. Cov kab ke ua tiav tuaj yeem tshawb pom lub sijhawm tiag tiag yog tias tus neeg siv muaj lub cev tsis zoo thiab
Lub Sijhawm Tiag Tiag Tiag Tiag Tiag Paub Siv EM Hneev Taw: 6 Kauj Ruam
Kev Pom Zoo Lub Sijhawm Tiag Tiag Siv EM Cov Hneev Taw: Cov cuab yeej no yog txhawm rau faib cov khoom siv hluav taws xob sib txawv raws li lawv cov cim EM. Rau cov cuab yeej sib txawv, lawv muaj cov cim sib txawv EM tawm los ntawm nws. Peb tau tsim kev daws teeb meem IoT txhawm rau txheeb xyuas cov khoom siv hluav taws xob siv Particle
Lub Sij Hawm Tiag Tiag Suab rau MIDI Converter: 7 Kauj Ruam
Lub Sijhawm Tiag Tiag Suab rau MIDI Hloov Khoom: Namaste cov neeg! Nov yog qhov haujlwm uas kuv tau ua haujlwm rau ib qho ntawm kuv cov kev kawm (Lub Sijhawm Tiag Digital Signal Processing) hauv kuv daim bachelor's program. Peb tes num lub hom phiaj ntawm kev ua DSP system uas " mloog " cov ntaub ntawv audio thiab tawm MIDI cov lus ntawm corres
Ua Lub Sij Hawm Sij Hawm Kub Lub Caij Nyoog: 16 Cov Kauj Ruam
Ua Lub Sij Hawm Sijhawm Sijhawm Sijhawm Sijhawm Sijhawm Ntev: Txawm hais tias lub thawv noj su zoo ib yam yog yooj yim siv thiab ua haujlwm tab sis muaj ib txoj haujlwm, nws tsis tuaj yeem teev sijhawm lossis teeb tsa qhov kub kom sov. Txhawm rau txhawm rau txhim kho qhov tsis txaus no, lub sijhawm no DIY tau ua los ntawm kev ua noj
Ua Koj Lub Khoos Phis Tawj UPS Kawg Rau Teev Sij Hawm Siv Sij Hawm: 8 Kauj Ruam
Ua Koj Lub Khoos Phis Tawj UPS Kawg Rau Teev Sij Hawm Siv Sij Hawm: Rau yam uas yuav tshwm sim rau kuv, tab sis tej zaum tsis yog rau txhua tus, Kuv muaj tag nrho kuv lub khoos phis tawj ntawm UPS roj teeb thaub qab. Tom qab tau txais kev ntxhov siab thaum lub hwj chim flickered ib hnub, Kuv tam sim ntawd tawm mus thiab yuav ib lub UPS. Zoo, tsis ntev tom qab, lub zog