Cov txheej txheem:
- Kauj Ruam 1: Qhov Yuav Tsum Tau Ua Rau Txoj Haujlwm no
- Kauj ruam 2: Teeb Koj Lub PC
- Kauj Ruam 3: Txuas qhov Project
- Kauj Ruam 4: Tsim Daim iav Infinity
- Kauj ruam 5: Txoj Cai
Video: Infinity Clock - Arduino - WS2813 thiab DS3231: 5 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Infinity Clock - Arduino - WS2813 thiab DS3231
Kuv xav tsim lub moos, thiab nyiam lub tswv yim ntawm kev sim kuv txhais tes ntawm kev ua lub moos infinity nrog Arduino. Kuv xav kom nws tsim nws tawm ntawm cov khoom ib txwm muaj, thiab sau qhov program kuv tus kheej.
Dab tsi yog Infinity Clock?
Qhov ua kom pom kev tsis pom kev 3D tau tsim tawm thaum twg los xij muaj ob lub ntsej muag sib luag uas tuaj yeem thaws lub teeb ntawm lub teeb rov qab thiab tawm mus yam tsis muaj qhov kawg (theoretically infinite) tus lej. Cov kev xav zoo li rov qab mus rau qhov kev deb vim tias lub teeb yeej tab tom hla qhov deb. Los ntawm kev ntxiv cov xim LED rau daim iav Infinity peb sim ua piv txwv lub moos sib piv siv lub teeb pom kev zoo ib yam li lub moos tes.
Hauv cov lus qhia no kuv yuav taug koj kev los ntawm cov kauj ruam los tsim Lub Sij Hawm Infinity thiab tom qab ntawd tshuaj xyuas qee qhov ntsuas tsis tau hauv qhov program.
Kauj Ruam 1: Qhov Yuav Tsum Tau Ua Rau Txoj Haujlwm no
Daim Ntawv Teev Npe:
- Arduino Uno $ 6 ntawm taydaelectronics
- Protoshield rau arduino uno. Koj tuaj yeem tau txais ib qho rau 2.50 ntawm Amazon ntawm no.
- DS3231 ntxiv rau roj teeb. koj tuaj yeem tau txais ib puag ncig 3.00 ntawm Amazon ntawm no.
- WS2813 LED 144 rau 1 meter. $ 20 ntawm Amazon ntawm no.
- 470 OHM 1 W Carbon zaj duab xis tiv thaiv ib puag ncig 1 xees ntawm Taydaelectronics.
- 1000uf 16V Electrolytic capacitor 9 xees ntawm Taydaelectronics
- 5v fais fab mov- Kuv siv lub qub blackberry them.
- 6in round iav. ncig $ 5 ntawm Amazon
- 6in Acrylic Disc ib puag ncig 10 ntawm Amazon
- 2 - 6 "ntoo paj ntaub hoops (yoo uas yog) $ 2 txhua ntawm amazon
- Nyiaj ib-txoj kev daim iav zaj duab xis. Ebay zoo li pheej yig tshaj.
- Ntau cov xov hlau.
- 3/8 "ntoo square dowel HomeDepot rau $ 1.27
- qub ntoo moos puag los yog lwm yam khoom tso saib.
- 2 qhov sib txuas me me.
Daim ntawv tiv thaiv daim ntawv tsis xav tau, tab sis yog tias koj nyiam siv Arduino koj yuav pom nws yooj yim heev hauv kev tsim cov haujlwm no. Sib pauv daim ntawv tiv thaiv daim thaiv nrog daim txiag ntoo yog xav tau.
Koj kuj tseem yuav xav tau cov hlau txuas.
Kuv xav tias qhov project yuav raug nqi txog $ 40.00
Kauj ruam 2: Teeb Koj Lub PC
Yog tias qhov no yog koj thawj qhov haujlwm arduino:
- Rub tawm arduino software los ntawm arduino.cc
- Txuas Arduino rau PC nrog usb cable.
-
Thaum koj pib lub software koj yuav tsum tau teeb tsa peb lub tsev qiv ntawv:
- Nyem rau ntawm "Sketch" ntawv qhia zaub mov, tom qab ntawv nyem "suav nrog Cov Tsev Qiv Ntawv" tom qab ntawd "Tswj Cov Tsev Qhua …"
- Nruab ob lub tsev qiv ntawv: FastLED thiab RTClib. Saib cov duab kom ntxaws ntxiv.
-
Tau txais Arduino scketch los ntawm kuv github
- Kuv yuav tshuaj xyuas qhov chaws kawg kom koj tuaj yeem hloov kho nws raws li xav tau.
- Txij ntawm no mus ntsaws qhov program Infinity_Clock_DS3231_WS2813.ino
- Mus rau Sketch thiab Upload kom thauj khoom Arduino.
- Ntu kawg ntawm Cov Lus Qhia tau npog qee qhov tsis tuaj yeem teeb tsa.
Nws yog qhov zoo tshaj plaws los rub cov duab tam sim no, vim tias ib zaug lub zog sab nraud tau ntxiv nws qhov zoo tshaj plaws kom tsis txuas nws mus rau koj lub PC.
Kauj Ruam 3: Txuas qhov Project
Yog tias koj siv ProtoType Shield muab tso rau ntawm Arduino.
Txoj hlua yog qhov nyuaj tshaj plaws ntawm txoj haujlwm. Kuv suav nrog cov duab los pab koj pom qhov kuv tau ua. Kuv pom zoo ob zaug txheeb xyuas txhua qhov kev sib txuas ua ntej qhib lub zog.
DS3231 - Lub Sijhawm Sijhawm Tiag
Muab tus qauv DS3231 tso rau hauv lub khob cij thiab txuas zoo li hauv daim duab.
- Arduino Av rau GND
- Arduino 5V rau VCC
- Arduino A4 rau SDA
- Arduino A5 rau SCL
Hauv daim duab kuv xaim 5v thiab Hauv av rau thier tus kheej khiav ntawm lub khob cij vim tias tom qab ntawd peb yuav xav txuas lub zog sab nraud.
Txuas WS2813 LED Sawb
- arduino 5V rau koj lub zog 5V.
-
Qhov nruab nrab ob qhov txuas txuas yog cov ntaub ntawv txuas ntxiv. lawv mus rau tus pin 7
Nco ntsoov muab 470 OHM tus tiv thaiv nruab nrab ntawm tus pin7 thiab ob qho ntaub ntawv coj
- Arduino Av rau qhov txuas kawg.
Txuas sab nraud 5V fais fab mov (khiav cov hlua LED los ntawm lub zog arduino rau lub sijhawm ntev tsis tau rov ua dua).
- Muab 1000uf electrolytic capacitor nruab nrab ntawm cov coj.
- Txuas lub zog thiab av rau Arduino Power (5V) thiab Av (GND)
Kuv tsis pom zoo txuas lub zog sab nraud thiab USB rau Arduino tib lub sijhawm.
Kauj Ruam 4: Tsim Daim iav Infinity
Cov kauj ruam los tsim Daim iav Infinity:
- Siv zaj duab xis rau Acrylic dics. Qhov no yuav ua rau koj ib txoj kev tsom iav.
- Muab cov Acrylic disc tso rau hauv Paj Ntaub Hoop. Ceev cov ntsia hlau kom nws tsis txhob plam
- Muab daim iav tso rau hauv lwm lub Embroiery hoop. Tighen ntswj ntsia hlau.
- Txiav lub xwmfab dowel rau hauv ntu me. txog 1/2"
-
Loop cov hlua coj nrog LEDs taw rau sab hauv lub voj voog.
- Siv cov hlua zauv los tuav tus coj hauv qhov chaw.
- Tej zaum koj yuav tsum tau txiav ib qho thais hauv lub zip khi.
-
Muab lub voj rau ntawm daim iav
- Siv ntoo thaiv los ua spacers
- Muab cov nplaum tso rau hauv qhov chaw. Lawv yuav tsum muaj kev nyab xeeb txaus los tuav lub hauv paus coj.
- Muab daim iav Acrylic tso rau saum daim iav/LEDs thiab lo rau hauv qhov chaw.
Kauj ruam 5: Txoj Cai
Qhov kev zov me nyuam siv Lub Tsev Qiv Sij Hawm Sijhawm Caij Nyoog thiab lub tsev qiv ntawv nrawm.
Nov yog qee qhov code snippets los kho tus cwj pwm.
- OFFSET - yog qhov sib tshooj. Cov phiaj xwm cia siab tias kev sib tshooj yuav los ntawm LED0. Kuv muaj 3 LED offset.
- CLOCKSTART - yog qhov chaw thaum tav su ntawm lub moos. LED 30 tso nws tawm ntawm qhov sib txuas hluav taws xob.
Kuv tau sau qhov program kom siv cov xim HTML. Koj tuaj yeem tau txais lawv los ntawm https://htmlcolorcodes.com/ Tsuas yog pauv # rau 0x hauv qhov program.
Koj tuaj yeem hloov keeb kwm yav dhau rau thaum sawv ntxov/yav tsaus ntuj
- backgroundAM = 0x070707;
- backgroundPM = 0x646D7E;
LED Tes ntawm lub moos:
- hourHand = 0x000FFF;
- minHand = 0x00CC00;
- secHand = 0xcc0000;
Txhawm rau kom nws sawv tawm Kuv ntxiv qhov kev xaiv kom muaj 3 LEDs rau teev teev tab sis tso cai rau koj hloov xim ntawm ob sab ntawm ib nrab kom ua rau nws sawv tawm.
- theeledhour = tseeb; // koj tuaj yeem ua qhov tseeb lossis tsis tseeb
- extraHourHand = 0x00001F;
Lwm qhov zoo yog RTClib yuav kuaj pom tias koj lub DS3231 tau tshem lub roj teeb thiab yuav teem sijhawm rau lub PC suav sau sijhawm. Nws yog qhov zoo rau DS3231 tshiab.
Yog tias koj tsis tau txais cov duab kos thaum pib ntawm tus doc, nws tuaj yeem pom ntawm GitHub
Ua tsaug rau kev nyeem Cov Lus Qhia no. Kuv tus tub tau pab thiab nws yog txoj haujlwm lom zem rau peb. Kuv vam tias peb tau txiav txim siab hauv kev sib tw optic.
Pom zoo:
DIY Huab Cua Raid Siren Nrog Cov Tiv Thaiv thiab Capacitors thiab Transistors: 6 Cov Kauj Ruam (nrog Duab)
DIY cua Raid Siren Nrog Cov Tiv Thaiv thiab Capacitors thiab Transistors: Qhov pheej yig Air Raid Siren DIY txoj haujlwm yog qhov tsim nyog rau kev tshawb fawb tus kheej oscillation Circuit tsim los ntawm tsuas yog resistors thiab capacitors thiab transistors uas tuaj yeem txhawb koj txoj kev paub. Thiab nws yog qhov tsim nyog rau Kev Tiv Thaiv Kev Kawm Txuj Ci rau Cov Menyuam, hauv
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
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam Xov: Ua LED Zaub thiab Npuag Hluav Taws Xob uas Rolls Up: 7 Cov Kauj Ruam (nrog Duab)
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam: Ua kom pom LED thiab Cov Khoom Siv Hluav Taws Xob uas Rolls Up: Ua rau koj tus kheej cov ntaub ua hluav taws xob, xov, kua nplaum, thiab kab xev, thiab siv lawv los ua lub zog ntsuas hluav taws xob, tiv thaiv, hloov pauv, LED cov lus qhia thiab siv hluav taws xob. thiab cov xov hluav taws xob koj tuaj yeem ua cov lus qhia LED thiab cov kab hluav taws xob ntawm ib qho ntaub uas hloov pauv tau