Cov txheej txheem:

Arduino Zaub Sijhawm ntawm TM1637 LED Zaub Siv RTC DS1307: 8 Cov Kauj Ruam
Arduino Zaub Sijhawm ntawm TM1637 LED Zaub Siv RTC DS1307: 8 Cov Kauj Ruam

Video: Arduino Zaub Sijhawm ntawm TM1637 LED Zaub Siv RTC DS1307: 8 Cov Kauj Ruam

Video: Arduino Zaub Sijhawm ntawm TM1637 LED Zaub Siv RTC DS1307: 8 Cov Kauj Ruam
Video: Table Soccer || Kev lom zem. ຄວາມມັນຫຼັງຈາກເລີກວຽກ 2024, Hlis ntuj nqeg
Anonim
Arduino Zaub Sijhawm ntawm TM1637 LED Zaub Siv RTC DS1307
Arduino Zaub Sijhawm ntawm TM1637 LED Zaub Siv RTC DS1307

Hauv qhov kev qhia no peb yuav kawm paub yuav siv lub sijhawm siv RTC DS1307 module thiab LED Zaub TM1637 thiab Visuino li cas.

Saib cov yees duab.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino UNO (lossis lwm yam Arduino) Tau nws ntawm no
  • RTC DS1307 module Tau nws ntawm no
  • Jumper xov hlau
  • LED Zaub TM1637 Tau nws ntawm no

Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas LED Display pin [CLK] rau Arduino tus pin [10]
  • Txuas LED Display pin [DI0] rau Arduino tus pin [9]
  • Txuas LED Zaub pin [GND] rau Arduino tus pin [GND]
  • Txuas LED Display pin [VCC] rau Arduino tus pin [5V]
  • Txuas RTC DS1307 module pin [VCC] rau Arduino tus pin [5V]
  • Txuas RTC DS1307 module tus pin [GND] rau Arduino tus pin [GND]
  • Txuas RTC DS1307 module pin [SDA] rau Arduino tus pin [SDA]
  • Txuas RTC DS1307 module tus pin [SCL] rau Arduino tus pin [SCL]

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino ADD Cheebtsam

Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
  • Ntxiv "TM1637 7 Segment Display 4 Digits Module + 2 Vertical Points (CATALEX)" tivthaiv
  • Ntxiv "Clock Generator" tivthaiv
  • Ntxiv "Hnub/Sijhawm Tus Nqi" tivthaiv
  • Ntxiv "Decode (Split) Date/Time" tivthaiv
  • Ntxiv "Cov Ntawv Uas Muaj Cov Ntawv"
  • Ntxiv "Lub Sijhawm Tiag (RTC) DS1307" tivthaiv
  • Ntxiv "Pulse generator" tivthaiv

Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
  • Ob npaug nyem rau ntawm "Display1" tivthaiv thiab hauv "Tus lej" qhov rai luag "Text Display 7 Segments" mus rau sab laug Ntawm sab laug ntawm "Digits" window xaiv "Text Display 7 Segments1" and in the properties window set "Count Digits" "rau 4
  • Kaw qhov "Digits" window
  • Xaiv "DateTimeValue1" thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau hnub tim thiab sijhawm tam sim no
  • Nyem ob npaug rau "FormattedText1" tivthaiv thiab hauv cov ntsiab lus qhov rai rub 2x "Text element" mus rau sab laug, rau ob qho teeb tsa hauv lub qhov rai khoom "Ntev" txog 2
  • Xaiv "FormattedText1" thiab hauv cov khoom vaj huam sib luag teeb tsa "Ntawv" rau%0%1%2

Kauj Ruam 6: Hauv Visuino: Txuas Cov Khoom Siv

Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
  • Txuas ClockGenerator1 tus pin tawm rau RealTimeClock1 tus pin moos
  • Txuas DateTimeValue1 rau RealTimeClock1 tus pin teeb
  • Txuas RealTimeClock1 tus pin tawm mus rau DecodeDateTime1 tus pin Hauv
  • Txuas RealTimeClock1 tus pin I2C rau Arduino board tus pin I2C Hauv
  • Txuas DecodeDateTime1 tus pin Teev rau FormattedText1> Text Element1 pin In
  • Txuas DecodeDateTime1 pin Minute to FormattedText1> Text Element2 pin In
  • Txuas FormattedText1 tus pin tawm mus rau Display1> Cov Ntawv Qhia 7 Segments1> Pin In
  • Txuas Display1 tus pin Clock rau Arduino board digital Pin 10
  • Txuas Display1 tus pin Cov Ntaub Ntawv rau Arduino board digital Pin 9

Kauj Ruam 7: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 8: Ua si

Yog tias koj ua lub zog Arduino UNO module, cov zaub LED yuav tsum pib qhia lub sijhawm.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:

Pom zoo: