Cov txheej txheem:

Arduino Binary Clock - 3D Luam Ntawv: 5 Cov Kauj Ruam (nrog Duab)
Arduino Binary Clock - 3D Luam Ntawv: 5 Cov Kauj Ruam (nrog Duab)

Video: Arduino Binary Clock - 3D Luam Ntawv: 5 Cov Kauj Ruam (nrog Duab)

Video: Arduino Binary Clock - 3D Luam Ntawv: 5 Cov Kauj Ruam (nrog Duab)
Video: How i Made this Amazing Hollow Clock | Arduino 2024, Hlis ntuj nqeg
Anonim
Arduino Binary Moos - 3D Luam Tawm
Arduino Binary Moos - 3D Luam Tawm
Arduino Binary Moos - 3D Luam Tawm
Arduino Binary Moos - 3D Luam Tawm
Arduino Binary Moos - 3D Luam Tawm
Arduino Binary Moos - 3D Luam Tawm

Kuv tau saib ntawm Binary moos rau qee lub sijhawm rau kuv lub rooj ua haujlwm, txawm li cas los xij lawv kim heev thiab / lossis tsis muaj tus lej loj. Yog li kuv txiav txim siab kuv yuav ua ib qho xwb. Ib lub ntsiab lus los txiav txim siab thaum ua lub moos, Arduino / Atmega328 tsis raug qhov tseeb ntau lub sijhawm loj (qee tus neeg tau pom ntau dua 5 feeb ntawm qhov ua yuam kev hauv 24 teev) yog li rau qhov haujlwm no peb yuav siv RTC (Lub Sijhawm Tiag) Clock) Module kom khaws lub sijhawm. Cov no kuj muaj qhov ntxiv ntxiv uas lawv muaj lawv tus kheej lub roj teeb rov qab yog li lub sijhawm yuav tsis ploj thaum lub zog tsis ua haujlwm. Kuv xaiv rau DS3231 tus qauv raws li nws qhov tseeb rau 1 feeb hauv ib xyoos tab sis koj kuj tseem tuaj yeem siv DS1307 tab sis nws tsis raug li. Pom tseeb koj tsis tas yuav siv tag nrho cov yam ntxwv no, koj tuaj yeem tsuas yog ua lub hauv paus binary moos thiab txuag tej zaum £ 10 - txog £ 12 hauv tus txheej txheem. Kuv tau mus rau 12 teev teev hom ntawv kom khaws qhov loj me thiab kom txo LED suav thiab nws yooj yim dua rau nyeem ib yam. (Kev nkag siab zoo yog txhua yam koj ib txwm xav tau ua haujlwm yog tias nws yog AM lossis PM !!)

Kuv siv:

1 x Arduino Nano (ib qho ntawm pheej yig ebay ib tus) - Kwv yees £ 3

1 x RTC Module (i2C) - Kwv yees £ 3

1x RHT03 Kub / av noo sensor - Kwv yees £ 4

1x 0.96 OLED Screen Module (i2C) - Kwv yees £ 5

11 x Blue straw lub kaus mom LED's - Kwv yees £ 2

11 x 470Ohm resistor - Kwv yees £ 1

1 x 10KOhm Resistor - Kwv yees £ 0.30

1 x 3D luam tsev nyob - kwv yees li £ 12

ntxiv rau ib qho me me ntawm cov laug cam thiab cov laug

Tag Nrho Tus Nqi = £ 30

Kauj Ruam 1: Tsim cov qauv LED

Tsim cov LED Modules
Tsim cov LED Modules
Tsim cov LED Modules
Tsim cov LED Modules

Cov qauv LED tau tsim los ntawm 3 lossis 4 LED uas muaj cov ceg zoo txuas nrog ua ke thiab cov ceg tsis zoo txuas nrog 470Ohm resistor. Tus tiv thaiv no txwv tam sim no los ntawm LED txog li 5mA. Cov naj npawb siab tshaj plaws ntawm LED uas tuaj yeem ua tau txhua lub sijhawm yog 8, yog li qhov siab tshaj tam sim no kos rau ntawm Arduino yog li 40mA hauv thiab 40mA tawm yog li 80mA tag nrho - zoo nyob hauv cheeb tsam kev nplij siab ntawm arduino.

Cov kab ya tom qab ntawd tau muab pov rau ntawm thiab cov tiv thaiv npog nrog cov cua sov ntsws.

Kauj ruam 2: Binary Clock CIrcuit

Binary moos CIrcuit
Binary moos CIrcuit

Lub hauv paus ntawm txoj haujlwm no yog Arduino Nano. Peb yuav siv feem ntau ntawm nws tus pin ntawm no. RTC module thiab Screen yog ob qho tib si ntawm lub npav i2C yog li lawv tuaj yeem faib txhua qhov kev sib txuas. Yooj yim txuas 5v, 0v, SDA thiab SCL kev sib txuas rau ob qho qauv (Kuv daisy txuas kuv tus kheej kom ua rau cov hlua txuas qis). SDA yog txuas nrog tus pin A4 ntawm arduino thiab SCL txuas nrog Pin A5.

Tom ntej txuas RHT03 (DHT22). dua qhov no yog daisy txuas rau 5v thiab 0v sib txuas tab sis tus pin 2 tau txuas ncaj qha rov qab rau Arduino tus pin D12. Tsis txhob hnov qab ntxiv 10KOhm resistor ntawm 5V thiab teeb liab sib txuas raws li qhia hauv daim duab.

Tom ntej txuas cov LED modules. Lub zog rau txhua tus qauv txuas nrog Pins 9, 10 lossis 11 (Nws tsis muaj teeb meem dab tsi vim tias lawv tsuas yog muab PWM teeb liab los kho teeb ci LED).

Txuas qhov tsis zoo ntawm txhua LED mus rau tus lej sib thooj hauv daim duab.

Kauj Ruam 3: Tsim thiab Luam Lub Tsev

Tsim thiab Luam Vaj Tsev
Tsim thiab Luam Vaj Tsev
Tsim thiab Luam Vaj Tsev
Tsim thiab Luam Vaj Tsev

Ua ntej tshaj plaws ntsuas txhua yam ntawm koj cov qauv kom koj tau nce txoj haujlwm thiab qhib qhov ntau thiab tsawg ua haujlwm.

Kuv siv DesignSpark Mechanical 3D CAD software los tsim kuv lub moos thiab hauv paus tab sis koj kuj tseem tuaj yeem siv cov software 3D zoo. DesignSpark Mechanical tau rub tawm dawb thiab siv thiab muaj ntau ntau cov lus qhia yuav ua li cas. Lwm qhov software 3D dawb yog SketchUp, dua nws muaj ntau qhov kev qhia hauv online zoo nkauj npaum li txhua txoj haujlwm tau npog.

Thaum kawg koj yuav tsum muaj cov ntaub ntawv tso tawm uas yog hauv. STL hom ntawv kom nws tuaj yeem luam tawm. Kuv tau suav nrog kuv cov ntaub ntawv kom yooj yim.

Yog tias koj tsis muaj hmoo txaus kom muaj lub tshuab luam ntawv 3D ces koj tuaj yeem tau txais 3D luam tawm ua tiav hauv internet. Muaj ob peb lub tshuab luam ntawv online muaj nrog tus nqi tsim nyog. Kuv siv lub vev xaib hu ua 3Dhubs thiab nws raug nqi qis dua £ 15 kom tau txais ob qho tib si luam tawm.

Kuv tau ob qho tib si luam tawm hauv kev ua haujlwm ABS raws li qhov txo qis me me piv rau lwm cov ntaub ntawv.

Thaum rov qab los ntawm cov tshuab luam ntawv koj yuav tsum tau ntxuav cov ntu thiab lub teeb xuab zeb tej zaum xav tau. Kuv kuj tau muab kuv lub tsho me me ntawm cov tshuaj tsuag tsuag, tab sis kuv xav khaws qhov "luam tawm" saib, yog li kuv tsis nyuaj rau ntawm cov xuab zeb.

Kauj ruam 4: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Tsuas yooj yim haum txhua tus qauv / kab hluav taws xob rau hauv cov tsev tu huv huv. Ib qho me me ntawm cov kua nplaum yuav tsum tau ua kom lawv nyob rau hauv qhov chaw mus rau sab hauv qhov chaw pins. Ib qho me me ntawm cov kua nplaum kuj tseem siv los sib txuas cov qauv LED hauv qhov chaw. (yog qhov ntawd yog lub ntsej muag xiav koj tuaj yeem pom hauv daim duab. Kuv siv nws tuav cov qauv thaum lub kua nplaum tau teeb tsa)

Tsis txhob hnov qab kom haum lub roj teeb mus rau RTC module thaum haum

Tom qab ntawd thawb Arduino rau hauv txoj haujlwm kom lub mini USB chaw nres nkoj tsuas yog poking dhau lub moos tom qab.

Thaum kawg haum lub hauv paus thiab ntsia hlau rau hauv txoj haujlwm (Nco ntsoov kom muaj qhov zoo me me rau cov ntsia hlau kom lawv tsis txhob zom rau hauv yas ntau dhau li nws yuav tawg yooj yim)

Kauj Ruam 5: Fais Fab Thiab Teeb Sijhawm

Ua ntej lub zog koj yuav tsum tau tuav qee lub tsev qiv ntawv Arduino los ua txoj haujlwm no.

Koj yuav tsum tau:

RTClib

DHT22 Lub Tsev Qiv Ntawv

OLED Screen Library (koj kuj tseem xav tau adafruit GFX lub tsev qiv ntawv)

koj tuaj yeem pom ntau qhov kev qhia online yuav ua li cas ntxiv cov tsev qiv ntawv no yog li kuv yuav tsis nkag mus rau ntawm no.

Lub moos siv nws lub zog los ntawm Mini USB chaw nres nkoj nyob tom qab. Cias txuas qhov no rau koj lub computer thiab qhib Arduino Sketch 'Binary_Clock_Set.ino'

Cov duab kos no yuav siv hnub tim thiab sijhawm tam sim no teeb tsa hauv PC thaum lub sijhawm kos duab sau ua ke thiab thauj nws mus rau lub moos hauv kev teeb tsa lub voj. Tshaj tawm qhov no rau lub moos thiab lub sijhawm yuav teeb tsa. Tsis muaj kev cuam tshuam lub moos (yog li lub teeb teeb tsis tau pib dua), qhib lwm qhov Arduino kos duab 'Binary_Clock.ino' thiab thauj nws mus rau lub moos. Qhov no yog daim duab khiav ib txwm muaj

Yog tias lub zog (usb) poob ntawm 2 cov kauj ruam no koj yuav tsum tau rov ua ob qho tib si raws li lub sijhawm yuav tsis raug.

Cov duab kos 'Binary_Clock_Set.ino' tam sim no tsuas yog xav tau yog tias lub moos xav tau teeb tsa dua piv txwv li Kev Tshav Ntuj Hnub thiab lwm yam

Pom zoo: