Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Read only latitude and longitude of GPS sensor connected to serial port of FiPy

    Scheduled Pinned Locked Moved MicroPython
    fipygpsexpansion board
    4 Posts 2 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Archana Kadam
      last edited by

      Hello,

      How to ready only the latitude and longitude of NEO-6M GPS sensor connected to the serial port of the FiPy (P4,P3) pins. Right now we have connected NEO-6M GPS sensor to FiPy (P4,P3) pins and directly reading the uart pin using uart.readall(), which is reading the whole NMEA data of GPS sensor which we don't want. We need only to read latitude and longitude of NEO-6M GPS sensor.

      How to do it?? Please share the code of the same.

      Thank You

      1 Reply Last reply Reply Quote 0
      • S Offline
        Sympatron
        last edited by

        Just parse the NMEA line and extract the information you need.
        There are also NMEA parser available for MicroPython if you don't want to do it yourself. For example: https://github.com/inmcm/micropyGPS

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Archana Kadam @Sympatron
          last edited by

          @sympatron
          Hello Sir,
          We are unable to add micropyGPS libraries in fipy board.
          How to add these libraries in Fipy board and how to read and write the Latitude and Longitude of the GPS in Fipy board

          Thank You

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            Sympatron @Archana Kadam
            last edited by

            @archana-kadam Just add micropyGPS.py to your project folder and add import micropyGPS to main.py. If you have trouble uploading the file you should read the documentation.

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom