Cov txheej txheem:

30-feeb Timer Tswb Tswb: 3 Cov Kauj Ruam (nrog Duab)
30-feeb Timer Tswb Tswb: 3 Cov Kauj Ruam (nrog Duab)

Video: 30-feeb Timer Tswb Tswb: 3 Cov Kauj Ruam (nrog Duab)

Video: 30-feeb Timer Tswb Tswb: 3 Cov Kauj Ruam (nrog Duab)
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Kaum ib hlis
Anonim

Ib tus phooj ywg tab tom pib ua lag luam me uas xaum peev txheej rau 30 feeb sijhawm.

Kuv tau muab los tsim qhov yooj yim Arduino raws lub tswb moos. Qhov tsim no siv Pro Micro microcontroller, DFPlayer Mini MP3 player, thiab DS3231 lub sijhawm tiag tiag (RTC.) Kuv siv Fusion 360 los tsim rooj plaub, raws li Fusion 360 Tutorial - Yooj Yim Snap Fit Case!

Khoom siv

  • Arduino Pro Micro, 5 volt, 16 MHz
  • DFPlayer Mini MP3 player
  • MicroSD daim npav
  • DS3231RTC
  • 1602 16x2 LCD nrog I2C Interface
  • tus hais lus me me
  • 2 lub pob me me SPST
  • 5 volt DC fais fab mov
  • Barrel jack rau lub hwj chim nkag
  • ntau yam ntsia hlau/standoff/ceev, thiab lwm yam.
  • pawg thawj coj saib perf
  • poj niam thiab txiv neej 2.54mm lub taub hau
  • Cov ntawv luam tawm 3D

Kauj Ruam 1: Kev Tsim Qauv thiab Kev Tsim Kho Arduino Code

Image
Image

Kuv tau tsim qauv tsim nrog SparkFun Inventor's Kit uas suav nrog Arduino Uno board, breadboard, jumper wires, thiab lwm yam.

Kuv xub siv "Tiny RTC" DS1307 lub sijhawm tiag tiag. Txawm li cas los xij, Kuv tau kawm tias DS3231 RTC yog qhov kev xaiv zoo dua vim tias nws suav nrog ntsuas kub ntsuas qhov ntsuas kom pom tseeb lub sijhawm khaws cia. Nco ntsoov tias DS3231M tsis yog qhov kub tau them, yog li ua tib zoo saib ua ntej yuav khoom.

DFPlayer Mini MP3 Player cov ntaub ntawv suav nrog daim duab txuas thiab qauv qauv. Qhov no ua haujlwm tau zoo rau kuv. Rau lub suab ceeb toom, Kuv nyiam qhov no "Hu nkauj lub tais ntaus nrog lub mloog pob ntseg" kaw rau Freesound. With Audacity, Kuv hloov pauv cov ntaub ntawv rau mono, txiav nws kom luv dua, ntxiv qhov fadeout, thiab khaws nws rau hauv.mp3 file. Tom qab ntawd, kuv tau theej cov ntawv.mp3 rau hauv daim npav SD thiab muab tso rau hauv DFPlayer Mini. (Tau kawg, qhov qauv tsim no tso cai rau koj siv lub suab rau lub tswb.)

Ob lub laub khawm nce/txo lub sijhawm los ntawm ib feeb. Kuv txuas cov no rau 2 tus pin uas tau qhib rau cuam tshuam thiab siv txuasInterrupt ()

Txoj cai nyob hauv "shoni_clock.ino" txuas ntxiv. Resources rau Arduino code thiab kev sib txuas:

  • DFPlayer Mini MP3 Player

    #suav nrog "DFRobotDFPlayerMini.h"

  • Adafruit RTClib
  • #suav nrog
  • LiquidCrystal_I2C
  • #suav nrog

Kauj Ruam 2: Daim duab Circuit Court

Kuv siv Fritzing los tsim lub Circuit Court.

  • schematic Fritzing qhov chaw: shoni_clock.fzz
  • schematic.pdf: shoni_clock_schem.pdf

Kauj Ruam 3: Case Case

Case Tsim
Case Tsim
Case Tsim
Case Tsim
Case Tsim
Case Tsim
Case Tsim
Case Tsim

Txoj haujlwm no yog lub sijhawm zoo los txhim kho kuv li 3D CAD txuj ci tsim txuj ci. Kuv siv Fusion 360. qhia txog cov txheej txheem muaj txiaj ntsig rau kev tsim cov ntsuas ntsuas (qhov ntev, dav, qhov siab, pluaj tuab) cov xwm txheej nrog sib dhos ua ke rau qhov tsis muaj cov ntsia hlau/kua nplaum.

Kuv ntxiv qhov thiab txiav tawm rau lub hwj chim txuas, LCD zaub, lub sijhawm teeb tsa cov nyees khawm, thiab tus hais lus. Kuv tsim lub nplhaib yooj yim los teeb tus neeg hais lus rau sab hauv sab saum toj ntawm rooj plaub. Kuv siv Fusion 360 tus qauv siv los tsim cov kab sib dhos ntawm qhov rau tus hais lus. Nws yuav tau zoo dua los tsim cov lus hais txog cov hniav nyiaj hniav kub, tab sis kuv tsis tuaj yeem nrhiav txoj hauv kev yooj yim los ua qhov no. Txhua tus neeg tau tsim ib tsab ntawv rau qhov qub version ntawm Fusion, tab sis nws tsis nruab Nyob rau qhov hloov tshiab kawg. Koj puas muaj lub tswv yim yuav ua li cas thiaj ua tus qauv hais lus ncig? Qhia rau peb paub nrog saib.

Kuv luam qhov no hauv PLA ntawm Ender 3 lub tshuab luam ntawv.

3D luam ntawv tsim cov ntaub ntawv:

  • Hais lus mount:

    • Fusion 360 qhov chaw: speaker_mount v1.f3d
    • STL: speaker_mount.stl
  • Rooj plaub:

    • Fusion 360 qhov chaw: ShoniClockCase v20.f3d
    • Cov ntaub ntawv kaw STL: shoni_clock_case.stl
    • Hauv qab npog STL: shoni_clock_case_bottom_cover.stl

Pom zoo: