Cov txheej txheem:

Arduino DS3231 RTC Moos Nrog LCD: 3 Kauj Ruam
Arduino DS3231 RTC Moos Nrog LCD: 3 Kauj Ruam

Video: Arduino DS3231 RTC Moos Nrog LCD: 3 Kauj Ruam

Video: Arduino DS3231 RTC Moos Nrog LCD: 3 Kauj Ruam
Video: Clock I Built Using Arduino(s) 2024, Hlis ntuj nqeg
Anonim
Arduino DS3231 RTC Moos Nrog LCD
Arduino DS3231 RTC Moos Nrog LCD

Txhawm rau paub kuv tus kheej nrog DS3231 RTC (lub sijhawm tiag tiag), Kuv tau tsim qhov yooj yim arduino raws li 24 teev moos. Nws muaj 3 khawm nrog cov haujlwm hauv qab no: nias ib lub pob kom nkag mus rau lub sijhawm teeb tsa hom, nce thiab txo lub sijhawm hauv feeb nrog ob ntawm cov nyees khawm, thiab teeb lub moos nrog khawm thib peb. Koj tuaj yeem txheeb xyuas qhov vis dis aus ntawm nws ua haujlwm ntawm vimeo.com/andrewideas/simplearduinoclock.

Cov Ntaub Ntawv Yuav Tsum Tau:

  • Pawg tswj hwm kev txhim kho arduino (Kuv siv Uno)
  • Tus qauv 16x2 HD44780 raws LCD zaub
  • DS3231 raws RTC (Kuv tau txais kuv li ntawm Amazon)
  • Peb khawm khawm
  • Peb tus tiv thaiv (~ 10K ohm)
  • Lub zog loj (~ 10K ohm)
  • Ib daim ntawv qhia zaub mov
  • Ob peb jumper xov hlau

Kauj ruam 1: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv

Xa mus rau daim duab rau cov lus qhia txuas xov. Cov nyees khawm txuas nrog tus pin A0, A1, thiab A2. RTC siv tus pin A5 rau SCL thiab tus pin A4 rau SDA. Lub hwj chim ntsuas sib txawv ntawm qhov sib txawv ntawm LCD thiab LCD siv digital pins 2 txog 7.

Kauj ruam 2: Programming

Programming
Programming

Siv cov arduino IDE txhawm rau upload kuv daim duab rau koj li arduino.

Kuv cov cai tau ib nrab raws li cov cai tau muab ntawm no. Thiab, tau kawg, kuv cov cai tau piav qhia hauv nws cov lus.

Koj tuaj yeem rub tawm daim duab los ntawm cov lus qhia no.

Kauj Ruam 3: Txuas Ntxiv Nrog Koj Lub Neej

Koj ua nws! Tshwj tsis yog tias koj tsis tau- hauv qhov xwm txheej twg hauv qab no thiab kuv yuav ua qhov zoo tshaj plaws los pab koj. Txwv tsis pub, mus tom ntej thiab ua tej yam loj dua!

Ua tsaug!

Pom zoo: