Cov txheej txheem:

7 Segment Clock Version 2: 4 Cov Kauj Ruam
7 Segment Clock Version 2: 4 Cov Kauj Ruam

Video: 7 Segment Clock Version 2: 4 Cov Kauj Ruam

Video: 7 Segment Clock Version 2: 4 Cov Kauj Ruam
Video: Small 7-Segment Display [Tutorial] 2024, Kaum ib hlis
Anonim
Image
Image
NYIAJ TSHIAB
NYIAJ TSHIAB

Nyob zoo!

Tom qab thov los ntawm Instructables cov neeg siv hais txog kev muaj 12h hom ntawv, kuv tau ua kom zoo los hloov pauv kev hloov pauv mus rau thawj qhov haujlwm.

Thaum siv cov version 1 Kuv xav tias yuav tsum tau ua ib leeg ib leeg, yog li kuv tau ua kom nws tuaj yeem hloov kho txhua qhov ntsuas ncaj qha los ntawm lub moos, tsis tas siv lub PC.

Rau leej twg tsis tau nyeem kuv cov ntawv qhia yav dhau los, nws yog ib qho 7 ntu ntu coj moos nrog qee qhov tshwj xeeb ntxiv:

  1. 7 feeb hloov pauv sib txawv
  2. 3 xim ua ntej teeb tsa rau lub sijhawm qhib
  3. ambient teeb siv pib dim
  4. pib kaw/pib thaum tsis tas yuav qhia lub sijhawm
  5. pib hnub nruab hnub txuag lub sijhawm hloov kho

Version 2 tso cai rau koj kom:

  • hloov sijhawm hom 12/24h
  • yooj yim hloov pauv tsis tau

Qhov ntsuas uas tuaj yeem hloov kho ncaj qha los ntawm lub moos yog:

  • sawv/kaw sijhawm
  • xim rau lub sijhawm qhib
  • hnub tim/sijhawm
  • lub sij hawm hom 12/24h

Cov ntaub ntawv no tam sim no khaws hauv Arduino eeprom ua ke nrog xaiv hom kev hloov pauv. Kuv kuj tau npaj phau ntawv qhia pib sai hauv cov kauj ruam tom ntej.

Lub thav duab yog 3D luam tawm, siv los ntawm Arduino Nano, DS3231 thiab WS2812 leds.

Khoom siv

  • Arduino nano cov
  • photo chaw
  • 2 x momentary khawm
  • on/off hloov
  • DC ntsaws
  • 5V hloov hluav taws xob
  • n ° 30 WS2812 leds (qauv 30 leds/meter)
  • pcb xab
  • DS3231 tus qauv
  • nyias cables rau leds sib txuas
  • resistors 10K, 550
  • laug
  • kua nplaum
  • dhia
  • headers txiv neej/poj niam

Kauj ruam 1: YUAV TSUM TSHIAB

Raws li tau hais, Kuv tsis xav txuas lub moos mus rau PC txhua lub sijhawm kuv xav hloov qhov ntsuas tom qab ntawd, ntxiv ib lub khawm me me rau txoj haujlwm uas kuv tau yooj yim mus txog lub hom phiaj. Nrog ib lub pob kuv tuaj yeem nqes ntawm cov kev xaiv, lwm qhov yog kom paub meej cov ntaub ntawv thiab mus tom ntej hauv cov ntawv qhia zaub mov. Kuv kuj tseem txuas lub photocell mus rau Arduino PIN hloov pauv +5V yog li thaum lub moos nkag mus rau hauv hom pw tsaug zog photocell Circuit tsis ntws lub zog. Kuv thaum kawg ua rau nws muaj txuj ci ntau dua kev kos lub voj voog ntawm phaj tooj liab.

Kauj Ruam 2: Sib dhos PCB

Kev sib dhos PCB
Kev sib dhos PCB
Kev sib dhos PCB
Kev sib dhos PCB
Kev sib dhos PCB
Kev sib dhos PCB

Kom yooj yim kuv tau hloov qee qhov kev sib txuas, saib schematic. ON/OFF hloov yog xaiv tau, nkag mus rau hauv cov ntawv qhia zaub mov yam tsis tas li txuas nrog +5V tuav khawm 1.

Qhov tsis kam ntawm cov coj thiab D5 yog 550Ohm, lwm 10Kohm.

Lub Circuit Court yog ib qho yooj yim heev thiab tsis tas yuav tsum tau kos.

Hauv kuv qhov project txhua ntu rau txhua tus lej xav tau ib tus coj. Rau cov phiaj xwm loj dua tuaj yeem muab ntxiv leds rau ntu tom qab hloov kho lub tsev qiv ntawv "segment_display.cpp"

Rau lwm cov ntaub ntawv hais txog ntu LED thiab lwm yam kos version 1

Kauj Ruam 3: Luam Ntawv 3D

3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv

Pib los ntawm tus qauv qub (Ua tsaug rau Thingverse tus neeg siv random1101), kuv tau rov tsim kho qhov kev txhawb nqa nws tus kheej nrog tus lej bar code (uas txhais tau tias ACMECORPORATION tab sis tus lej nyeem bar yuav tsis lees paub nws….sob).

Nws tau pom zoo muab lo rau txhua tus lej tom qab muab tso rau hauv nws lub qhov.

Kauj ruam 4: Sketch

Cov tsev qiv ntawv tseem tsis hloov pauv thiab thawj zaug uas koj upload thiab khiav cov duab tsis muaj dab tsi tshwm sim vim nws nyeem cov ntaub ntawv los ntawm eeprom thiab, tej zaum, hauv koj li eeprom tuaj yeem muaj qhov txiaj ntsig zoo. Tom qab ntawd thawj zaug khiav koj yuav tsum teeb tsa cov ntaub ntawv.

Hom kev hloov pauv tam sim no khaws cia hauv eeprom.

Thaum cov ntaub ntawv nkag mus, ua raws lub sijhawm teev tseg tsis raug (qhov tseeb lossis lub caij ntuj no 24 teev sijhawm).

Txheeb xyuas cov ntawv dhau los rau cov ntaub ntawv hauv tsev qiv ntawv thiab kev siv.

Pom zoo: