Cov txheej txheem:

Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD RAU EBIKE lossis ELECTRIC MOTORCYCLE: 13 Kauj Ruam
Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD RAU EBIKE lossis ELECTRIC MOTORCYCLE: 13 Kauj Ruam

Video: Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD RAU EBIKE lossis ELECTRIC MOTORCYCLE: 13 Kauj Ruam

Video: Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD RAU EBIKE lossis ELECTRIC MOTORCYCLE: 13 Kauj Ruam
Video: Playful Kiss - Playful Kiss: Full Episode 1 (Official & HD with subtitles) 2024, Kaum ib hlis
Anonim
Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD rau EBIKE lossis ELECTRIC MOTORCYCLE
Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD rau EBIKE lossis ELECTRIC MOTORCYCLE
Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD rau EBIKE lossis ELECTRIC MOTORCYCLE
Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD rau EBIKE lossis ELECTRIC MOTORCYCLE
Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD rau EBIKE lossis ELECTRIC MOTORCYCLE
Ua Koj Tus Kheej GPS LAS DIGITAL DASHBOARD rau EBIKE lossis ELECTRIC MOTORCYCLE

HI SAWV DAWS

Lub sijhawm no kuv tuaj nrog cov lus qhia tshiab qhia txog ob qho tib si tso saib ib leeg ib yam li cov logger siv arduino mega 2560 thiab Nextion Lcd displayAnd rau taug qab lub hom phiaj koj kuj tseem tuaj yeem teev NMEA kab lus ntawm Gps hauv sdcardand ntawm chav kawm yog ua tiav nrog cov duab kos duab zoo nkauj software VISUINO. Ntau qhov ntsuas ntawm cov ntaub ntawv tuaj yeem nthuav tawm ntawm Lcd raws li tus neeg siv yuav tsum tau tab sis kuv yuav qhia koj qhov tseem ceeb.further cov ntaub ntawv tuaj yeem raug rho tawm los ntawm cov ntaub ntawv GPS nyoos los ntawm Visuino.log cov ntaub ntawv tsim tawm tuaj yeem siv txuas ntxiv mus taug qab hauv google daim ntawv qhia, google ntiaj teb.

Kuv xav rov ua tsaug rau Boian Mitov rau kev pab kuv txuas xov tooj thiab sau cov lus qhia no.

Kuv tau hloov kho cov lus qhia los ntawm kev ntxiv ib qho ntxiv lcd interface nrog rau txhua cov ntaub ntawv nessary.

Kauj ruam 1: QHOV TSEEB

QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
    1. Ib Arduino Mega 2560 board (Koj yuav xav tau lub rooj tsav xwm nrog tsawg kawg 2 Serial chaw nres nkoj, nyiam dua 3 yog li Mega yog ib qho kev xaiv zoo tshaj plaws)
    2. Ib qho MicroSD Card module (SPI interface)
    3. Ib Serial GPS Module
    4. Ib Nextion Serial 2.8 nti nx3224t028_011Display (Kuv siv tab sis lwm qhov Nextion Display yuav tsum ua haujlwm)
    5. Daim npav SD ntawm lub peev xwm tsawg dua 32gb thiab nws lub adapter siv nrog Nextion Display
    6. Daim npav SD thib ob ntawm lub peev xwm tsawg dua 32gb
    7. 4 Poj niam-Poj niam jumper xov hlau los ua qhov program Display
    8. Koj kuj tseem yuav xav tau 5V USB rau TTL Serial Converter Module los teeb tsa lub Zaub
    9. Ob peb jumper xov hlau los txuas cov khoom ua ke

Kauj ruam 2: Txuas Nextion Display rau USB Serial Communication Module

Txuas Nextion Display rau USB Serial Communication Module
Txuas Nextion Display rau USB Serial Communication Module
Txuas Nextion Display rau USB Serial Communication Module
Txuas Nextion Display rau USB Serial Communication Module

Txhawm rau program Nextion Display nrog Nextion Editor koj yuav tsum txuas nws nrog USB rau TTL Serial Converter rau koj lub khoos phis tawj:

  1. Txuas Cov Txuas Txuas Txuas Txuas mus rau Zaub (Duab 1)
  2. Yog tias koj lub USB rau Serial Module tuaj yeem teeb tsa tau, xyuas kom tseeb tias nws tau teeb tsa kom muab 5V lub zog (Daim duab 2) (Hauv kuv qhov xwm txheej kuv xav tau teeb tsa nws nrog lub hwj chim xaiv jumper)
  3. Txuas Cov Av Hauv Hlau (Cov xaim dub) los ntawm Nextion Zaub rau hauv av tus pin ntawm USB rau TTL Serial Converter Module (Daim Duab 2)
  4. Txuas Lub Hwj Huam (+5V) Hlau (Liab hlau) los ntawm Nextion Zaub rau Lub Hwj Chim (VCC/+5V) tus pin ntawm USB rau TTL Serial Converter Module (Duab 2)
  5. Txuas RX Hlau (Cov xaim daj) los ntawm Nextion Zaub rau TX tus pin ntawm USB rau TTL Serial Converter Module (Duab 2)
  6. Txuas TX Hlau (Xiav Hlau) los ntawm Nextion Display rau RX tus pin ntawm USB rau TTL Serial Converter Module (Duab 2)
  7. Txuas lub USB rau TTL Serial Converter Module rau lub khoos phis tawj nrog USB cable

Kauj Ruam 3: Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia

Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia
Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia
Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia
Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia
Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia
Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia
Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia
Pib Nextion Editor, thiab Xaiv Hom Zaub thiab Kev Taw Qhia

Txhawm rau ua haujlwm Nextion Display, koj yuav tsum rub tawm thiab teeb tsa Nextion Editor.

  1. Pib Nextion Editor
  2. Los ntawm Cov Ntawv Qhia Xaiv | Cov Ntaub Ntawv | Tshiab |
  3. Hauv qhov "Txuag Raws Li" kev sib tham, ntaus lub npe project cov ntaub ntawv, thiab xaiv qhov chaw kom txuag txoj haujlwm
  4. Nyem rau ntawm "Txuag" khawm
  5. Hauv qhov "Settings" dialog, xaiv Hom Zaub
  6. Nyem rau ntawm "DISPLAY" tab ntawm sab laug kom pom Cov Zaub teeb tsa
  7. Xaiv Kab rov tav rau cov zaub
  8. Nyem rau ntawm "OK" khawm kom kaw qhov kev sib tham

Kauj Ruam 4: Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau

Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau
Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau
Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau
Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau
Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau
Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau
Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau
Hauv Nextion Editor: Ntxiv thiab Kho Kho Cov Ntawv Sau
  1. *xyuas kom tseeb tias koj muaj FAT32 formatted sdcard kom paub tseeb tias koj tau tsim cov font txwv tsis pub Nextion tus kws kho mob yuav qhia yuam kev hauv kev suav sau.
  2. Koj YUAV TSUM DOWNLOAD (images.png) QHOV TSEEB NTAWM NO XAUS NTAWV GPS INFOMATION PARAMETER. (LATITUDE, LONGITUDE)

Tam sim no ua raws cov kauj ruam no

  1. NYEM qhov project tshiab
  2. npe nws li visuino
  3. Hloov mus rau lub cuab yeej tab thiab xaiv nx3224t028_011 zaub, 90 kab rov tav, cim tus cim ascii, thaj chaw tso saib yuav muaj qhov dawb 320*240 kho qhov screen.

Tam sim no peb tau tsim fonts:

  1. Los ntawm cov ntawv qhia zaub mov xaiv | Cuab Yeej | Font generator |
  2. ua raws tus wizard thiab xaiv cov font tsim.

Tom ntej no peb yuav ntxiv daim duab:

  1. Tam sim no hauv cov ntawv txuas ntxiv ntxiv cov ntawv ntsa no hauv daim duab qhov rai (sab laug hauv qab lub qhov rai) los ntawm txhaj rau + khawm.
  2. Hauv lub qhov rai tso saib lub vijtsam dawb yuav tshwm, tam sim no nyem rau ntawm nws lub rooj ua haujlwm (sab xis sab hauv qab lub qhov rai) nyem rau ntawm sta-> xaiv duab pic-> ob npaug nyem-> xaiv daim duab
  3. qhov no yuav raug siv ua keeb kwm yav dhau los ntawm Lcd interface.

Tsim qhov Nextion screen:

  1. Tam sim no los ntawm lub cuab yeej qhov rai: nyem rau ntawm kab ntawv tivthaiv-> t0 cov ntawv tshiab yuav tshwm ntawm lub vijtsam zaub-> rub hla thaj chaw xav tau ua ntej ntawm kab ntawv kab lus
  2. tam sim no nyem rau ntawm nws cov lus ua piv txwv sta-> qoob loo duab picc-> ob npaug nyem-> xaiv daim duab 0 pco-> xaiv xim dub txt-> x
  3. Zoo ib yam rov ua cov txheej txheem ntawm kev ntxiv plaub ntu ntxiv cov ntawv t1, t2. hloov lawv ib qho hauv qab no los ntawm dragg ing lawv ntawm qhov screen. Ntim no koj yuav tsum ntxiv 4 cov ntawv sib xyaw ua ke kom pom ntev, nrawm, tus lej ntawm hnub qub, hnub tim thiab sijhawm.
  4. zoo ib yam los ntawm kev rov ua cov txheej txheem saum toj no

Tsim thiab xa cov ntawv mus rau Nextion SDCard:

  1. Nyem rau ntawm kev suav tab (qhov no yuav tsim cov ntaub ntawv tft) Koj tseem tuaj yeem debug lossis khiav qhov no hauv kev sim los ntawm txhaj rau debug tab, lub qhov rai tshiab yuav tshwm sim. nyob rau hauv "kev qhia chaw" window nkag mus-> t0.txt = "555" qhov no yuav ua rau x-> 555 ntawm cov vijtsam nyem Nyem rau ntawm file-> qhib tsim nplaub tshev-> luam daim visuino tft no rau hauv fat32 formatted sdcard.
  2. Ntxig daim sdcard no mus rau Nextion lcd thiab qhib nws.
  3. Tom qab ua tiav qhov hloov tshiab.power nws tawm ces tshem tawm sdcard thiab rov ua haujlwm dua.
  4. Tam sim no koj yuav pom koj qhov txuas ntxiv EDITOR INTERFACE ntawm LCD.
  5. koj tuaj yeem ncaj qha hloov visuino tft cov ntaub ntawv txuas ntawm no rau sdcard.
  6. lossis mus rau hauv cov kauj ruam tom ntej kom hloov pauv qhov haujlwm ntawm ftdi usb module.

Kauj Ruam 5: Hauv Tus Thawj Saib Xyuas Tom Ntej: Tshaj Tawm Txoj Haujlwm rau Nextion Zaub

  1. Nyem rau ntawm "Upload" khawm
  2. Hauv qhov "Upload rau Nextion Device" sib tham, nyem rau ntawm "Mus" khawm kom pib rub tawm
  3. Thaum qhov upload tiav, nyem rau ntawm "Exit" khawm kom kaw qhov kev sib tham.

Kauj Ruam 6: HARDWARE CONNECTIONS

HARDWARE CONNECTIONS
HARDWARE CONNECTIONS
  • BETWEEN MEGA THIAB NEXTION
  • Peb YUAV TSUM siv PORTIAL PORT1
  • PIN18 TX1 NTAWM MEGA RAU RX NTXIV
  • PIN19 RX1 NTAWM MEGA TO TXOG NTAWM NEXTION
  • VCC rau VCC THIAB GND rau GND

BETWEEN SDCARD THIAB MEGA

  • CS NTAWM SDCARD RAU PIN53
  • SCK NTAWM SDCARD RAU PIN52
  • MOSI NTAWM SDCARD RAU PIN51
  • MISO NTAWM SDACRD RAU PIN50
  • VCC to CSY
  • NCO to GND

BETWEEN GPS THIAB MEGA

  • TX OF GPS to RX2 PIN17 OF MEGA
  • VCC to CSY
  • NCO to GND
  • Peb YUAV TSUM siv SERIAL2

Kauj Ruam 7: Pib Visuino, thiab Xaiv Arduino Board Type

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

Txij li Arduino MEGA muaj plaub qhov chaw nres nkoj, thiab nws xav tau los ua haujlwm rau Arduino, koj yuav xav tau program Arduino MEGA yog li tso tawm serial0 rau kev ua haujlwm.

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

Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Tutorial no yuav tsis ua haujlwm

Visuino: https://www.visuino.com kuj tseem yuav tsum tau teeb tsa.

  1. Pib Visuino raws li qhia hauv daim duab thawj
  2. Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim duab 1) hauv Visuino
  3. Thaum cov lus sib tham tshwm, xaiv Arduino MEGA raws li qhia hauv daim duab 2

Kauj Ruam 8: Ntxiv GPS QHOV TSEEB thiab NEXTION DISPLAY hauv VISUINO

NTAWV QHIA GPS QHOV TSEEB thiab NEXTION DISPLAY IN VISUINO
NTAWV QHIA GPS QHOV TSEEB thiab NEXTION DISPLAY IN VISUINO
NTAWV QHIA GPS QHOV TSEEB thiab NEXTION DISPLAY IN VISUINO
NTAWV QHIA GPS QHOV TSEEB thiab NEXTION DISPLAY IN VISUINO
NTAWV QHIA GPS QHOV TSEEB thiab NEXTION DISPLAY IN VISUINO
NTAWV QHIA GPS QHOV TSEEB thiab NEXTION DISPLAY IN VISUINO
NTAWV QHIA GPS QHOV TSEEB thiab NEXTION DISPLAY IN VISUINO
NTAWV QHIA GPS QHOV TSEEB thiab NEXTION DISPLAY IN VISUINO
  1. Ntaus "GPS" hauv Lub Lim Lim ntawm Lub Cuab Yeej Cuab Yeej ntawd xaiv "Serial GPS" tivthaiv (Daim duab 1), thiab tso rau hauv qhov tsim
  2. Txuas tus "Tawm" tus pin ntawm GPS1 tivthaiv mus rau "Hauv" tus pin ntawm "Serial [2]" ntawm Arduino MEGA tivthaiv
  3. Ntaus "tom ntej" hauv lub thawv Lim ntawm Cov Ntawv Cuab Yeej Cuab Yeej ces xaiv "Nextion Display" tivthaiv, thiab tso nws rau hauv thaj chaw tsim
  4. Txuas tus "Tawm" tus pin ntawm tus tivthaiv mus rau "Hauv" tus pin ntawm "Serial [1]" ntawm Arduino MEGA tivthaiv

Kauj Ruam 9: Ntxiv VISUINO COMPONENTS: MICRO SDCARD CONFIGURATION

Ntxiv VISUINO COMPONENTS: MICRO SDCARD CONFIGURATION
Ntxiv VISUINO COMPONENTS: MICRO SDCARD CONFIGURATION
Ntxiv VISUINO COMPONENTS: MICRO SDCARD CONFIGURATION
Ntxiv VISUINO COMPONENTS: MICRO SDCARD CONFIGURATION

Ua ntej peb yuav tsum tau ntxiv thiab txuas MicroSD Component hauv Visuino los tswj hwm MicroSD Module:

  1. Ntaus "sd" hauv lub thawv Lim ntawm Cov Ntawv Cuab Yeej Cuab Yeej ces xaiv "Micro SD Card Module" tivthaiv (Daim duab 1), thiab tso rau hauv qhov tsim
  2. Txuas tus "Tawm" tus pin ntawm SDCard1 tivthaiv mus rau "Hauv" tus pin ntawm "SPI" channel ntawm Arduino tivthaiv (Daim duab 2)
  3. Txuas "ChipSelect" tus pin tso tawm ntawm SDCard1 tivthaiv rau "Digital" tus lej nkag ntawm "Digital [53]" channel ntawm Arduino Mega 2506 tivthaiv (Daim duab 3)

Txhawm rau sau cov ntaub ntawv peb xav tau ntxiv Cov Ntaub Ntawv rau MicroSD tivthaiv thiab qhia nws lub npe ntaub ntawv:

  1. Nyem rau ntawm "Cov cuab yeej" khawm ntawm SDCard1 tivthaiv (Daim duab 1)
  2. Hauv "Elements" editor xaiv lub "File" element hauv lub qhov rai uas raug, thiab tom qab ntawd nyem rau "+" khawm ntawm sab laug (Daim duab 2) ntxiv cov ntaub ntawv
  3. Hauv Tus Kws Tshuaj Ntsuam Xyuas teeb tsa tus nqi ntawm "Lub Npe Txoj Kev" cov cuab yeej ntawm File1 Element rau "GPSLog.txt6"

Kauj Ruam 10: teeb tsa Cov Lus Qhia Ntxiv thiab GPS

KEV ZOO TSHAJ PLAWS ZOO TSHAJ PLAWS thiab GPS
KEV ZOO TSHAJ PLAWS ZOO TSHAJ PLAWS thiab GPS
KEV ZOO TSHAJ PLAWS ZOO TSHAJ PLAWS thiab GPS
KEV ZOO TSHAJ PLAWS ZOO TSHAJ PLAWS thiab GPS
  1. Ob npaug nyem rau ntawm cov lus pom tom ntej, cov ntsiab lus editor yuav tshwm sim
  2. Ntxiv "Text" element
  3. Xaiv cov khoom tshiab ntxiv
  4. tam sim no nyob rau hauv cov khoom tab npe nws li "t0".
  5. Txuas cov ntawv sau no rau latitude ntawm gps module.

Ib yam li ntxiv cov ntawv txuas ntxiv, hloov nws li "t1" thiab txuas nws mus rau qhov ntev ntawm gps module.

Zoo sib xws ntxiv cov ntawv sau rau nrawm, tus lej ntawm lub hnub qub, hnub tim thiab sijhawm thiab daim ntawv qhia nws rau gps module. Lub npe tom qab ntawd "t2", "t3", thiab lwm yam nrog cov lej ntxiv, kom phim cov npe ntawm Nextion cov khoom teeb tsa hauv Nextion Editor.

Kauj Ruam 11: Kho Sdcard thiab Cov Ntawv Sib Piv Cov Qauv

Kev teeb tsa Sdcard thiab Cov Ntawv Sib Piv Cov Qauv
Kev teeb tsa Sdcard thiab Cov Ntawv Sib Piv Cov Qauv
Kev teeb tsa Sdcard thiab Cov Ntawv Sib Piv Cov Qauv
Kev teeb tsa Sdcard thiab Cov Ntawv Sib Piv Cov Qauv
Kev teeb tsa Sdcard thiab Cov Ntawv Sib Piv Cov Qauv
Kev teeb tsa Sdcard thiab Cov Ntawv Sib Piv Cov Qauv
Kev teeb tsa Sdcard thiab Cov Ntawv Sib Piv Cov Qauv
Kev teeb tsa Sdcard thiab Cov Ntawv Sib Piv Cov Qauv
  1. Ntaus "daim ntawv" hauv Lub Lim Lim ntawm Cov Ntawv Cuab Yeej Cuab Yeej ces xaiv "Cov Ntawv Sib Koom" (Daim Duab 1), thiab tso rau hauv qhov tsim
  2. Ob npaug nias rau ntawm FormattedText1 tivthaiv los qhib cov ntawv kho (ntsiab lus 2)
  3. Hauv Elements Editor ntxiv ob lub ntsiab lus "Analog element" (Daim duab 2)
  4. Txuas "Analog Element1" rau latitude
  5. Txuas "Analog element2" mus rau qhov ntev
  6. Txuas tus "Tawm" tus pin ntawm FormattedText1 tivthaiv rau "Hauv" ntawm sdcard1 tivthaiv (Daim duab 3)
  7. Txuas tus "Tawm" tus pin ntawm SDCard1 tivthaiv rau "Hauv" tus pin ntawm "SDI" channel ntawm Arduino MEGA tivthaiv (Daim duab 4)

Kauj Ruam 12: Tshaj Tawm Txoj Cai rau Mega Board

Upload Code rau Mega Board
Upload Code rau Mega Board
Upload Code rau Mega Board
Upload Code rau Mega Board
  1. Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE
  2. Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj Ruam 13: Nyob Ua Ke

Nyob Ua
Nyob Ua
Nyob Ua
Nyob Ua
Nyob Ua
Nyob Ua

thov coj teeb tsa hauv cheeb tsam qhib kom tau txais Gps kho

thaum koj tau txais gps kho txhua cov ntaub ntawv yuav raug tso tawm thiab nkag mus.

coj sdcard tawm thiab tshawb xyuas yog tias tsim cov ntaub ntawv gpstxt6.

Pom zoo: