openUC2 / openUC2_SOOP

Other
0 stars 0 forks source link

GPS Module for Microscope #2

Open beniroquai opened 3 months ago

beniroquai commented 3 months ago

@christiankuttke we need a GPS module. Honestly speaking, I could imagine having something that integrates into the UC2-ESP Firmware (@KillerInk). If an auxiliary USB-GPS device is to be used, I'm happy to hack that into ImSwitch and add this to the Metadata of images.

@christiankuttke would you mind to add some suggestions here? Cheaper is better. Max budget 50€ I'd say.

The planktoscope uses this module https://www.adafruit.com/product/2324

christiankuttke commented 3 months ago

Contacted Ublox office Chemnitz and Berlin to advise on this. Maybe they have experience with research boats.

The maker standard product 7 years ago was Ublox NEO-M8N integrated as a generic robust device (25€ Aliexpress). It doesn't have dual-band GPS (for mitigating errors from reflections) but has good features and is self-contained, outputting UART, USB, I2C. Maybe there is a newer product or one specialized for use in boats.

A harder path would be to buy a UBLOX module, solder it to a PCB of our design (we will probably need one anyway to connect everything neatly and robust), and then have a SMA jack to the outside of our case for an external (better active) GNSS antenna which can be taped to the window or extended with Coax cable and fed through cable ducts to the antenna placed outside the boat.

christiankuttke commented 3 months ago

Ublox directly has only products without plastic case, so chips and modules. Product guide: https://content.u-blox.com/sites/default/files/products/documents/GNSS-product_Overview_UBX-14000426.pdf

Researching the Ublox solderable module route:

Active Antennas:

beniroquai commented 3 months ago

@dboonz, do you have any advice on the precision of GPS on a boat? 0 clue :D

beniroquai commented 3 months ago

@christiankuttke I think low-standard precision is fairly fine. If we know where we are within 100m range we are good to go. Which route to g:

dboonz commented 3 months ago

I think a normal gps module should be fine. However, carbon is a conductor, so you may need an antenna is you are deep inside the hull. Most modern boats also transmit navigation information over wifi, you could also try to hook into that?

On Wed, Jun 26, 2024, 22:18 Benedict Diederich @.***> wrote:

@christiankuttke https://github.com/christiankuttke I think low-standard precision is fairly fine. If we know where we are within 100m range we are good to go. Which route to g:

  • I2C through UC2-ESP firmware or
  • USB as an external device?

— Reply to this email directly, view it on GitHub https://github.com/openUC2/openUC2_SOOP/issues/2#issuecomment-2192553685, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR23V33NJR4S32HVIFYZLTZJMO2JAVCNFSM6AAAAABJ4ORKGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSGU2TGNRYGU . You are receiving this because you were mentioned.Message ID: @.***>

beniroquai commented 3 months ago

Oh cool. Is this a standard like a Wifi-GPS broadcasting?

Message ID: @.***>

KillerInk commented 3 months ago

images(1).jpg

With this boot we don't get a signal problem :)

dboonz commented 3 months ago

I don't know, really.. most maritime communication protocols are not particularly open..

I think b&g has a broadcasting unit. There's also signal k but I doubt that that's used on these boats

On Thu, Jun 27, 2024, 08:55 Benedict Diederich @.***> wrote:

Oh cool. Is this a standard like a Wifi-GPS broadcasting?

Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/openUC2/openUC2_SOOP/issues/2#issuecomment-2193935807, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR23V6UZH6TDADGWI3GI4TZJOZNBAVCNFSM6AAAAABJ4ORKGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJTHEZTKOBQG4 . You are receiving this because you were mentioned.Message ID: @.***>

KillerInk commented 3 months ago

default protocol seems to be NMEA0183 but then the esp need to be integrated into to boot wifi and its pretty simpel^^

christiankuttke commented 3 months ago

Inside the ship, the antenna should be external of our microscope so that it can be taped to a window or a long coax cable fed through a cable duct to the outside of the ship. So the goal is to find a GNSS module of Ublox modules with SMA antenna connector.

While it is possible to integrate a Ublox module by just implementing the schematic of their development kits ($300), I think that'll take more engineering and iteration than it's worth. So the goal is to find a board that a Ublox module sits on which has a SMA antenna connector but provides all the impedance matching and antenna phantom power. That board can sit inside of our case and have a short coax cable with SMA connectors connected and then mounted in a hole drilled though the hull of our case. This way the jack on the outside of our case is cheaper to replace than if we presented the GNSS board's SMA connector directly to the outside.

I found a board for 49 € which has Ublox F10N (standard level precision, dual-band GNSS): https://www.ardusimple.com/product/simplegnss-pro/

Antenna big (98€): https://www.ardusimple.com/product/budget-survey-tripleband-gnss-antenna-ip66/ Antenna small (56€): https://www.ardusimple.com/product/u-blox-gnss-dual-band-l1-l5-antenna-ann-mb1-00-ip67/

SMA extension cable: https://www.ardusimple.com/product/antenna-cable-extender/

beniroquai commented 3 months ago

Got it. I think we need to get back to the people on the boat for this. What would be the best interface to interact with this board? USB or from the ESP side?

I found the following module in my cabinet. Would this work at all? https://www.amazon.de/ICQUANZX-GY-NEO6MV2-GPS-Flugsteuerungsmodul-superstarker-Keramikantenne/dp/B088LR3488/ref=sr_1_1?dib=eyJ2IjoiMSJ9.FVqH72Lcm5HmctctPIJMbrGTlh_jePLt80k0cmp8O12kSG1jRdeSUyvydJG61lmIsiOZW8LflJqkrJmqkXB5U1_lDokTe2CCDSSxLOECOOEdOZeY4wANlyqph5x3I3dM2GBr46lGvHHrJmZdKF2MOd2lAlGmk1aEE7FztdHWikwt1V6iYPgp_JiZ-dudtxV4i5pUNTUZTsIrgevMBZWDzeimmAbL2hxRs2G9xZiFzB0.wBLJmzd70h3cPZNIri7rS3f7XC0leg3DgQHTTwPlKfI&dib_tag=se&keywords=GY-GPS6MV2&qid=1719599334&sr=8-1

christiankuttke commented 3 months ago

Datasheet of your model Ublox module: https://content.u-blox.com/sites/default/files/products/documents/NEO-6_DataSheet_%28GPS.G6-HW-09005%29.pdf

Schematic of the carrier board:

The one you have is an old model, but it would work for software development using the NMEA output (ASCII over UART. Voltage should be 3.3V).

That board only breaks out the UART ports. The uart pins on uc32_standalone are not broken out, but there are test pads that can be soldered to.

The ublox and eeprom communicate via i2c with the ublox being controller and the ublox module can be told to store configs on the eeprom. By soldering to the ublox module or the pads where it's mounted, the i2c can be broken out and then be the communication to our systems. Our uc32_standalone is elegantly compatible with i2c.

That board probably needs 5V on its accessible pin, but everything works on 3.3V. Maybe that net has to be broken out by soldering to it too.

On Fri, Jun 28, 2024, 20:33 Benedict Diederich @.***> wrote:

Got it. I think we need to get back to the people on the boat for this. What would be the best interface to interact with this board? USB or from the ESP side?

I found the following module in my cabinet. Would this work at all?

https://www.amazon.de/ICQUANZX-GY-NEO6MV2-GPS-Flugsteuerungsmodul-superstarker-Keramikantenne/dp/B088LR3488/ref=sr_1_1?dib=eyJ2IjoiMSJ9.FVqH72Lcm5HmctctPIJMbrGTlh_jePLt80k0cmp8O12kSG1jRdeSUyvydJG61lmIsiOZW8LflJqkrJmqkXB5U1_lDokTe2CCDSSxLOECOOEdOZeY4wANlyqph5x3I3dM2GBr46lGvHHrJmZdKF2MOd2lAlGmk1aEE7FztdHWikwt1V6iYPgp_JiZ-dudtxV4i5pUNTUZTsIrgevMBZWDzeimmAbL2hxRs2G9xZiFzB0.wBLJmzd70h3cPZNIri7rS3f7XC0leg3DgQHTTwPlKfI&dib_tag=se&keywords=GY-GPS6MV2&qid=1719599334&sr=8-1

— Reply to this email directly, view it on GitHub https://github.com/openUC2/openUC2_SOOP/issues/2#issuecomment-2197439775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR3VLSOPQCFPAFJUJG4MH5DZJWUBBAVCNFSM6AAAAABJ4ORKGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJXGQZTSNZXGU . You are receiving this because you were mentioned.Message ID: @.***>

beniroquai commented 3 months ago

Ok. Let'S try this for now and then let'S aim for the new model in the second stage. Can you try buying one? I guess you can ask René for that. :)

Message ID: @.***>

christiankuttke commented 3 months ago

The module with small antenna and 10 cm cable has been ordered. The antenna comes with a 5 m cable.

christiankuttke commented 2 months ago

We bought this board with the antenna recommended above: https://www.ardusimple.com/product/simplegnss-pro/

We should just plug it into the Raspberry Pi via USB for the simplest connection.

beniroquai commented 2 months ago

Great! Thanks. Is there an example code for interfacing it with python for example? Is there an SDK somewhere?

dboonz commented 2 months ago

I think you should be able to use gpsd? https://gpsd.io/

Here's a python package (but I have never used it) to interface with it: https://pypi.org/project/gpsdclient/