Things used in this project

Hardware components:
475267 240424 01 front zoom kankcmvqdh
Raspberry Pi Zero Wireless
×1
Screen%20shot%202016 10 18%20at%201.15.31%20pm
Hologram Huawei E303/353 USB Cellular Modem
×1
GPS bluetooth puck
×1
Battery/power supply
×1
Software apps and online services:
GPS position receiver
Avatar light%402x
Hologram Data Router
QGIS
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)

Schematics

Schematic of the parts included
Shows the relation between the parts included in the project

Code

Code for the Rpi Zero WPython
Formats and transfers data from GPS to Dasboard
#!/usr/bin/env python3
#
#
#
import os
import time
import serial
import re
import Hologram
from Hologram.HologramCloud import HologramCloud
credentials = {'devicekey': 'xyz12345'}

hologram = HologramCloud(credentials, network='cellular')
# cmdres =os.system('gpsctl -n')
global count
def nmea(line):
    global count
    parts = line.split(",")
    if parts[0]=='$GPGGA':
        count = count + 1
        gga(parts)
        if count == 10:
            recv = hologram.sendMessage(line, topics=["MyGps"])
            print(line)
            count = 0



def gga(parts):
    # extract the time
    match = re.match('(\d\d)(\d\d)(\d\d)\.(\d\d\d)',parts[1])
    if match:
        h = match.group(1)
        m = match.group(2)
        s = match.group(3)
        print("Time is %s:%s:%s UTC" % (h,m,s))


ser = serial.Serial('/dev/rfcomm1', timeout=2)
line = ""
count =0
while True:
    ch = ser.read()
    if ch=='\r':
        nmea(line)
        line = ""
        ch = ser.read()   # get the newline
    else:
        line = line + ch

Credits

Erling
Erling Lindholm
1 project • 0 followers
Telecom engineer likes to build new things
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login