Cov txheej txheem:

GPS Speedometer: 4 Kauj Ruam (nrog Duab)
GPS Speedometer: 4 Kauj Ruam (nrog Duab)

Video: GPS Speedometer: 4 Kauj Ruam (nrog Duab)

Video: GPS Speedometer: 4 Kauj Ruam (nrog Duab)
Video: Arduino GPS Speedometer | OLED Display 2024, Kaum ib hlis
Anonim

Los ntawm TiobelCheck kuj yog kuv Youtube Channel Ua raws ntau los ntawm tus sau:

Teeb Pom Kev Yooj Yim Siv Fusion 360 thiab Laser Cutter
Teeb Pom Kev Yooj Yim Siv Fusion 360 thiab Laser Cutter
Lub Teeb Yooj Yim Yooj Yim Siv Fusion 360 thiab Laser Cutter
Lub Teeb Yooj Yim Yooj Yim Siv Fusion 360 thiab Laser Cutter
Pib Nrog 0.5
Pib Nrog 0.5
Pib Nrog 0.5
Pib Nrog 0.5
Pib Nrog Capacitive Touch Kit
Pib Nrog Capacitive Touch Kit
Pib Nrog Capacitive Touch Kit
Pib Nrog Capacitive Touch Kit

Txog: Kuv nyiam ua tej yam, tshwj xeeb yog tias lawv txav tau. Xav paub ntau ntxiv txog Tiobel »

Kuv lub tuam txhab tsheb uas kuv ib txwm tsav tsheb muaj teeb meem "me me" los ntawm lub sijhawm, lub ntsuas hluav taws xob poob mus rau 0 Km/h thaum tsav tsheb (tom qab qee lub sijhawm nws rov pib dua).

Feem ntau qhov no tsis yog qhov teeb meem loj vim tias yog koj paub tsav tsheb, koj tsis yog, Kuv vam tias, ib txwm saib mus rau lub ntsuas hluav taws xob. Tam sim no koj ntau dua lossis tsawg dua qhov uas koj tab tom tsav tsheb. Qhov teeb meem nthuav tawm nws tus kheej thaum koj xav tau kom txo nrawm rau txoj kev txwv uas koj tab tom nkag mus thiab koj pom tias "lub ntsuas hluav taws xob poob qis".

Qhov no nthuav tawm zoo li lub sijhawm zoo los tsim txoj haujlwm tshiab, "GPS Speedometer". Tau kawg qhov kev daws teeb meem zoo tshaj plaws yuav kho lub tsheb tiag tiag lossis siv GPS ib txwm muaj lossis siv ib qho app nrog txoj haujlwm no tab sis dab tsi yuav yog kev lom zem hauv qhov no:)

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam

Microcontroller

Kuv xaiv theDFRobot Dreamer Nano V4.1 vim tias nws muaj lub ntsaws usb uas kuv tuaj yeem siv tau rau lub hwj chim thiab cov khoom sib txuas ua ke pinout.

Txheeb xyuas DFRobot nplooj ntawv wiki rau cov ntaub ntawv ntau ntxiv hais txog lub microcontroller no

GPS

Kuv tab tom siv UBX-G7020-KT, uas los nrog lub kav hlau txais xov sib xyaw thiab tso cai hloov pauv tus nqi kom txog thaum 10Hz (rau qhov haujlwm no qhov tshwj xeeb no tuaj yeem ua tau hauv tes).

Ntawm nplooj ntawv DFRobot wiki koj yuav pom ntau cov ntaub ntawv hais txog nws.

Zaub

Kuv xav kom muaj cov zaub zoo yam tsis tau "tshuab" pob nyiaj siv, kuv xaiv yog OLED 2828 Display Module. Txheeb xyuas dua ntawm nplooj ntawv wiki rau qee cov ntaub ntawv ntxiv.

Fais fab

Lub zog rau lub kaw lus yuav muab los ntawm lub tsheb luam yeeb lub qhov (socket).

Casing

Lub sij hawm no kuv thaum tsim lub casing thiab luam ntawv 3D nws.

Kauj Ruam 2: Txuas Cov Khoom Siv

Txuas cov Cheebtsam
Txuas cov Cheebtsam
Txuas cov Cheebtsam
Txuas cov Cheebtsam
Txuas cov Cheebtsam
Txuas cov Cheebtsam

Kev tsim qauv nrog LED's tsis yog kuv thawj qhov kev xaiv. Yog li thaum pib kuv tsim cov qauv tsis muaj LED's

Tab sis thaum kawg kuv ntxiv 10 LED (7 Ntsuab thiab 3 Liab lub).

Kuv tsis nco qab coj qee cov duab ntawm cov txheej txheem sib dhos, yog li kuv tuaj yeem hais tau yog tias txhua yam tau sib sau ua ke hauv cov ntawv ua ntej, nyob rau ib sab yog cov duab pom thiab lwm qhov microcontroller thiab kev sib txuas. Txhawm rau ua qhov yooj yim no tawm ntawm cov duab oled rau zaum kawg txij li qee qhov kev sib txuas yuav ua tiav ntawm nws nraub qaum.

Kauj ruam 3: Code

Txhawm rau khiav cov cai koj yuav tsum tau teeb tsa lub tsev qiv ntawv hauv qab no hauv koj li Arduino Library Folder.

U8glib - Rau cov zaub oled.

TinyGps ++ - Rau GPS.

Txoj cai yog "luam tawm" qhov nrawm, chav kawm, tus lej ntawm lub hnub qub, latitude thiab longitude ntev.

Tab sis nws muaj peev xwm nthuav tawm cov ntaub ntawv ntau ntxiv, piv txwv li: sijhawm, hnub tim, nrug mus rau qhov… Txheeb tag nrho piv txwv ntawm TinyGPS ++ lub tsev qiv ntawv kom pom txhua qhov kev xaiv uas koj tuaj yeem muaj txog cov ntaub ntawv khaws los ntawm GPS.

Lwm qhov tshwj xeeb yog LED's bar. Kuv tau teeb nws rau qhov max. ntawm 190Km/h. Kuv nyob hauv Tebchaws Yelemees thiab qee txoj kev loj tsis muaj kev txwv, yog tias tsis yog, Kuv yuav tso +/- txoj kev txwv ntau tshaj plaws muaj. Tsuas yog hloov qhov txwv hauv "daim ntawv qhia" ua haujlwm rau qhov uas haum rau koj xav tau.

Kauj Ruam 4: Xaus

Xaus
Xaus
Xaus
Xaus

Kuv tseem yog tus tshiab hauv lo lus 3D luam ntawv, yog li nws yog ib qho uas kuv luam tawm tsis tuaj zoo meej:)

Feem ntau kuv tsis tuaj yeem yws tab sis kuv tseem muaj ntau yam los txhim kho ntawm thaj chaw no. Cov phaj rov qab tam sim no tsis tau kho kom zoo li thaum pib, yog li yuav xav tau qee qhov kev hloov kho tshiab ntxiv.

Tsis tas li kuv tau tawm GPS tus kav hlau txais xov hauv qab phaj, yam uas kuv yuav tsis ua hauv kev tsim qauv tom ntej. Cov chav kawm qhia kuj tsis ua haujlwm zoo, tab sis qhov no tsuas yog nthuav dav me ntsis. Yav tom ntej kuv tab tom npaj yuav hloov nrog qee yam muaj txiaj ntsig ntau dua, piv txwv li: lub sijhawm tuaj txog ntawm qhov chaw (qhov loj me feem ntau ntawm kuv kev mus ncig yuav rov qab thiab mus tom ntej).

Tsis pub dawb los tawm tswv yim lossis xa lus rau kuv yog tias koj pom ib qho yuam kev lossis yog tias koj muaj lus pom/txhim kho lossis lus nug.

"Tsis txhob poob siab, ua ib yam dab tsi".

PS: Yog tias koj nyiam txoj haujlwm no, tsis txhob hnov qab tso koj cov ntawv pov npav rau qhov kev sib tw uas kuv tab tom khiav.

Pom zoo: