This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integrated GPS/Compass/Environmentals/IMU Sensor 'Puck'
#1
Hi, I wanted a small size (about the size of a hockey puck/Raymarine RS150 - a bit smaller, actually) single unit boat data source for GPS, compass, IMU, and environmentals (temp, pressure) sensor unit on a single USB cable that I could mount above my companionway.  I used three commonly available, but essentially instrument grade, sensors: a ublox M10 GPS (in my case, a Sequre M10-25Q, which has a QMC5883L three axis compass on the board), a BME680, and a BMO08x (I used the ...085, but any of those in that series should work), behind a single ESP32, which converts their I2C and UART signals to either NMEA1308, or json (there is code for both in the repo below), and sends via a single powered USB cable.  I 3D printed a small enclosure that is watertight for all components, but still exposes temp/pressure sensor to ambient air.   Anyhow, for me it's just super convenient to have all those data sources on a single cable feeding signalK (a lot easier than dealing with I2C or UART sources directly to SK).  Anyhow, here is the code is anyone wants it.  If you use it, or any part of it, please let me know your thoughts or let me know if there are things I should do to enhance it:

https://github.com/sv-enkidu/esp-32-sign...tData-puck

Note it would be fairly trivial to send via wifi or bluetooth to SK from the ESP, and I may do a version of that for kicks, but I preferred to keep it wired, just for robustness.  Note also that contrary to what is sometimes believed, NMEA0183 can send data at 115200 baud (I've read that it has limits of 9800 baud, which is just old news).  It's actually way less verbose than json and human readable, so it still has its merits; chose your poison, I guess, but it's what I'm using for this gadget and it works fine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)