Cov txheej txheem:

Arduino Tswb moos Relay: 6 Kauj Ruam (nrog Duab)
Arduino Tswb moos Relay: 6 Kauj Ruam (nrog Duab)

Video: Arduino Tswb moos Relay: 6 Kauj Ruam (nrog Duab)

Video: Arduino Tswb moos Relay: 6 Kauj Ruam (nrog Duab)
Video: PCBspeedrun - Kicad + PCB + Teensy 2024, Kaum ib hlis
Anonim
Image
Image
Arduino Tswb moos Relay
Arduino Tswb moos Relay

Kuv muaj teeb meem ntau thaum sawv ntxov thaum sawv ntxov tshwj xeeb tshaj yog tias kuv nyob lig hmo kawg. Qhov tseem ceeb ntawm txoj haujlwm no tso cai rau koj qhib lub sijhawm xa khoom thaum lub sijhawm koj teeb tsa siv lub keyboard thiab lcd. Cia pib!

Kauj Ruam 1: Qhov Yuav Tsum Tau

Qhov haujlwm no tau ua tiav kwv yees li $ 70

Cov no yog yam koj yuav xav tau

  • 4x3 Matrix Keypad
  • 16x4 LCD
  • DS1307 Lub Sijhawm Module
  • 5V Relay Module
  • Cov khoom siv hluav taws xob sab nraud 2 pob
  • Arduino Mega
  • Jumper xov hlau (Txiv neej rau poj niam thiab poj niam rau poj niam)
  • 10k Potentiometer
  • Hlau

Yeem yeem

Toggle hloov

Cov cuab yeej

  • Soldering hlau
  • Phom phom

Kauj Ruam 2: Txuas txhua yam

Txuas Txhua Yam
Txuas Txhua Yam
Txuas Txhua Yam
Txuas Txhua Yam

Nws yog lub sijhawm los xaim txhua yam los siv daim duab fritzing no. Thaum koj paub tseeb tias txhua yam ua haujlwm kom raug ces koj tuaj yeem kub kua nplaum rau ntawm cov xov hlau jumper kom paub tseeb tias tsis muaj dab tsi txav mus

Kauj ruam 3: Code

Code
Code

Yog tias koj siv hnub ua haujlwm nkaus xwb code lub tswb tsis nrov rau Hnub Friday thiab Hnub Saturday vim tias yog kuv hnub so. tau txuas thiab tsis yog ib qho los ntawm lub tsev qiv ntawv raws li kuv tau ntxiv kab kab ntxiv rau nws.

Thaum koj xa cov cai rau rtc koj yuav tsum hloov kho "tm. Wday = 0;" rau hnub twg ntawm lub lim tiam nws yog:

Hnub Sunday: 1 Wednesday: 4 Hnub Saturday: 7

Hnub Monday: 2 Hnub Thursday: 5

Tuesday: 3 Friday: 6

Kauj Ruam 4: Ua Vaj Tsev

Ua Vaj Tsev
Ua Vaj Tsev
Ua Vaj Tsev
Ua Vaj Tsev
Ua Vaj Tsev
Ua Vaj Tsev
Ua Vaj Tsev
Ua Vaj Tsev

Kuv tsim qhov no hauv daim duab kos uas tuav tag nrho cov khoom ua ntej ua ke thiab lwm qhov los tuav cov laug txuas thiab Rtc uas tuaj yeem luam tawm 3d.

Yog tias koj tsis muaj peev xwm nkag mus rau lub tshuab luam ntawv 3d Kuv tau suav nrog cov ntawv kos duab kom koj tuaj yeem luam nws hauv ib qho mus rau ib qho nplai thiab txiav nws tawm ntawm ntoo lossis mus rau phaj ntawm txhuas siv dremel.

Kuv ua lub thawv siv 1 cm tuab plyboard. Qhov ntev yog 10 cm tob 13 cm Dav thiab 16 cm Ntev. Koj kuj tseem tuaj yeem luam 3d lub thawv tab sis kuv tsis xav nkim cov ntsiab lus.

Kauj ruam 5: Relays

Relays
Relays

Yog tias koj xaim xov txuas mus qhib qhov rooj thaum sawv ntxov tsuas yog qhib lub tsev hloov thiab txuas ob lub xov hlau ntawm ib qho hauv txhua lub davhlau ya nyob twg. Koj yuav xav tau siv RC snubber yog tias koj lub lcd pib ploj mus thaum hloov pauv. Qhov no yog vim Voltage spikes tsim los ntawm lub cav.

Yog tias koj tab tom hloov lub cuab yeej sib txawv koj tuaj yeem siv cov lus qhia no los ua Lub Hwj Huam Hluav Taws Xob uas tuaj yeem txuas nrog lub cuab yeej.

Xyuas kom tseeb tias koj tua lub tshuab hluav taws xob. Mains voltage tuaj yeem tua !!!

Kauj Ruam 6: Teem Sijhawm

Teem Sijhawm
Teem Sijhawm

Teem sijhawm yog yooj yim heev. Ua ntej nias lub hnub qub tus yuam sij thiab nkag mus rau lub sijhawm koj xav kom nws tawm mus tom qab nias lub pob hash kom paub meej. Koj tuaj yeem qhib lub tswb thiab kaw siv tus yuam sij hash.

Pom zoo: