Cov txheej txheem:

Ua GPS BORDER BOUNDARIES Siv Arduino: 8 Kauj Ruam
Ua GPS BORDER BOUNDARIES Siv Arduino: 8 Kauj Ruam

Video: Ua GPS BORDER BOUNDARIES Siv Arduino: 8 Kauj Ruam

Video: Ua GPS BORDER BOUNDARIES Siv Arduino: 8 Kauj Ruam
Video: Border Alert System for fishermen usning GPS 2024, Kaum ib hlis
Anonim
Ua GPS BORDER BOUNDARIES Siv Arduino
Ua GPS BORDER BOUNDARIES Siv Arduino

Hauv qhov kev qhia no peb yuav kawm paub yuav ua GPS BORDER BOUNDARIES siv Arduino li cas, qhov no muaj txiaj ntsig thaum koj muaj neeg hlau thiab koj tsis xav kom nws tawm sab nraud thaj chaw tshwj xeeb.

Thaum tus neeg hlau nyob sab nraum thaj chaw, cov zaub yuav pom "Sab Nraud" thiab "Sab Hauv" thaum tus neeg hlau nyob sab hauv.

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)
  • GPS Neo 6m
  • OLED Zaub
  • Jumper xov hlau
  • Visuino software: Rub tawm Visuino

Kauj Ruam 2: 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 3: 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
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  • Ntxiv "Serial GPS" tivthaiv
  • Ntxiv "Analog Multi Source" tivthaiv
  • Ntxiv lwm qhov "Analog Multi Source" tivthaiv
  • Ntxiv "Digital Multi-Source Merger" tivthaiv
  • Ntxiv "Ntug Ntug" tivthaiv
  • Ntxiv lwm qhov "Txheeb Ntug Ntug" ntu
  • Ntxiv "Digital (Boolean) Thiab" tivthaiv
  • Ntxiv "Text Value" tivthaiv
  • Ntxiv lwm qhov "Text Value" tivthaiv
  • Ntxiv "Analog To Text" tivthaiv
  • Ntxiv lwm qhov "Analog To Text" tivthaiv
  • Ntxiv "Text Multi-Source Merger" tivthaiv

Kauj Ruam 4: 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 "AnalogToText1" thiab "AnalogToText2" thiab hauv cov khoom qhov rai teeb tsa "Precision" rau 6
  • Xaiv "DetectEdge1" thiab hauv cov khoom qhov rai teeb tsa Rising rau cuav
  • Xaiv "TextValue1" thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau sab hauv
  • Xaiv "TextValue2" thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau sab nraud
  • Ob npaug nias rau ntawm DisplayOLED1 thiab hauv lub qhov rai ntsiab lus rub "kab ntawv" mus rau sab laug
  • Hauv cov khoom qhov rai teeb tsa me me rau 2
  • Hauv Elements window Drag lwm "Text Field" mus rau sab laug
  • Hauv cov khoom vaj khoom tsev teeb tsa Y rau 30 thiab loj me rau 2
  • Hauv Elements window Drag lwm "Text Field" mus rau sab laug
  • Hauv cov khoom vaj khoom tsev teeb tsa Y rau 50 thiab loj me rau 2
  • Kaw lub Elements window

Kauj ruam 5: Tau GPS Coordinates

Tau GPS Coordinates
Tau GPS Coordinates
Tau GPS Coordinates
Tau GPS Coordinates
Tau GPS Coordinates
Tau GPS Coordinates

Mus rau Google maps thiab nrhiav koj qhov chaw nyob thiab

Nyem rau ntawm daim duab qhia chaw (kaum sab laug ntawm koj cheeb tsam), qhov chaw nyob yuav pom nyob hauv qab. Luam thawj qhov kev sib koom tes Latitude mus rau Visuino "CompareRange1"> Range> MaxCopy thib ob sib koom Longitude rau Visuino "CompareRange2"> Range> MIn

  • Nyem rau ntawm daim duab qhia chaw (kaum sab xis ntawm koj thaj tsam), qhov chaw nyob yuav pom nyob hauv qab.
  • Nyem rau ntawm daim duab qhia chaw (nyob rau sab laug ntawm koj thaj tsam), qhov chaw ua haujlwm yuav pom nyob hauv qab.

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 GPS tus pin Tawm rau Arduino Serial [0] tus pin Hauv
  • Txuas GPS tus pin latitude rau AnalogMultiSource1 tus pin Hauv
  • Txuas GPS tus lej ntev mus rau AnalogMultiSource2 tus pin Hauv
  • Txuas AnalogMultiSource1 tus pin tawm mus rau AnalogToText1 tus pin Hauv
  • Txuas AnalogMultiSource2 tus pin tawm mus rau AnalogToText2 tus pin Hauv
  • Txuas AnalogMultiSource1 tus pin tawm los sib piv Range1 tus pin Hauv
  • Txuas AnalogMultiSource2 tus pin tawm los sib piv Range2 tus pin Hauv
  • Txuas CompareRange1 tus pin tawm mus rau "And1", tus pin 0 Hauv
  • Txuas Sib Piv Range2 tus pin tawm mus rau "And1", tus pin 1 Hauv
  • Txuas CompareRange1 tus pin tawm rau DigitalMultiMerger1, tus pin 0 Hauv
  • Txuas Sib Piv Range2 tus pin tawm rau DigitalMultiMerger1, tus pin 1 Hauv
  • Txuas DigitalMultiMerger1, pin Out to DetectEdge1 pin In
  • Txuas DetectEdge1 tus pin Tawm rau TextValue2 tus pin moos
  • Txuas "And1" tus pin tawm mus rau DetectEdge2 tus pin In
  • Txuas DetectEdge2 tus pin tawm rau TextValue1 tus pin moos
  • Txuas "TextValue" 1, pin out, rau TextMultiMerger1 tus pin [0] hauv
  • Txuas "TextValue" 2, pin out, rau TextMultiMerger1 tus pin [1] hauv
  • Txuas TextMultiMerger1 tus pin tawm mus rau DisplayOLED1 cov ntawv teb 1 tus pin Hauv
  • Txuas AnalogToText1 tus pin tawm rau DisplayOLED1 cov ntawv teb 2 tus pin Hauv
  • Txuas AnalogToText2 tus pin tawm rau DisplayOLED1 cov ntawv teb 3 tus pin Hauv
  • Txuas DisplayOLED1 tus pin I2C Tawm rau Arduino tus pin I2C Hauv

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

Tseem ceeb

Thaum rub mus rau Arduino tshem tawm tus pin RX ntawm Arduino thiab tom qab rub tawm tiav ua txuas nws rov qab.

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 module, tom qab ib ntus (thaum NEO 6m ntsuas ntsuas), cov zaub yuav pib qhia GPS ua haujlwm thiab ntawv: INSIDE/OUTSIDE.

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:

Pom zoo: