Go Down

Topic: Depth Sounder NMEA Arduino (Read 4283 times) previous topic - next topic

AshVLSI

Hello,

I am connecting a Garmin Depth Sounder NMEA 0813 to an Arduino Uno and attempting to get the NMEA data to show on the serial output screen.

I tried following some of the many GPS examples out there(since it too is NMEA)
but to no avail, i have been unsuccessful

This is just one of the many codes that I have attempted at getting the NMEA data

Code: [Select]

#include <SoftwareSerial.h>

SoftwareSerial depthSerial(9,4); //pin 9 is the pin in which the depth sensor is connected 

void setup()
{
  Serial.begin(9600);
  Serial.println("Depth");
  depthSerial.begin(4800);
}

void loop()
{
if(Serial.available() > 0) {
    Serial.write(depth.read());
}
}




I'm only in Computer Engineering because I cant see myself doing anything else.

wildbill

Shouldn't you be checking the depth serial port for availability:
Code: [Select]

if(depth.available() > 0) {
    Serial.write(depth.read());

AshVLSI

Ah I see where I went wrong,
so it should be as follows?
Code: [Select]

void loop()
{
if(depthSerial.available() > 0) {
    Serial.write(depthSerial.read());
}
}




I'm only in Computer Engineering because I cant see myself doing anything else.

wildbill


AshVLSI

Well I am awaiting my partners to come with the equipment.

I am just inquiring on a variety of tips that can be used.

Parsing the data is not a problem, its just getting it that was.

Thanks alot for pointing that out. Really helped me out.
I'm only in Computer Engineering because I cant see myself doing anything else.

AshVLSI

unforunately it did not work
im getting some strange characters
dont think its ascii
I'm only in Computer Engineering because I cant see myself doing anything else.

AWOL

Is the device outputting RS232, and if so, how are you doing the inversion and level conversion?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

AshVLSI

well I cant honestly say for sure, I am relatively new to arduino
im getting output  that looks like this now
Code: [Select]

218
89
108
109
118
150
173
125
187
149
235
0


shouldnt getting NMEA values for a depth sensor be similar to GPS?
I'm only in Computer Engineering because I cant see myself doing anything else.

AWOL

Quote
I cant honestly say for sure, I am

Suggest you find out before you damage something.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

AshVLSI

Well we just ran it through an oscilloscope and we are only values of -1 or 3 volts.
The depth sensor in question is a Garmin Intelliducer Thru Hull NMEA 0183.

We were able to get the GPS information earlier. but thats because of the many guides online.
Unfortunately the Depth sounder is not working in our favor.
We are powering it using a DC power supply.

The only pins connecting to the arduino is the ground and the signal pin




I'm only in Computer Engineering because I cant see myself doing anything else.

AWOL

Quote
Well we just ran it through an oscilloscope and we are only values of -1 or 3 volts.

Was that with or without a load on the line?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

AshVLSI

I'm only in Computer Engineering because I cant see myself doing anything else.

AWOL

What does the documentation say the interface standard is?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

AshVLSI

all the documentation says is to connect to an nmea 0183 compliant device it does not go into further details.
I'm only in Computer Engineering because I cant see myself doing anything else.

AWOL

And is your Arduino an NMEA 0183 device?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up