(2020-11-26, 09:53 PM)You ironman Wrote: Well if you can post a little more details on that genius mosfet layout I'll give it a glance.
I bought it around a year ago in a box of components:
NOK 8.25 5% Off | 5PCS 4 Channel IIC I2C Logic Level Converter Bi-Directional Module 5V to 3.3V https://a.aliexpress.com/_mMirk4H
(2020-11-26, 09:59 PM)Peter— Wrote: I bought it around a year ago in a box of components:
NOK 8.25 5% Off | 5PCS 4 Channel IIC I2C Logic Level Converter Bi-Directional Module 5V to 3.3V https://a.aliexpress.com/_mMirk4H
2020-11-26, 11:29 PM (This post was last modified: 2020-11-27, 12:08 AM by Peter—.)
(2020-11-26, 10:23 PM)Ok ironman Wrote:
(2020-11-26, 09:59 PM)Peter— Wrote: I bought it around a year ago in a box of components:
NOK 8.25 5% Off | 5PCS 4 Channel IIC I2C Logic Level Converter Bi-Directional Module 5V to 3.3V https://a.aliexpress.com/_mMirk4H
Which should deliver a stable 5V inverted signal as per rs232 standard
So I think what I’ll try is to use the ESP32, then a max232 inverter chip, then the logic leveler and connect it up to the NMEA. That should work. I really want the wireless solution
(2020-11-26, 03:53 PM)Peter— Wrote: Thanks Ironman - That is exactly what I want to do - but why do I need an adapter when I have Txd and rxd pins?
There must be a way to use that instead + that would enable me to use an esp32 which I would really prefer to avoid pulling wire. I just pick up the nmea on udp from the pi and transfer it over txd to the nmea- port would be my guess. Am I right? Or is there a voltage problem or something? Would do I ground it?
Br, Peter
Well, nmea0183 is rs422 - that is, a balanced version of rs232. The TxD on the pi (or the ESP32?) is 3.3V TTL. So you won't get away without some form of electrical level adaptor. Besides, you'd probably want to have galvanic isolation to prevent ground loops.
For only sending data off to the raymarine, which is what you would do, you could get away with a much cheaper RS232 USB adapter - the raymarines seem to have optical isolation on their nmea input (see below - from the ST2000 service manual).
But trying to interpret your remark about avoiding pulling wire - if your plan is to stick an ESP32 to the raymarine and transmit the data by air to it, then you probably know how to figure out a signal adaptor.
(2020-11-27, 12:44 AM)Peter— Wrote: How would I connect the wires to my raymarine nmea- and nmea+ terminals? Rs422 seem to have 5 terminals.. tx+,tx-, rx+ rx- and ground.
Also interested. My boat has very old Navman instruments that support their proprietary NavBus, but they also have NMEA0183 in and out. I'm looking to hook that up to my RPi4. I bought these, don't know if they'll work (or even how to connect them):
it seems that my TX+ should go to NMEA+ and TX- should go to NMEA- when using the RS422. As my raymarine only have 2 nmea terminals I expect it’s because it can only receive transmissions and not send them.
Rs422 seems to use relative voltages. Not sure how to connect a similar ground or if it is even needed.
it seems that my TX+ should go to NMEA+ and TX- should go to NMEA- when using the RS422. As my raymarine only have 2 nmea terminals I expect it’s because it can only receive transmissions and not send them.
Rs422 seems to use relative voltages. Not sure how to connect a similar ground or if it is even needed.
Br,
Peter
Hmm, the st4000 service manual says:
NMEA+: Intermittent streams of (nominal) 12V pulses
NMEA-: 0V
2020-11-27, 09:53 PM (This post was last modified: 2020-11-27, 10:09 PM by ironman.)
With an RS422 adapter, Tx+ to nmeain+ and tx- to nmeain- would do the trick in a proper and safe way. I would not worry about the seemingly contradictory messages. A responsible electronics engineer who is afraid to lose his job might give you this advice as well.
However, it can probably be done much simpler. You found that service manual (well done, I couldn't), and it gives the following schematic for the NMEA input circuit (see below). This means that your input is indeed properly isolated, like it should be, and you could get away with hooking the +3V3 of your raspberry to nmeain+, and your txd to nmeain-. I'm willing to risk my own st2000+ to check this advice before you attempt it yourself, but you have to wait a bit because it's at the boat at the moment.
Big disclaimer here: this might only work in this particular case and is definitely not reversible: if you try to hook a nmea-out to your pi's rxd this way you are very likely to blow your pi. If you don't understand the electronics that sit behind an input like this, you'd better stick to using safe, pluggable components, like the USB to NMEA0183 module. This might require you to tone down your ambition levels a bit, but they are likely come down anyway after so many blown electronics ;-). But I like your tenacity and don't want to leave you hanging.