Cov txheej txheem:

Binary Desk Clock: 9 Kauj Ruam (nrog Duab)
Binary Desk Clock: 9 Kauj Ruam (nrog Duab)

Video: Binary Desk Clock: 9 Kauj Ruam (nrog Duab)

Video: Binary Desk Clock: 9 Kauj Ruam (nrog Duab)
Video: Live Binance Futures Trading | $2000 profit just in minutes #crypto #scalping 2024, Kaum ib hlis
Anonim
Binary Desk Clock
Binary Desk Clock
Binary Desk Clock
Binary Desk Clock
Binary Desk Clock
Binary Desk Clock

Binary Clocks yog qhov txaus thiab tshwj xeeb rau tus neeg uas paub binary (hom lus ntawm cov khoom siv digital). Yog tias koj yog tus txiv neej thev naus laus zis lub moos coj txawv txawv no yog rau koj. Yog li, ua ib qho ntawm koj tus kheej thiab khaws koj lub sijhawm tsis pub lwm tus paub!

Koj yuav pom ntau lub moos binary ntawm ntau hom sib txawv hauv Is Taws Nem. Txawm tias koj tuaj yeem yuav lub moos binary los ntawm khw hauv online zoo li amazon.com. Tab sis lub moos no txawv ntawm txhua qhov thiab ntawm no kuv tau siv ua si marble muab nws zoo nkauj.

Ua ntej nqes mus thov saib daim vis dis aus.

Kauj Ruam 1: Nqi Khoom

Nqi Khoom
Nqi Khoom
Nqi Khoom
Nqi Khoom
Nqi Khoom
Nqi Khoom

Kho vajtse Cheebtsam

1. Arduino Pro Micro (yuav los ntawm aliexpress.com): Qhov no yog lub hauv paus tseem ceeb ntawm lub moos thiab nyeem lub sijhawm los ntawm RTC thiab muab kev qhia kom tsav lub LEDs kom raug. Koj tuaj yeem siv Arduino Nano txawm tias Arduino Uno hloov chaw Pro Micro yog tias qhov loj tsis muaj teeb meem rau koj.

2. DS3231 RTC Module (yuav los ntawm aliexpress.com): DS3231 RTC ua raws lub sijhawm txawm tias thaum lub zog tawm mus. Txawm hais tias lwm qhov RTC zoo li DS1307 tuaj yeem siv DS3231 tau raug dua.

3. MAX7219CNG LED Tsav IC (yuav los ntawm aliexpress.com): Arduino muaj tus lej tsawg. Yog li, yog tias koj xav tsav tons ntawm LEDs yam tsis nkim Arduino pins MAX7219 yog tus cawm seej. Nws siv cov ntaub ntawv tseem ceeb thiab tuaj yeem tsav 64 LEDs ntawm nws tus kheej.

4. 20 PCS Blue LED, 5mm (yuav los ntawm aliexpress.com): Xiav muab qhov txiaj ntsig zoo tshaj plaws rau kuv. Koj tuaj yeem sim nrog lwm cov xim.

5. 20 PCS Playing Marble (yuav los ntawm aliexpress.com): Txuj loj ua si marble tau siv. Cov pob zeb marble yuav tsum yog pob tshab kom dhau lub teeb.

6. Resistor 10K: Siv los tswj cov ntu tam sim no ntawm MAX7219 IC. Saib cov ntaub ntawv kom paub tus nqi tseeb rau ntu sib txawv tam sim no.

7. Cov xov hlau

8. Tsab Ntawv PCB Board (yuav los ntawm aliexpress.com): Kuv tau siv daim ntawv pov thawj PCB board rau MAX7219 IC nrog lub hauv paus IC. Koj kuj tseem tuaj yeem tsim koj li kev cai PCB board.

Cov cuab yeej kho vajtse

1. CNC 3018 PRO Laser Engraver Ntoo CNC Router Tshuab (yuav los ntawm aliexpress.com): Theis DIY CNG tshuab tau siv rau kev txiav ntoo ntawm cov ntoo rau marble thiab LEDs. Qhov no yog lub tshuab zoo heev nrog tus nqi qis rau txhua tus tsim khoom thiab nyiam ua haujlwm.

2. Chaw Nres Nkoj (yuav ib qho los ntawm aliexpress.com): Qee qhov yuav tsum tau siv rau txoj haujlwm thiab cov hlau zoo yuav tsum yog cov cuab yeej yuav tsum muaj rau cov kws tsim khoom. 60W yog qhov kev xaiv zoo rau DIY soldering.

3. Hlau Cutter (yuav los ntawm aliexpress.com)

4. Titanium Coated Carbide End Milling Cutter rau CNC (yuav los ntawm aliexpress.com): Koj kuj tseem tuaj yeem sim nrog qhov me me muab nrog lub tshuab. Hauv qhov xwm txheej ntawd, koj yuav tsum hloov qee qhov kev tsim.

Kauj ruam 2: Engraving thiab Carving

Engraving thiab Carving
Engraving thiab Carving
Engraving thiab Carving
Engraving thiab Carving
Engraving thiab Carving
Engraving thiab Carving

Kuv coj 165X145X18.8 mm Soft Maple ntoo thooj rau tso cov LEDs ntawm lub moos. Nyob rau sab saum toj ntawm txhua tus coj, kuv yuav tso cov pob zeb ci thiab qhov loj ntawm tus qauv ua si marble yog 15.5mm txoj kab uas hla. Yog li, kuv ua 15.7 hli qhov nrog qhov tob ntawm 7mm. Ntawm qhov nruab nrab ntawm lub qhov, Kuv tau ua 5mm laum rau tso LED. Txhua cov ntawv tau ua nrog 2mm qhov tob. Koj tuaj yeem nce lossis txo qhov tob ntawm qhov koj xaiv. Koj kuj tseem tuaj yeem sim laser kos rau cov ntawv.

Kev tsim ua tiav tau tsim los ntawm Easel los ntawm Inventables. Easel yog lub web-based software platform uas tso cai rau koj tsim thiab kos los ntawm ib qho, cov haujlwm yooj yim thiab feem ntau ntawm cov yam ntxwv tau siv dawb. Koj tsuas yog yuav tsum tau nkag mus rau hauv kab ke los ntawm kev tsim tus account lossis siv Gmail.

Easel Pro yog cov tswv cuab raws huab software uas tsim los ntawm Inventables 'dawb Easel software. Easel thiab Easel Pro txo qis cov teeb meem cuam tshuam nrog CAD thiab CAM cov khoom tsim software yooj yim, ua kom yooj yim rau cov neeg siv los tsim cov khoom lag luam.

Siv Easel koj tuaj yeem xa cov ntawv tsim tawm hauv G-code hom lossis ncaj qha teeb tsa koj li CNC los ntawm Easel ib puag ncig thiab xa cov lus txib mus rau CNC. Hauv qhov xwm txheej ntawd, koj yuav tsum teeb tsa tus tsav tsheb rau Easel. Koj tseem tuaj yeem ntshuam G-code yav dhau los tsim rau hauv Easel IDE thiab hloov kho. Kuv suav nrog cov ntawv tsim tawm ntawm no. Koj tuaj yeem hloov kho tus qauv yooj yim raws li koj xaiv siv Easel.

Kauj Ruam 3: Xuab zeb thiab thov cov kua roj vanish

Sanding thiab thov cov kua roj vanish
Sanding thiab thov cov kua roj vanish
Sanding thiab thov cov kua roj vanish
Sanding thiab thov cov kua roj vanish
Sanding thiab thov cov kua roj vanish
Sanding thiab thov cov kua roj vanish
Sanding thiab thov cov kua roj vanish
Sanding thiab thov cov kua roj vanish

Cov kua roj vanish tuaj yeem muab qhov ua tiav zoo nkauj rau cov phiaj xwm ntoo thiab pleev xim. Ua ntej siv cov kua roj vanish rau ntoo, xuab zeb koj daim thiab ntxuav koj thaj chaw ua haujlwm. Sanding muab kev saib zoo thiab npaj ntoo rau cov kua roj vanish. Thov cov kua roj vanish hauv ob peb txheej nyias, cia txhua tus kom qhuav kom huv ua ntej mus rau tom ntej. Txhawm rau pleev xim rau xim, cia nws qhuav tag thiab tom qab ntawd ua tib zoo txhuam cov kua roj vanish rau. Ib lub tsho loj txaus rau ntau daim duab, tab sis koj tuaj yeem ntxiv txheej ntxiv ntev li ntev tau thaum koj xub tso ib qho dhau los kom qhuav.

Ua ntej thov cov kua roj vanish koj yuav tsum tshem tawm ib qho tsis xws luag thiab ua txhaum ua ntej thov cov kua roj vanish. Txhawm rau ua qhov ntawd Siv 100 cov ntawv xuab zeb rau daim tsis tiav, thiab ua haujlwm nrog cov ntoo ntawm cov ntoo. Xuab zeb maj mam kom txog thaum daim yog tus. Tom qab ntxuav daim ntoo siv cov kua roj vanish hauv qhov chaw muaj cua zoo.

Cov kua roj vanish txuag ntoo los ntawm ib puag ncig cov hmoov av thiab noo tab sis nws tuaj yeem cuam tshuam rau xim ntoo.

Kauj Ruam 4: Ua Circuit Court

Ua Circuit
Ua Circuit
Ua Circuit
Ua Circuit
Ua Circuit
Ua Circuit
Ua Circuit
Ua Circuit

Lub hauv paus tseem ceeb ntawm lub moos yog Arduino Pro Mini microcontroller board thiab DS3231 RTC module. Kev sib txuas ntawm Arduino Pro Mini thiab RTC module yog yooj yim heev. Koj yuav tsum txuas SDA tus pin ntawm RTC module rau SDA tus pin ntawm Arduino thiab SCL tus pin ntawm RTC module rau SCL tus pin ntawm Arduino. SDA thiab SCL pins yog qhov tseeb A4, thiab A5 tus pin ntawm Arduino feem. Koj kuj yuav tsum ua kom muaj kev sib txuas hauv av ntawm Arduino thiab RTC cov qauv. Kuv siv jumper xov hlau los ua qhov sib txuas.

Kev sib txuas ntawm Arduino thiab DS3231 RTC:

Arduino SWB 32231
SCL (A5) SCL
SDA (A4) SDA
5 V VCC
GND GND

Rau kev qhia teev, feeb thiab thib ob lub moos binary xav tau 20 LEDs. Yog tias koj xav qhia hnub nws xav tau ntau dua. Arduino pawg thawj coj muaj kev txwv ntawm GPIO pins. Yog li, kuv siv MAX7219CNG LED tsav IC rau tsav tons ntawm LEDs siv tsuas yog peb tus pin ntawm Arduino board.

MAX7219 tsav IC muaj peev xwm tsav tau 64 tus neeg LEDs thaum siv tsuas yog 3 lub xov hlau rau kev sib txuas lus nrog Arduino, thiab dab tsi ntxiv, peb tuaj yeem daisy saw ntau tus tsav tsheb thiab cov lej thiab tseem siv tib 3 xov hlau.

64 LEDs tau tsav los ntawm 16 tus pin pin ntawm IC. Cov lus nug tam sim no yog qhov ua tau li cas. Zoo, tus lej siab tshaj plaws ntawm LEDs teeb nyob rau tib lub sijhawm tiag tiag yog yim. Cov LEDs tau teeb tsa ua 8 × 8 teeb ntawm kab thiab kab. Yog li MAX7219 qhib txhua kab ntawv rau lub sijhawm luv luv thiab tib lub sijhawm nws tseem tsav txhua kab. Yog li los ntawm kev hloov pauv sai los ntawm kab thiab kab tib neeg lub qhov muag yuav pom tsuas yog lub teeb txuas mus.

VCC thiab GND ntawm MAX7219 mus rau 5V thiab GND pins ntawm Arduino thiab peb lwm tus pin, DIN, CLK, thiab CS mus rau ib tus lej digital ntawm Arduino board. Yog tias peb xav txuas ntau dua ib qho qauv peb tsuas yog txuas cov pins tso tawm ntawm pawg thawj coj ua txhaum yav dhau los mus rau cov pins nkag ntawm tus qauv tshiab. Qhov tseeb cov pins no zoo ib yam tsuas yog DOUT tus pin ntawm pawg thawj coj saib dhau los mus rau DIN tus pin ntawm pawg thawj coj saib tshiab.

Kev sib txuas ntawm Arduino thiab MAX7219CNG:

Arduino MAX7219
D12 DIN
D11 CLK
D10 LOAD
GND GND

Kauj Ruam 5: Tshaj Tawm Txoj Haujlwm

Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm

Tag nrho cov haujlwm tau sau hauv Arduino ib puag ncig. Ob lub tsev qiv ntawv sab nraud tau siv rau qhov kos duab. Ib qho yog rau RTC tus qauv thiab lwm qhov yog rau MAX7219 IC. Rub tawm cov tsev qiv ntawv los ntawm qhov txuas thiab ntxiv rau Arduino IED ua ntej suav qhov program.

Kev xa cov program hauv Arduino Pro Mini yog qhov nyuaj me ntsis. Ua tibzoo saib ntawm kev qhia yog tias koj tsis tau siv Arduino Pro Mini ua ntej:

/*

GIT: https://github.com/jarzebski/Arduino-DS3231> GIT: https://github.com/jarzebski/Arduino-DS3231> */#include "Wire.h" #include "DS3231.h" #suav nrog "LedControl.h" /* Tam sim no peb xav tau LedControl los ua haujlwm nrog. ***** Cov lej tus lej no tej zaum yuav tsis ua haujlwm nrog koj cov cuab yeej ***** tus pin 12 txuas nrog rau DataIn tus pin 11 txuas nrog CLK tus pin 10 txuas nrog LOAD Peb tsuas muaj ib qho MAX72XX nkaus xwb. */ DS3231 moos; RTCDateTime dt; LedControl lc = LedControl (12, 11, 10, 1); int vib nas this, feeb, teev; byte tooj [10] = {B00000000, B01000000, B00100000, B01100000, B00010000, B01010000, B00110000, B01110000, B00001000, B01001000}; teeb tsa tsis muaj dab tsi () {//Serial.begin(9600); / * MAX72XX yog nyob rau hauv hom kev txuag hluav taws xob ntawm kev pib, peb yuav tsum hu xov tooj rau sawv daws */ lc.shutdown (0, tsis tseeb); / * Teeb qhov ci ci rau qhov nruab nrab qhov tseem ceeb */ lc.setIntensity (0, 15); / * thiab tshem cov zaub */ lc.clearDisplay (0); //lc.setLed(0, kab, col, tseeb); // lc.setRow (0, 0, B11111111); // lc.setRow (0, 1, B11111111); // lc.setRow (0, 2, B11111111); // lc.setRow (0, 3, B11111111); // lc.setRow (0, 4, B11111111); // lc.setRow (0, 5, B11111111); // lc.setColumn (0, 2, B11111111); // lc.setColumn (0, 3, B11111111); // lc.setColumn (0, 4, B11111111); // lc.setColumn (0, 5, B11111111); // Pib DS3231 clock.begin (); // Teeb duab kos ua ke lub sijhawm //clock.setDateTime(_DATE_, _TIME_); pinMode (5, INPUT_PULLUP); pinMode (6, INPUT_PULLUP); pinMode (7, INPUT_PULLUP); } int menu = 0, nce, nqis; ib teev _ ib; int teev_ten; int feeb_one; int feeb_ten; int seconds_ ib; int feeb_ten; void loop () {yog (digitalRead (5) == 0) {ncua (300); ntawv qhia zaub mov ++; yog (menu> 3) menu = 0; } yog (ntawv qhia zaub mov == 0) {dt = clock.getDateTime (); teev = dt.hour; feeb = dt.minute; vib nas this = dt.second; yog (teev> 12) teev = teev - 12; yog (teev == 0) teev = 1; hours_one = teev%10; teev_ten = teev/10; feeb_one = feeb%10; feeb_ten = feeb/10; seconds_one = vib nas this%10; seconds_ten = vib nas this/10; lc.setRow (0, 0, tus lej [seconds_one]); lc.setRow (0, 1, tus lej [seconds_ten]); lc.setRow (0, 2, tus lej [feeb_one]); lc.setRow (0, 3, tus lej [feeb_ten]); lc.setRow (0, 4, tus naj npawb [ib teev _one]); lc.setRow (0, 5, tus naj npawb [teev_ten]); } yog (ntawv qhia zaub mov == 1) {yog (digitalRead (6) == 0) {ncua sijhawm (300); teev ++; yog (teev> = 24) teev = 0; } yog (digitalRead (7) == 0) {ncua (300); teev-; yog (teev = 60) feeb = 0; } yog (digitalRead (7) == 0) {ncua (300); feeb-; yog (feeb <0) feeb = 0; } feeb_one = feeb%10; feeb_ten = feeb/10; lc.setRow (0, 4, B00000000); lc.setRow (0, 5, B00000000); lc.setRow (0, 1, B00000000); lc.setRow (0, 0, B00000000); lc.setRow (0, 2, tus lej [feeb_one]); lc.setRow (0, 3, tus lej [feeb_ten]); } yog (ntawv qhia zaub mov == 3) {clock.setDateTime (2020, 4, 13, teev, feeb, 01); ntawv qhia zaub mov = 0; } //lc.setLed(0, kab, col, cuav); //lc.setLed(0, kab, col, tseeb); //lc.setColumn(0, col, B10100000); //lc.setRow(0, 4, B1111111111); //lc.setRow(0, kab, (byte) 0); //lc.setColumn(0, col, (byte) 0); // Rau kev ua xoom saib mus rau DS3231_dateformat piv txwv // Serial.print ("Cov ntaub ntawv nyoos:"); // Serial.print (dt.year); Serial.print ("-"); // Serial.print (dt.month); Serial.print ("-"); // Serial.print (dt.day); Serial.print (""); // Serial.print (dt.hour); Serial.print (":"); // Serial.print (dt.minute); Serial.print (":"); // Serial.print (dt.second); Serial.println (""); // // ncua (1000); }

Kauj Ruam 6: Tso cov LEDs

Tso cov LEDs
Tso cov LEDs
Tso cov LEDs
Tso cov LEDs
Tso cov LEDs
Tso cov LEDs
Tso cov LEDs
Tso cov LEDs

Hauv theem no, Kuv yuav tso tag nrho cov LEDs rau lub qhov ntawm lub rooj ntoo. Cov kev sib txuas ntawm LEDs tau qhia nyob hauv cov phiaj xwm. Raws li peb yuav siv MAX7219 LED tsav tsheb los tsav cov LEDs, txhua lub LEDs yuav tsum txuas nrog hauv daim ntawv matrix. Yog li, kuv txuas tus pin anode ntawm txhua LEDs hauv txhua kab ua ke thiab txhua tus cathode pins ntawm txhua kab ua ke raws li cov txheej txheem. Tam sim no, peb kab pins yog qhov ua tau zoo anode pins ntawm LEDs thiab kab pins yog qhov tseeb cathode pins ntawm LEDs.

Rau kev tsav tsheb LEDs siv MAX7219 koj yuav tsum txuas cathode tus pin ntawm tus coj mus rau tus lej lej ntawm IC thiab tus lej anode ntawm tus coj mus rau ntu ntu ntawm IC. Yog li, peb kab pins yuav tsum txuas nrog rau ntu ntu thiab kab pins yuav tsum txuas nrog tus lej tus lej ntawm MAX7219.

Koj yuav tsum txuas tus tiv thaiv ntawm ISET tus pin thiab VCC ntawm MAX7219 IC thiab tus tiv thaiv no tswj cov ntu ntu tam sim no. Kuv siv 10K resistor los tswj 20mA hauv txhua ntu ntu.

Kauj Ruam 7: Txuas LEDs

Txuas LEDs
Txuas LEDs
Txuas LEDs
Txuas LEDs
Txuas LEDs
Txuas LEDs

Nyob rau theem no, Kuv txuas tag nrho cov LEDs hauv kab ua kab sib luag hom. Kuv xav tau siv qee lub xov hlau txuas ntxiv los txuas cov LEDs tab sis koj tuaj yeem ua qhov kev sib txuas yam tsis muaj kev pab ntawm cov xov hlau ntxiv yog tias cov coj ntawm LEDs ntev txaus los kov ib leeg.

Hauv qhov teeb tsa no, tsis xav tau tus tiv thaiv vim tias MAX7219 yuav saib xyuas tam sim no. Koj lub luag haujlwm yog xaiv tus nqi raug rau ISET tus tiv thaiv thiab rub tus ISET tus pin nrog tus tiv thaiv no. Ua ntej tso thiab txuas cov LEDs kuv yuav hais qhia koj xyuas txhua LED. Vim tias tso qhov tsis zoo LED yuav tua ntau lub sijhawm. Hauv cov kauj ruam tom ntej, peb yuav txuas kab thiab kab xov txuas rau MAX ic.

Kauj Ruam 8: Txuas Lub Rooj Tswjhwm Saib Circuit Court nrog cov LEDs

Txuas Circuit Board nrog LEDs
Txuas Circuit Board nrog LEDs
Txuas Circuit Board nrog LEDs
Txuas Circuit Board nrog LEDs
Txuas Circuit Board nrog LEDs
Txuas Circuit Board nrog LEDs

Peb lub rooj tsav xwm suav nrog RTC, Arduino, thiab MAX7219 tau npaj ntev lawm thiab peb kuj tau npaj cov lej LED hauv qib dhau los. Tam sim no peb yuav tsum txuas txhua yam ua ke raws li cov txheej txheem. Ua ntej, peb yuav tsum txuas kab thiab kab xov txuas rau MAX7219IC. Qhov kev sib txuas tau hais nyob rau hauv schematic. Txhawm rau kom meej dua ua raws cov lus tau hais hauv qab no.

LED Matrix Cov MAX7219CNG
ROV 0 DIGIT0
QAB 1 DIGIT1
ROV 2 DIGIT2
QAB 3 DIGIT 3
COLUMN0 SEGA
COLUMN1 SEGB
COLUMN2 SEGC
COLUMN3 SEGD
COLUMN4 SEGE
COLUMN5 SEGF

ROW0-> Kab saum toj kawg nkaus

COLUMN0 -> Kab sab xis (SS COLUMN)

Tom qab ua qhov kev sib txuas koj yuav tsum kho PCB pawg thawj coj thiab Arduino nrog cov ntoo kom tsis txhob tawg qhov kev sib txuas. Kuv siv cov kua nplaum kub los kho txhua qhov kev hloov pauv hauv qhov chaw. Txhawm rau kom tsis txhob muaj qhov luv luv siv cov kua nplaum ntau los nkaum qhov sib koom ua ke ntawm sab hauv qab ntawm PCB.

Txhawm rau ua lub moos siv tau koj yuav tsum khaws qhov kev xaiv los kho lub sijhawm thaum xav tau. Kuv ntxiv peb khawm hloov kho lub sijhawm. Ib qho rau kev hloov pauv kev xaiv thiab ob qho rau nce ntxiv thiab txo qis ib teev thiab feeb. Cov nyees khawm tau muab tso rau ntawm kaum sab xis saum toj kom cov no tuaj yeem nkag tau yooj yim.

Kauj Ruam 9: Tso Marbles

Tso cov Marbles
Tso cov Marbles
Tso cov Marbles
Tso cov Marbles
Tso cov Marbles
Tso cov Marbles

Nov yog theem kawg ntawm peb tes num. Txhua qhov kev sib txuas hauv Circuit tau ua tiav. Tam sim no koj yuav tsum tso cov pob zeb ci rau sab saum toj ntawm lub moos ntoo. Txhawm rau muab cov pob zeb ci kuv siv cov kua nplaum kub. Siv pob tshab dawb xim xim nplaum rau lub hom phiaj. Kuv tau thov cov kua nplaum kub hauv txhua qhov ntawm sab saum toj thiab nyob rau sab saum toj ntawm LEDs Kuv maj mam muab cov pob zeb ci rau hauv txhua qhov. Ntxiv kua nplaum tusyees yuav ua rau kom ci ntawm cov coj. Kuv siv XEEB LED rau kuv lub moos. Nws muab kuv qhov txiaj ntsig zoo tshaj plaws.

Muab lub zog rau lub moos. Yog tias nws qhia sijhawm sijhawm Zoo siab !!!

Koj ua nws!

Txaus siab rau!

Ua nws Glow Contest
Ua nws Glow Contest
Ua nws Glow Contest
Ua nws Glow Contest

Runner Up hauv Kev Ua Nws Glow Contest

Pom zoo: