Cov txheej txheem:

UV Glow Clock - Nws Spins !: 3 Kauj Ruam (nrog Duab)
UV Glow Clock - Nws Spins !: 3 Kauj Ruam (nrog Duab)

Video: UV Glow Clock - Nws Spins !: 3 Kauj Ruam (nrog Duab)

Video: UV Glow Clock - Nws Spins !: 3 Kauj Ruam (nrog Duab)
Video: When you switch your petrol scooter with an electric one 😂 2024, Kaum ib hlis
Anonim
Image
Image
Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs

Kuv xav tsim lub moos tsis txawv txav, thiab kuv muaj qee qhov UV Led's thiab ci hauv qhov tsaus nti ntawm tes yog li peb nyob ntawm no. Lub ci ci tau luam tawm siv ci ci hauv qhov tsaus ntuj (uv) PLA yas

Qhov siv …

Arduino Nano (v3) 10x UV LED's (5mm) 1x 28BYJ-48 Tsav (pheej yig stepper lub cev muaj zog) 1x DS1307 RTC moos module kuj tseem siv tau qee qhov PLA dub rau lub hauv paus thiab qee qhov M3 txiv ntseej thiab ntsia hlau rau nruab lub cav.

Rub tawm thiab luam tawm Lub ntsej muag, Lub Hauv Paus & Cov Ntaub Ntawv (cov ntaub ntawv xaiv tau) los ntawm yam khoom

Kauj Ruam 1: Ntxiv & Hlau LED

Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs

Thawb lub UV LED's rau hauv qhov (socket)

Nco ntsoov kab kab ob txhais ceg luv ntawm ib sab, qhov no yuav yog xaim ib txwm muaj.

Khiav ib txoj hlua xaim nrog ob txhais ceg luv thiab muab lawv txhuam ua ke.

Kauj Ruam 2: Ntxiv Cov Tsav Tsheb thiab Txhim Kho Cov Hluav Taws Xob Hauv

Ntxiv Cov Tsav Tsheb thiab Siv Cov Hluav Taws Xob Hauv
Ntxiv Cov Tsav Tsheb thiab Siv Cov Hluav Taws Xob Hauv
Ntxiv Cov Tsav Tsheb thiab Siv Cov Hluav Taws Xob Hauv
Ntxiv Cov Tsav Tsheb thiab Siv Cov Hluav Taws Xob Hauv
Ntxiv Cov Tsav Tsheb thiab Siv Cov Hluav Taws Xob Hauv
Ntxiv Cov Tsav Tsheb thiab Siv Cov Hluav Taws Xob Hauv
Ntxiv Cov Tsav Tsheb thiab Siv Cov Hluav Taws Xob Hauv
Ntxiv Cov Tsav Tsheb thiab Siv Cov Hluav Taws Xob Hauv

Ntxiv lub cav siv M3 lub taub hau ntswj ntsia hlau, siv lub laum loj los txhawm rau suav cov qhov. Pop cov yas yas me me npog tawm ntawm lub cav thiab txiav nruab nrab kab.

Sab saum toj LED txuas rau D11 ntawm ArduinoThe LED Qab yog D2 ntawm Arduino. LED Common tuaj yeem txuas rau Pin D12 lossis GND

Lub cev muaj zog txuas mus rau Arduino zoo li no … XEEB: A0YELLOW: A1ORANGE: A2PINK: A3

Thiab RTC (DS1307) SDA: A4SCL: A5

Saib schematic kom paub meej ntxiv ntawm cov thaiv.

Kauj Ruam 3: Ntxiv Glow Disk thiab Program Arduino

Ntxiv Glow Disk thiab Program Arduino
Ntxiv Glow Disk thiab Program Arduino
Ntxiv Glow Disk thiab Program Arduino
Ntxiv Glow Disk thiab Program Arduino

Thawb lub ci ci rau ntawm lub cev muaj zog.

Rub tawm daim duab Arduino los ntawm

Tshaj tawm nws mus rau Arduino, thaum ua tiav nws yuav tsum pib tig ncig thiab tso saib qee tus lej.

Yog tias txhua yam zoo, nws yog lub sijhawm los teeb tsa koj lub moos. Hauv Arduino kos duab pom kab uas tau hais tawm hais tias … rtc.adjust (DateTime (2018, 1, 29, 21, 03, 0));

Rho tawm // thiab hloov lub sijhawm rau lub sijhawm tam sim no. Upload rau Arduino.

Tom qab ntawd muab rov qab // thiab rov tso dua (lossis lub sijhawm yuav rov pib dua txhua lub sijhawm qhib lub moos).

RTC yuav tsum khaws lub sijhawm zoo, tsuas yog rov ua qhov kawg rtc.adjust cov kauj ruam kom rov pib dua yog tias nws tsis siv sijhawm yav tom ntej.

Pom zoo: