Founding: Make GPS BORDER BOUNDARIES Using Arduino

In this instructor we will memorize how to name a GPS Butt against BOUNDARIES using Arduino, this is useful when you have a automaton and you dont want it to go outside the mere area.

When the robot is alfresco the area, the display will display "Outside" and "Inside" when the robot is inside the region.

Look out the television!

Step 1: What You Will Ask

  • Arduino UNO (or any other Arduino)
  • GPS Neo 6m
  • OLED Display
  • Jumper wires
  • Visuino software: Download Visuino

Step 2: The Circuit

  • Unite Arduino 5V to GPS faculty VCC
  • Connect Arduino GND to GPS mental faculty GND
  • Connect GPS module RX to Arduino TX
  • Get in touch GPS module TX to Arduino RX
  • Connect Arduino 5V to OLED pin VCC
  • Connect Arduino GND to OLED flag GND
  • Connect Arduino SCL to OLED pin SCL
  • Connect Arduino SDA to OLED PIN number SDA

Step 3: Start Visuino, and Prize the Arduino UNO Display panel Type

The Visuino: https://World Wide Web.visuino.eu also needs to be installed. Download Free version Beaver State register for a Free Trial.

Bulge Visuino every bit shown in the first word-painting Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

Step 4: In Visuino Add Components

  • Sum "Serial GPS" component
  • Add "Analogue Multi Beginning" component
  • Add another "Parallel Multi Source" component
  • Add "Digital Multi-Source Merger" factor
  • Total "Detect Edge" constituent
  • Hyperkinetic syndrome other "Detect Edge" component
  • MBD "Digital (Boolean) And" constituent
  • Add "Text Value" component
  • Add another "Textbook Value" component
  • Add "Analog To Text edition" component
  • Add another "Analog To Textbook" component
  • Add "Textual matter Multi-Source Merger" component

Step 5: In Visuino Set Components

  • Select "AnalogToText1" and "AnalogToText2" and in the properties windowpane set ahead "Preciseness" to 6
  • Select "DetectEdge1" and in the properties window prepare Rising to False
  • Select "TextValue1" and in the properties window set "Value" to INSIDE
  • Select "TextValue2" and in the properties window set "Value" to OUTSIDE
  • Double click on the DisplayOLED1 and in the elements window drag "text edition field" to the nigh lateral
  • In the properties window prepare size to 2
  • In the Elements window Drag another "Text Field" to the left-wing side
  • In the properties window set Y to 30 and size to 2
  • In the Elements window Drag another "Text Field" to the left side
  • In the properties window set Y to 50 and size to 2
  • Penny-pinching the Elements windowpane

Step 6: Get GPS Coordinates

Attend Google maps and find out your localisation and

  • Click on the map (upper left corner of your Country ), the coordinates will be shown at the fathom.
    Copy first organize Latitude to the Visuino "CompareRange1" > Range > Max
    Copy second coordinate Longitude to the Visuino "CompareRange2" > Range > MIn
  • Click on the map (upper right corner of your Orbit ), the coordinates will be shown at the hindquarters.
    Transcript second coordinate Longitude to the Visuino "CompareRange2" > Range > Max
  • Tick on the map (down left tree of your Area ), the coordinates will be shown at the bottom.
    Simulate first coordinate Latitude to the Visuino "CompareRange1" > Range > Min

Step 7: In Visuino Join Components

  • Connect GPS tholepin Out to Arduino Serial[0] oarlock In
  • Connect GPS pivot latitude to AnalogMultiSource1 pin In
  • Connect GPS pin longitude to AnalogMultiSource2 pin In
  • Connect AnalogMultiSource1 pin Impermissible to AnalogToText1 pin In
  • Connect AnalogMultiSource2 pin Out to AnalogToText2 pin In
  • Connect AnalogMultiSource1 pivot Tabu to CompareRange1 pin In
  • Connect AnalogMultiSource2 immobilize Bent CompareRange2 pin In
  • Join CompareRange1 pin Dead set "And1", pin 0 In
  • Connect CompareRange2 pin Out to "And1", pin 1 In
  • Connect CompareRange1 pin Resolute DigitalMultiMerger1, immobilise 0 In
  • Connect CompareRange2 pin Out to DigitalMultiMerger1, pin 1 In
  • Connect DigitalMultiMerger1, PIN number Out to DetectEdge1 fall In
  • Connect DetectEdge1 immobilise Dead set TextValue2 pin clock
  • Connect "And1" stick knocked out to DetectEdge2 pin In
  • Connect DetectEdge2 bowling pin bent TextValue1 pin clock
  • Connect "TextValue"1, pin out, to TextMultiMerger1 pin [0] in
  • Connect "TextValue"2, pin verboten, to TextMultiMerger1 pin [1] in
  • Connect TextMultiMerger1 pin Bent DisplayOLED1 text field1 immobilise In
  • Touch base AnalogToText1 pin Bent DisplayOLED1 school tex field2 pin In
  • Join AnalogToText2 pin Out to DisplayOLED1 schoolbook field3 pin In
  • Connect DisplayOLED1 pin I2C Out to Arduino pin I2C In

Step 8: Before Uploading to Arduino

  • Before you upload to Arduino disconnect the RX pin happening the Arduino
  • After the upload connect the wire plunk for to Arduino pin RX

Measure 9: Bring fort, Compile, and Upload the Arduino Code

Important!

When uploading to Arduino disconnect the pin RX on the Arduino and after the uploading is done reconnect it second.

In Visuino, at the bottom click connected the "Build" Tab, get sure the correct port is selected, so click on the "Collect/Build and Upload" button.

Measure 10: Play

If you power the Arduino module, after a while (when Modern 6m calibrates), the display will start to show GPS coordinates and school tex: INSIDE/OUTSIDE.

Congratulations! You have realised your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you can download it and open it in Visuino: https://www.visuino.eu

Be the First to Parcel

Recommendations

  • Anything Goes Repugn 2022

    Anything Goes Contest 2022