Pages: [1] 2   Go Down
Author Topic: Depth Sounder NMEA Arduino  (Read 3799 times)
0 Members and 1 Guest are viewing this topic.
Miami, FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Remeber the VHS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#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());
}
}



Logged

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

New Jersey
Offline Offline
Faraday Member
**
Karma: 70
Posts: 3741
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Shouldn't you be checking the depth serial port for availability:
Code:
if(depth.available() > 0) {
    Serial.write(depth.read());
Logged

Miami, FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Remeber the VHS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah I see where I went wrong,
 so it should be as follows?
Code:
void loop()
{
if(depthSerial.available() > 0) {
    Serial.write(depthSerial.read());
}
}

 

Logged

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

New Jersey
Offline Offline
Faraday Member
**
Karma: 70
Posts: 3741
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like - does it work?
Logged

Miami, FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Remeber the VHS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

Miami, FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Remeber the VHS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

unforunately it did not work
im getting some strange characters
dont think its ascii
Logged

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26509
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is the device outputting RS232, and if so, how are you doing the inversion and level conversion?
Logged

"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.

Miami, FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Remeber the VHS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

well I cant honestly say for sure, I am relatively new to arduino
im getting output  that looks like this now
Code:
218
89
108
109
118
150
173
125
187
149
235
0

shouldnt getting NMEA values for a depth sensor be similar to GPS?
Logged

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26509
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I cant honestly say for sure, I am
Suggest you find out before you damage something.
Logged

"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.

Miami, FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Remeber the VHS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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




Logged

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26509
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

"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.

Miami, FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Remeber the VHS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

without
Logged

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26509
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What does the documentation say the interface standard is?
Logged

"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.

Miami, FL
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Remeber the VHS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

all the documentation says is to connect to an nmea 0183 compliant device it does not go into further details.
Logged

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26509
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And is your Arduino an NMEA 0183 device?
Logged

"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.

Pages: [1] 2   Go Up
Jump to: