Cov txheej txheem:

Arduino Lo Lus Clock - Customizable thiab Yooj Yim Tsim: 15 Kauj Ruam (nrog Duab)
Arduino Lo Lus Clock - Customizable thiab Yooj Yim Tsim: 15 Kauj Ruam (nrog Duab)

Video: Arduino Lo Lus Clock - Customizable thiab Yooj Yim Tsim: 15 Kauj Ruam (nrog Duab)

Video: Arduino Lo Lus Clock - Customizable thiab Yooj Yim Tsim: 15 Kauj Ruam (nrog Duab)
Video: Arduino Wood Clock 2024, Kaum ib hlis
Anonim
Arduino Lo Lus Clock - Customizable thiab Yooj Yim Tsim
Arduino Lo Lus Clock - Customizable thiab Yooj Yim Tsim

Kuv tus khub pom lub moos hauv lub khw uas qhia koj lub sijhawm los ntawm teeb tsa cov lus los sau cov kab lus sau los ntawm qhov uas zoo li tsis txaus ntseeg ntawm cov tsiaj ntawv tsis raug. Peb nyiam lub moos, tab sis tsis yog tus nqi - yog li peb txiav txim siab los ua ib qho ntawm peb tus kheej tsim

Lub ntsej muag ntawm lub moos tseem tuaj yeem hloov pauv tau yooj yim thaum ua tiav los hloov nws cov style lossis saib ntau npaum li koj nyiam

Kauj ruam 1: Daim Video…

Image
Image

Yog tias koj xav saib cov vis dis aus ntawm no nws yog, txwv tsis pub nyeem ntxiv!

Kauj Ruam 2: Luam Lub Cev Loj

Npaj Adafruit Neomatrix
Npaj Adafruit Neomatrix

Thawj qhov koj yuav tsum tau ua yog luam lub cev tseem ceeb ntawm lub moos. Cov ntawv luam no yog qhov loj tshaj ntawm txhua qhov luam tawm thiab yuav siv qee lub sijhawm nyob ntawm koj xaiv qhov siab. Koj tuaj yeem nrhiav cov ntaub ntawv 3D rub tawm dawb ntawm no:

Lub cev tseem ceeb hu ua CLOCK-BODY.stl

Kauj Ruam 3: Npaj Adafruit Neomatrix

Npaj Adafruit Neomatrix
Npaj Adafruit Neomatrix
Npaj Adafruit Neomatrix
Npaj Adafruit Neomatrix
Npaj Adafruit Neomatrix
Npaj Adafruit Neomatrix

Whilst uas yog luam ntawv koj tuaj yeem pib sib dhos qee yam khoom siv hluav taws xob. Koj yuav xav tau peb txoj kab ntev txog 9cm ntev los pib nrog. Seem me me ntawm rwb thaiv tsev tawm ntawm txhua qhov kawg kom peb tuaj yeem ua cov kab nruab nrab ntawm peb Neomatrix thiab Arduino Nano.

Peb yuav muab cov tshuaj no rau Neomatrix. Yog tias koj saib ntawm kev thim rov qab ntawm Neomatrix koj yuav pom ob pawg ntawm peb lub ntsiab lus sib txuas. Ib qho muaj lub ntsiab lus sau tias DOUT thiab lwm qhov muaj ib daim ntawv lo ua DIN. Peb xav muab tshuaj txhuam rau ntawm peb lub xov hlau mus rau pab pawg ntawm cov ntsiab lus nrog cov ntawv lo, GRND, 5V thiab DIN (Digital in).

Thaum koj muaj tag nrho peb qhov txuas peb yuav ntxiv 330 Ohm resistor rau cov hlau peb txuas rau digital hauv. Qhov no yog cov cim xim ntawm 330 ohm resistor (Orange-Orange-Brown-Gold):

Kauj Ruam 4: Txuas Neomatrix rau Ardunio Nano

Txuas Neomatrix rau Ardunio Nano
Txuas Neomatrix rau Ardunio Nano
Txuas Neomatrix rau Ardunio Nano
Txuas Neomatrix rau Ardunio Nano

Peb lub xov hlau (ib qho nrog tus tiv thaiv nws tam sim no) tuaj yeem txuas rau peb Arduino Nano. Thov ua tibzoo saib daim duab qhia chaw. Koj yuav pom koj yuav tsum tau muab tshuaj txhuam rau lawv raws li hauv qab no:

NeoMatrix | Nano

GRND - Hauv av

5V ------- 5V

DIN ---- Resistor-- D6

Kauj Ruam 5: Cov Hluav Taws Xob Hluav Taws Xob rau RTC DS3231

Cov Cuab Yeej Siv Hluav Taws Xob rau RTC DS3231
Cov Cuab Yeej Siv Hluav Taws Xob rau RTC DS3231
Cov Cuab Yeej Siv Hluav Taws Xob rau RTC DS3231
Cov Cuab Yeej Siv Hluav Taws Xob rau RTC DS3231
Cov Cuab Yeej Siv Hluav Taws Xob rau RTC DS3231
Cov Cuab Yeej Siv Hluav Taws Xob rau RTC DS3231
Cov Cuab Yeej Siv Hluav Taws Xob rau RTC DS3231
Cov Cuab Yeej Siv Hluav Taws Xob rau RTC DS3231

Tom ntej no peb yuav txuas RTC lossis Lub Sijhawm Tiag. Nov yog pawg thawj coj uas tso cai rau peb Arduino kom nco lub sijhawm txawm tias thaum nws raug txuas nrog los ntawm lub zog. RTC peb yuav siv DS3231.

Koj yuav tsum tau npaj plaub kab nyob rau lub sijhawm no, thiab lawv yuav tsum muaj qhov ntev txog 6cm txhua. Ib zaug ntxiv sawb qhov kawg raws li peb yuav tau siv cov no rau peb cov khoom.

Muab ib qho ntawm txhua tus xov hlau txuas rau cov ntawv sib txuas uas hais tias SDA, SCL, VCC thiab GND

Kauj Ruam 6: Txuas RTC thiab Nano

Tam sim no qhov no yuav txuas nrog Arduino Nano. Ib zaug ntxiv koj tuaj yeem ua raws daim duab kab hluav taws xob lossis rau kev siv nrawm ntawm no yog lub rooj me me.

RTC | Cov Arduino VCC ---- 5V (Cov xaim no yuav xav tau txuas nrog nrog cov xaim uas twb muaj lawm los ntawm Neomatrix)

GND ---- Av

SDA ------ A4

TSO -------- A5

Kauj ruam 7: Upload Code thiab Test

Nws nyob ntawm lub sijhawm no uas koj tuaj yeem xa cov cai kom pom tias txhua yam ua haujlwm raws li qhov xav tau. Koj tuaj yeem pom cov cai txuas lossis koj tuaj yeem nrhiav qhov txuas ntxiv txhim kho ntawm no ntawm Github:

Kauj Ruam 8: Txuas Neomatrix rau Lub Cev Lub Cev

Txuas Neomatrix rau Lub Cev Lub Cev
Txuas Neomatrix rau Lub Cev Lub Cev
Txuas Neomatrix rau Lub Cev Lub Cev
Txuas Neomatrix rau Lub Cev Lub Cev
Txuas Neomatrix rau Lub Cev Lub Cev
Txuas Neomatrix rau Lub Cev Lub Cev

Koj yuav pom tias Neomatrix muaj qee qhov sib dhos khiav los ntawm qhov nruab nrab ntawm nws. Qhov no yuav tsum ua raws nrog rau tus pin rau ntawm qhov luam tawm. Peb yuav tsum ua kom ntseeg tau tias koj txhim kho nws kom raug - lub kaum ntawm Neomatrix nrog peb cov xov txuas yuav tsum tau nyob ntawm kaum ntawm cov ntawv luam nrog qhov nkag me me rau lub teeb uas yog qhov kuv tau taw qhia rau hauv daim duab thib ob saum toj no.

Siv qee dabs ntawm cov kua nplaum kub yaj rau ntawm cov pins uas nthuav tawm kom ruaj ntseg nws mus rau hauv txoj haujlwm.

Kauj Ruam 9: Luam Tawm

Luam Luam
Luam Luam

Tam sim no luam ib feem rau lub moos sawv. Koj tuaj yeem luam qhov no hauv xim txawv yog tias koj nyiam. Kuv tau ua tiav kuv cov xim dawb rau qee qhov sib txawv.

Kauj Ruam 10: Txoj Haujlwm thiab Txuas Cov Khoom Siv Hluav Taws Xob

Txoj Haujlwm thiab Txuas Cov Khoom Siv Hluav Taws Xob
Txoj Haujlwm thiab Txuas Cov Khoom Siv Hluav Taws Xob
Txoj Haujlwm thiab Txuas Cov Khoom Siv Hluav Taws Xob
Txoj Haujlwm thiab Txuas Cov Khoom Siv Hluav Taws Xob

Peb yuav tsum tau lo peb lwm cov khoom siv hluav taws xob (nano thiab RTC) tso rau tom qab ntawm lub thawv ntawv no ua ntej kho nws mus rau tom qab ntawm lub moos. Pib nrog Arduino. Koj yuav tsum tau ua kom ntseeg tau tias ib zaug Arduino Nano tau ruaj ntseg koj tseem tuaj yeem txuas lub USB cable mus rau nws lub USB chaw nres nkoj kom muaj zog rau nws. Muaj qhov rau qhov no.

RTC DS3231 tuaj yeem txuas nrog rau qhov no ib yam nkaus.

Kauj Ruam 11: Txuas Tus Sawv Cev thiab Lub Cev Loj

Txuas lub Sawv Cev thiab Lub Cev Lub Cev
Txuas lub Sawv Cev thiab Lub Cev Lub Cev

Tom ntej no yog txuas lub rooj muag zaub. Koj tuaj yeem siv cov ntawv uas koj tuaj yeem pom ntawm lub moos pem hauv ntej kom ntseeg tau tias koj lo rau ntawm txoj kev yog! Muab nws tso rau sab nraub qaum thiab rub cov kua nplaum tawm dua thiab muab khi rau hauv qhov chaw.

Daim ntawv ceeb toom yuav ua li cas koj tseem tuaj yeem nkag mus rau USB chaw nres nkoj los ntawm lub qhov nyob sab nraub qaum - yog tias koj ua tsis tau ntawm koj koj yuav xav kho qhov no ua ntej ruaj ntseg sawv ntawm qhov chaw.

Kauj Ruam 12: Teeb Lub Teeb Diffuser

Haum Teeb Diffuser
Haum Teeb Diffuser
Haum Teeb Diffuser
Haum Teeb Diffuser

Txhawm rau txiav cov ntawv me me kom loj, tso lub moos rau ntawm ib daim ntawv (txheej nws nrog ib lub ces kaum) thiab taug ib ncig ntawm ob sab. Tom ntej txiav tawm cov duab no, tab sis txiav tsuas yog sab hauv ntawm kab ntawv peb tsis xav kom cov ntawv taug qab kom loj dua tom qab lub moos lub ntsej muag lossis nws yuav cuam tshuam nrog kev hloov lub ntsej muag lub ntsej muag tom qab.

Siv qee qhov me me ntawm cov kua nplaum rau ntawm cov ces kaum ntawm lub moos lub cev thiab tom qab ntawd tso cov ntawv taug qab mus rau cov no. Whilst cov kua nplaum tau teeb tsa rub daim ntawv peb nruab nrab ntawm lub ces kaum los sim thiab txo qis ib qho me me ntawm cov ntawv.

Kauj Ruam 13: Kev Xeem Kom Sai

Kev Xeem Kom Sai Li No
Kev Xeem Kom Sai Li No

Txog tam sim no kuv txuas lub USB roj teeb pob rau lub moos txhawm rau txheeb xyuas tias txhua yam tseem ua haujlwm zoo li nws yuav tsum tau, hmoov zoo rau kuv li xwb.

Kauj Ruam 14: Luam Lub Ntsej Muag Clock thiab Tso Rau Hauv Txoj Haujlwm

Sau Lub Ntsej Muag Clock thiab Tso Rau Hauv Txoj Haujlwm
Sau Lub Ntsej Muag Clock thiab Tso Rau Hauv Txoj Haujlwm
Luam Lub Ntsej Muag Clock thiab Tso Rau Hauv Txoj Haujlwm
Luam Lub Ntsej Muag Clock thiab Tso Rau Hauv Txoj Haujlwm

Tam sim no peb tsuas yog yuav tsum luam tawm thiab xaub peb lub ntsej muag lub ntsej muag hla lub hauv ntej ntawm lub cev lub cev tseem ceeb. Nws yog ib qho yooj yim li ntawd.:)

Kauj Ruam 15: Luam Koj Lub Ntsej Muag

Yog tias koj xav hloov kho koj lub moos koj tuaj yeem tsim thiab luam koj tus kheej lub ntsej muag lub ntsej muag. Koj tuaj yeem siv ntau xim yas, sib dhos nws los ntawm ntoo lossis npog nws hauv glitter sib xyaw nrog ci hauv qhov tsaus ntuj. Dab tsi ua rau koj xav tau!

Yog tias koj xav ua koj tus kheej lub ntsej muag, txuas nrog yog daim duab qhia qhov ntsuas koj yuav xav tau los pab nws haum rau sab xub ntiag ntawm lub moos.

Pom zoo: