hadi-alikhaniEhsan Aerabihossein-najafiyan
Published

Metal Detection

Find metals underground along with its location in GPS using your raspberry pi

IntermediateWork in progress20 hours6,105
Metal Detection

Things used in this project

Story

Read more

Schematics

matal circuit diagram

Code

find matal location

Python
python code tha read data form GPS to raspbery pi
import serial
import pynmea2

def parseGPS(str):
    if str.find('GGA') > 0:
        msg = pynmea2.parse(str)
        print "Timestamp: %s -- Lat: %s %s -- Lon: %s %s -- Altitude: %s %s" % (msg.timestamp,msg.lat,msg.lat_dir,msg.lon,msg.lon_dir,msg.altitude,msg.altitude_units)


		
serialPort = serial.Serial("/dev/ttyS0", 9600, timeout=1.0)

while True:
    str = serialPort.readline()
    parseGPS(str)

Credits

hadi-alikhani
1 project • 0 followers
Ehsan Aerabi
18 projects • 60 followers
Researcher on IoT and Embedded Systems
hossein-najafiyan
1 project • 0 followers

Comments