Cov txheej txheem:

Arduino GPS Moos Nrog Lub Sijhawm Hauv Zos Siv NEO-6M Module: 9 Kauj Ruam
Arduino GPS Moos Nrog Lub Sijhawm Hauv Zos Siv NEO-6M Module: 9 Kauj Ruam

Video: Arduino GPS Moos Nrog Lub Sijhawm Hauv Zos Siv NEO-6M Module: 9 Kauj Ruam

Video: Arduino GPS Moos Nrog Lub Sijhawm Hauv Zos Siv NEO-6M Module: 9 Kauj Ruam
Video: LoRa Cat Tracker - Track your Cat on Google Maps 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas thiaj tau txais lub sijhawm tam sim no los ntawm cov hnub qub siv arduino.

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
  • NEO-6M GPS Module
  • ST7789 TFT Zaub
  • Arduino Uno lossis lwm lub Rooj Tswjhwm Saib Arduino
  • Cov qhob cij
  • Jumper xov hlau
  • Visuino software: Rub tawm ntawm no

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas Arduino 5V rau GPS module VCC
  • Txuas Arduino GND rau GPS module GND
  • Txuas GPS module RX rau Arduino TX
  • Txuas GPS module TX rau Arduino RX
  • Txuas Arduino 5V rau LCD tus pin VCC
  • Txuas Arduino 5V rau LCD tus pin BLK
  • Txuas Arduino GND rau LCD tus pin GND
  • Txuas LCD tus pin SCL rau Arduino tus lej digital 13
  • Txuas LCD tus pin SDA rau Arduino tus lej digital 11
  • Txuas LCD tus pin Pib dua rau Arduino tus pin 9
  • Txuas LCD tus pin DC rau Arduino tus pin 8

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

Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Rub tawm Dawb version lossis sau npe rau Kev Sim Dawb.

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 Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  • Ntxiv "Serial GPS" tivthaiv
  • Ntxiv "Decode (Split) Date/Time" tivthaiv
  • Ntxiv "Ntxiv Hnub/Sijhawm" tivthaiv
  • Ntxiv 2X "Cov Qauv Ntawv" cov ntawv
  • Ntxiv "TFT Xim Zaub ST7735/ST7789" 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
  • Xaiv "Display1" thiab hauv cov khoom vaj khoom tsev teeb tsa Kev Taw Qhia rau goDown, Ntaus rau dtST7789_240_240
  • Ob npaug nias rau ntawm "Display1"

Hauv Elements window:

Luag "Kos Cov Ntawv" rau sab laug

Hauv cov khoom vaj khoom tsev teeb tsa Xim rau aclDarkOrange, loj li 3, Ntawv rau "GPS CLOCK", X txog 70, Y txog 20

Luag "Kos Cov Ntawv" rau sab laug

Hauv cov khoom vaj khoom tsev teeb tsa qhov loj me rau 2, Ntawv rau "Sijhawm:", Y txog 90

Luag "Text Field"

Hauv cov khoom vaj khoom tsev teeb tsa Xim rau aclTurquoise, loj li 3, X txog 70, Y txog 90

Luag "Draw Text"

Hauv cov khoom vaj huam sib luag teeb tsa me me rau 2, Ntawv rau "Hnub:", Y txog 140

Luag "Text Field"

Hauv cov khoom vaj khoom tsev teeb tsa Xim rau aclTurquoise, loj li 3, X txog 70, Y txog 140

Luag "Draw Line"

Hauv cov khoom vaj khoom tsev teeb tsa Qhov siab rau 0, Dav txog 240, Y txog 70

Luag "Kos Bitmap" rau sab laug

Nyob rau hauv lub qhov rai khoom xaiv bitmap thiab nyem rau ntawm 3 dots thiab hauv bitmap editor ntsaws cov ntaub ntawv bitmap (suav nrog ntawm no)

Nco tseg: koj tuaj yeem tau txais lwm qhov bitmaps ntawm no

  • Kaw Bitmap Editor
  • Kaw lub Elements window
  • Xaiv "FormattedText1" thiab hauv lub qhov rai vaj huam sib luag teeb cov ntawv rau%0:%1:%2
  • Ob npaug nias rau ntawm "FormattedText1" thiab hauv cov ntsiab lus qhov rai rub 3X "Text Element" mus rau sab laug

Kaw lub Elements window

  • Xaiv "FormattedText2" thiab hauv lub qhov rai vaj huam sib luag teeb cov ntawv rau%0:%1:%2
  • Ob npaug nias rau ntawm "FormattedText2" thiab hauv cov ntsiab lus qhov rai rub 3X "Text Element" mus rau sab laug

Kaw lub Elements window

Txhawm rau kho thaj tsam sijhawm xaiv "AddDateTime1" thiab hauv cov khoom vaj huam sib luag hloov sijhawm rau koj lub sijhawm, piv txwv: 2, qhov no yuav ntxiv 2h rau lub sijhawm tau txais los ntawm lub hnub qub.

Kauj Ruam 6: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas Display1 tus pin Tawm SPI rau Arduino board tus pin SPI Hauv
  • Txuas Display1 tus pin Pib dua rau Arduino board digital pin 9
  • Txuas Display1 tus pin Sau npe Xaiv rau Arduino board digital pin 8
  • Txuas GPS1 tus pin Hnub tim rau AddDateTime1 tus pin Hauv
  • Txuas AddDateTime1 tus pin Tawm rau DecodeDateTime1pin Hauv
  • Txuas GPS1 tus pin Tawm mus rau Arduino board pin Serial [0] Hauv
  • Txuas DecodeDateTime1 tus pin xyoo rau FormattedText2 tus pin Element3 Hauv
  • Txuas DecodeDateTime1 tus pin Lub Hlis rau FormattedText2 tus lej Cov Ntawv Element1 Hauv
  • Txuas DecodeDateTime1 tus pin Hnub rau FormattedText2 tus pin Element2 Hauv
  • Txuas DecodeDateTime1 tus pin Teev rau FormattedText1 tus pin Element1 Hauv
  • Txuas DecodeDateTime1 pin Minute to FormattedText1 pin Text Element2 In
  • Txuas DecodeDateTime1 tus pin Thib Ob rau FormattedText1 pin Text Element3 Hauv
  • Txuas FormattedText1 tus pin tawm mus rau Display1Text Field1 tus pin Hauv
  • Txuas FormattedText2 tus pin tawm mus rau Display1Text Field2 tus pin Hauv

Kauj Ruam 7: Ua ntej Tshaj Tawm rau Arduino

Ua ntej Uploading rau Arduino
Ua ntej Uploading rau Arduino
Ua ntej Uploading rau Arduino
Ua ntej Uploading rau Arduino
  • Ua ntej koj rub mus rau Arduino tshem tawm RX tus pin ntawm Arduino
  • Tom qab rub tawm txuas cov hlau rov qab rau Arduino tus pin RX

Kauj Ruam 8: 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 9: Ua si

Yog tias koj ua lub zog Arduino UNO module, Cov Zaub yuav pib qhia lub sijhawm thiab hnub tau txais los ntawm lub hnub qub.

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

Cov ntaub ntawv GPS-SAT-TIME.visuino (Project nrog thaj chaw hloov pauv)

Cov ntaub ntawv GPS-TIME2.visuino (Txoj haujlwm tsis hloov chaw)

Pom zoo: