Cov txheej txheem:

Arduino LifeClock: 6 Kauj Ruam (nrog Duab)
Arduino LifeClock: 6 Kauj Ruam (nrog Duab)

Video: Arduino LifeClock: 6 Kauj Ruam (nrog Duab)

Video: Arduino LifeClock: 6 Kauj Ruam (nrog Duab)
Video: How to make a STEEL MARBLE TRACK with basic tools! step by step guide 2024, Kaum ib hlis
Anonim
Arduino LifeClock
Arduino LifeClock

Lub moos tshwj xeeb no ceeb toom koj kom txaus siab rau txhua txhua hnub, los ntawm kev qhia koj lub hnub nyoog tam sim no hauv hnub (lossis lub lis piam) ntawm xya ntu ntu.

Kauj ruam 1: Koj Yuav Xav Tau

Koj Yuav Xav Tau
Koj Yuav Xav Tau
Koj Yuav Xav Tau
Koj Yuav Xav Tau
Koj Yuav Xav Tau
Koj Yuav Xav Tau
Koj Yuav Xav Tau
Koj Yuav Xav Tau

Electronics:

  1. Arduino Pro Mini 5V (lossis lwm yam arduino nrog> = 12 GPIO Pins)
  2. 4 Zauv 7 Segment Zaub
  3. DS3231 Lub Sijhawm Sijhawm Tiag
  4. 4x 200 Ohm Resistors

Cov ntaub ntawv:

  1. Duab Ncej
  2. Perf Board (txuam loj)
  3. MicroUSB Breakout (lossis lwm lub zog 5-12V)
  4. Cov xov/Hardwires
  5. Pin Headers (txiv neej, poj niam)

Cov Cuab Yeej:

  1. Soldering Hlau
  2. FTDI Programmer (thaum muaj qhov tshwj xeeb)

Kauj ruam 2: Prototyping

Prototyping
Prototyping
Prototyping
Prototyping
Prototyping
Prototyping

Ua ntej yuav tsum tau sib sau ua ke cov khoom peb yuav tsum txheeb xyuas yog tias txhua yam ua haujlwm tau zoo.

  1. Txuas txhua yam raws li schematic
  2. Txheeb xyuas COM-Port thiab teeb tsa cov tsav tsheb tshiab kawg
  3. Sau thiab xa cov duab kos uas tau muab

Kev Sib Txuas:

Hom Cathode Zaub

  • Tus Pin 2 - COM4 (tus tiv thaiv)
  • Pin 3 - g
  • Pin 4 - c
  • Pin 5 - DP
  • Pin 6 - d
  • Pin 7 - e
  • Tus Pin 8 - COM1 (tus tiv thaiv)
  • Pin 9 - a
  • Pin 10 - f
  • Tus Pin 11 - COM2 (tus tiv thaiv)
  • Pin 12 - COM3 (tus tiv thaiv)
  • Pin 13 - b

SWB 32231

  • GND - NCO
  • 5V/VCC - VCC
  • A4 - SDA
  • A5 -SWB

Yog tias koj siv cov duab anode uas ib txwm pom koj yuav tsum paub tseeb tias hloov kho tus pin ntawm lub khob cij lossis tom qab ntawm tus lej

Kauj Ruam 3: Hloov Chaw

Hloov Kho Qhov Chaw
Hloov Kho Qhov Chaw
Hloov Kho Qhov Chaw
Hloov Kho Qhov Chaw

Peb yuav tsum hloov kho qee yam ntawm peb cov khoom, kom lawv haum rau sab hauv tus ncej.

Arduino

  • Solder ntawm tus txiv neej tus pin headers (raws li qhia)
  • Ntxiv ob lub xov hlau rau SDA thiab SCL

SWB 32231

  • Desolder 6 tus pinheaders
  • Solder ntawm 4 tus pin headers ntawm lwm sab (raws li qhia)

MicroUSB Breakout

Solder ntawm tus pin headers

Kauj Ruam 4: Tsim Lub Rooj Tswjhwm Saib Circuit

Tsim lub Rooj Tswjhwm Saib Xyuas Circuit
Tsim lub Rooj Tswjhwm Saib Xyuas Circuit
Tsim lub Rooj Tswjhwm Saib Circuit
Tsim lub Rooj Tswjhwm Saib Circuit
Tsim lub Rooj Tswjhwm Saib Xyuas Circuit
Tsim lub Rooj Tswjhwm Saib Xyuas Circuit

Yog tias txhua yam ua haujlwm tau zoo, koj tuaj yeem pib tsim lub rooj tsav xwm hauv Circuit Court. Tag nrho lub rooj tsav xwm hauv Circuit yuav tsum haum rau hauv daim duab xaiv. Yog tias koj lub rooj tsav xwm perf muaj ntau qhov sib txawv koj yuav xav tau kho qhov kev tso khoom ntawm cov khoom.

1) Kev npaj:

Muab txhua feem tivthaiv raws li qhia hauv schematic. Yog tias txoj kab uas hla ntawm koj cov xov hlau yog> 1mm koj yuav tsum tau siv ob lub qhov tso rau A4-SDA (grey) thiab A5-SDA (dawb) los ntawm nws.

2) Txuas:

Yog tias txhua qhov tivthaiv tau muab tso kom raug koj tuaj yeem pib siv cov khoom sib xyaw. Nco ntsoov tshem tawm ob txhais ceg ntxiv tom qab.

3) Txuas:

Koj tuaj yeem siv cov kab hluav taws xob zoo ib yam, los ntawm kev txuas lawv sab nraum qab ntawm lub rooj tsav tsheb, lossis cov xaim nyiaj ntawm sab xub ntiag. Txhawm rau ua qhov no, koj yuav tsum txiav cov hlau nyiaj rau qhov ntev sib xws thiab khoov nws qhov kawg. Tam sim no koj tsuas yog yuav tsum tau tso lawv raws li thiab muab lawv tso rau.

4) Txheeb xyuas Kev Sib Txuas:

Yog tias qee yam tsis ua haujlwm raws li nws yuav tsum tau lossis yog tias koj xav tau kom ntseeg tau tias koj tau txuas txhua yam kom raug, koj tuaj yeem tshawb xyuas nws siv qhov ua haujlwm txuas ntxiv ntawm koj lub multimeter.

Kauj Ruam 5: Hloov Kho Daim Duab Duab

Hloov Kho Duab Duab
Hloov Kho Duab Duab
  1. Laum 4 qhov sib dhos thiab 1 lub qhov rau cov hlua txuas rau sab nraub qaum ntawm koj tus ncej
  2. Ntsia lub qhov rooj ntoo (ntxiv nrog rau qee qhov kev sawv ntsug)
  3. Txhim kho qhov microUSB tawg ntawm sab nraub qaum thiab txuas nws nrog cov xov hluav taws xob (RAW, GND)

Nyob ntawm seb koj xav li cas, koj tuaj yeem tso lub iav pane rov qab los lossis siv qee yam ntawm passepartout.

Kauj Ruam 6: Txoj Cai

Txoj Cai
Txoj Cai

Ua ntej rub tawm cov cai koj yuav tsum ua kom ntseeg tau tias yuav tsum tau teeb tsa cov tsev qiv ntawv tsim nyog thiab txhawm rau txhais ob yam.

1) Koj hnub nyoog nyob rau hnub (kab 21) [https://www.calculator.net/age-calculator.html]

2) Ntxiv rau lub sijhawm koj yug (kab 23)

Yog tias tus nqi tso tawm tsis raug lossis xav tau hloov pauv, koj yuav tsum tshem EEPROM

Vam tias kuv tuaj yeem txhawb koj nrog txoj haujlwm ntawd. Yog tias koj muaj lus nug lossis kev txhim kho, thov qhia tawm rau lawv.

Pom zoo: