Arduino Read Nmea Fluxgate Compass Heading Data
- #21
SiteSurfer
Active member
- Joined
- eighteen Jun 2015
- Messages
- i,269
This is frustrating, hooked up the 2200e to an RS485 converter, fed information technology with 3.3V and.. nothing.
Changed the module, changed the dev board twice. Nothing.
Consulted the 2200e docs, checked the wiring over again. Aught.
Re-read the docs, taking notice of the small print. Realised that I was powering the 2 devices from seperate power sources, wired the Arduino ground to the 2200e globe and bam! Data!
Happy bunny.
[/URL][/IMG]
- #22
YAY!!
That looks just similar my nautical chart table
- #23
SiteSurfer
Active member
- Joined
- 18 Jun 2015
- Messages
- 1,269
I finished up last night with the addition of a second RS485 module to capture the 38400 baud feed for AIS and added the esp8200-01 module which is now feeding data to its own access signal. Tonight should see this done.
I've upgraded iSailor to receive GPS and AIS data, unfortunately I have no AIS data to test with (from the VHF) at the moment so may test with a repeating static array of data from the postal service above to test.
I have been closely looking at the Node MCU dev board which I think could be combined with the RS485 modules and slotted into a little box to make a wifi NMEA repeater standalone solution for less than £20, even less if we used an esp8200-01 (near £ane) and just 1 input port.
- #24
SiteSurfer
Agile member
- Joined
- xviii Jun 2015
- Messages
- 1,269
Rather happy now.
I have the WiFi compnent board interim as an Access Point (which the iPad/iPhone etc devices can connect to) and had 3 devices continued.
GPS data is streaming from the VHF along with (in theory) AIS data which is existence forwarded every bit a UDP feed by the Arduinio.
I'thousand also taking the GPS data stream and using information technology within the Arduinio sketch to display on the LCD, still I demand to wait for some stacking headers to arrive so I can extend the LCD shield.
- #25
- #26
SiteSurfer
Active member
- Joined
- 18 Jun 2015
- Messages
- 1,269
I have the NodeMCU lath sat here, its going to be phase two of this project
It's firmware tin can be flashed with a diversity of things, including a version of the Arduino C++ libraries, LUA on elevation of Node or (I think) good old AT.
It's main power is that it can be used as a standalone board - so aye you tin can have information on its input pins and have a spider web server running on it. (Thats besides true of the esp8266-01 that I'one thousand using too).
http://randomnerdtutorials.com/esp8266-web-server/
The main unequal between the very very cheap 01 (£2 quid) and the Node board (£7 quid) with the 12e on is the pins - its made the 8266 into a small footprint lath that has astonishing potential. I'm looking to see if I tin can make a neat little dual camera - on board intruder / monitoring gadget on it with a gsm device (much similar the ones in another thread).
- #27
SiteSurfer
Active fellow member
- Joined
- 18 Jun 2015
- Letters
- 1,269
A bit disappointed with my iv.3" LCD screen, its very green - suggesting that its faulty.
On the other manus though, the data is now flowing perfectly and I'm able to encounter it all on the iPads. More usefully the iPad with no GPS now has a data stream supplying it with gps data from the VHF - which would have saved me some coin on the bad elf dongle (hindsight is a wonderful affair).
Adjacent stage is to tidy it all up and encase it. I have had some voltage sensors and a fill-in GPS board arrive today to play with. Also expecting a Co2 and Fume Detector module likewise.
Should be field testing in 2 weeks time.
- #28
I have the NodeMCU board sat here, its going to be stage 2 of this project
![]()
Absurd petty gadget. I've got it netted up now talking to a mobile phone hot spot and sending out temperature from a ds18b20 sensor to the web...
https://thingspeak.com/channels/78434
Slowing coming together..
This might work well every bit a gunkhole monitor, tweet if the voltage gets also low or something, or let you turn on the refrigerator etc. 90mA and 12 quid
- #29
SiteSurfer
Agile fellow member
- Joined
- xviii Jun 2015
- Messages
- ane,269
I started work on the UI last dark for the screen, currently I accept 3 icons on the correct which display pertinent information (well its pertinent to me) in large readable type.
Virtually importantly for me was to accept a heading - I don't have a traditional bulkhead compass (which has been a source of annoyance since purchase) so I thought I'd get with the thought of making my own "fluxgate" cheapo copy.
So I'll use the 9 axis sensor in the bow (away from electrics) and couple that with the GPS data that information technology existence piped through the box. I'll compare the headings and if forward progress is being made - will default to the GPS, if stationary or the rate of progress is such that the data duplicates for a period - I will bank check the heading on the sensor and display that instead - obviously the GPS tin can not give a heading if yous are not moving...
With a small-scale button on screen I could simulate the NASA compass device and place big arrows left and right of the numeric indicator to advise which manner to steer to correct a course deviation (very useful for the kids) on a given (one time button printing) class input.
All good fun and now that I'g in the programming stage its become much much more interesting.
- #thirty
prv
Well-known member
- Joined
- 29 Nov 2009
- Letters
- 37,380
- Location
- Southampton
I'll compare the headings and if forward progress is being fabricated - will default to the GPS
That's an unusual concept. My first reaction was to flat-out say it was incorrect, you want heading and not track if you're simulating a bulkhead compass. But in fact maybe a "compass" that displays track is useful - every bit long as information technology'southward very clear that that'southward what it is. Some aspects of navigation might demand a scrap of a rethink, and I can't immediately think how to replicate the thought of a class-to-steer beyond a changing tide (classic cantankerous-Aqueduct example) except past working out a predicted rail for each 60 minutes and and so repeatedly changing the number you tell your helmsman.
Pete
- #31
SiteSurfer
Active member
- Joined
- 18 Jun 2015
- Messages
- 1,269
I don't for a moment consider myself expert at annihilation, especially the nuances of navigation!
My (and I'one thousand ok being wrong because that's how y'all learn) was that at a standstill or becalmed it would exist nice to simulate a compass (for reference), so when underway the GPS would exist able to provide an accurate track effigy.
I'm probably getting confused by the proper references. The aim (in my caput) was to accept a heading - compass driven, with the track being shown equally the arrows - give thanks you for immigration that upwardly for me - I'd got the correct thought but backwards. As far as tidal tracks are concerned - at that place was no intent to go that complicated - other than knowing what average course to steer, pointing the boat in that management and pressing 'go' (a bit like an tiller airplane pilot really).
This is the prototype GUI construct that I drew.
- #32
SiteSurfer
Active fellow member
- Joined
- xviii Jun 2015
- Messages
- 1,269
That raises an interesting discussion I but had with a colleague.
Should the arrows betoken in the direction to push the tiller or the direction of the compass course adjustment (for a bike its the aforementioned every bit the adjustment manifestly), could exist a tweak in that location in setup to define which method is on a boat.
Personally for teaching and children helming - it would probably exist better to have the arrows pointing in the direction to push the stick.
- #33
prv
Well-known member
- Joined
- 29 Nov 2009
- Letters
- 37,380
- Location
- Southampton
As far every bit tidal tracks are concerned - there was no intent to go that complicated - other than knowing what boilerplate course to steer, pointing the boat in that management and pressing 'become'
Right, but if yous've worked out what direction the gunkhole should be pointing, and so instead brand information technology track in that direction while pointing somewhere else, you lot won't end upward where y'all intended. In a strong tide, track and heading can easily be 30° autonomously.
Pete
- #34
SiteSurfer
Active fellow member
- Joined
- 18 Jun 2015
- Letters
- 1,269
Right, but if y'all've worked out what direction the boat should be pointing, and then instead make information technology rails in that direction while pointing somewhere else, yous won't end up where you lot intended. In a stiff tide, rail and heading can hands be 30° apart.
Pete
My head hurts.
I thought that yous calculated your tide flows and made a ready on the compass begetting you needed to steer to brand that practiced over the class of the passage fourth dimension that you planned.
Hence my (naive) conclusion that I'd practise the same electronically (like a tiller airplane pilot).
Signal the boat at the course required with correction and end up at the correct place.
OH! I meet what y'all might mean, no, the only correction was that "You are steering in the wrong direction - steer this way to get dorsum on course" - not for whatsoever clever cross track error which is beyond my desire to implement. Which kind of doesn't need the GPS at all.
Edit:
Cheers Pete - that's a very good bespeak to make. I don't 'need' the GPS for that scrap at all. I tin usefully utilise the information for other things.
Last edited:
- #35
prv
Well-known member
- Joined
- 29 Nov 2009
- Letters
- 37,380
- Location
- Southampton
I thought that you calculated your tide flows and made a fix on the compass bearing you needed to steer to make that good over the grade of the passage time that you lot planned.
Hence my (naive) conclusion that I'd do the same electronically (similar a tiller airplane pilot).
Sure, and that'southward fine if you lot ever use the compass sensor. But in mail service 29 you were talking almost using the compass but when stationary, and switching to GPS data for "heading" when moving. GPS can only tell you your rails, it can't tell y'all which way the boat is pointing (unless you have two sensors spaced autonomously and some clever maths).
Pete
- #36
SiteSurfer
Agile member
- Joined
- eighteen Jun 2015
- Messages
- one,269
Merely in mail 29 you were talking about using the compass only when stationary, and switching to GPS data for "heading" Pete
That'south because I'm an eejit.
- #37
- #38
SiteSurfer
Active member
- Joined
- 18 Jun 2015
- Messages
- ane,269
Too, I'd managed to mangle perfectly usable manufacture terms into my unicorn infested imagination and come upwards with my own special meaning of the phrases.
- #39
SiteSurfer
Active member
- Joined
- eighteen Jun 2015
- Messages
- i,269
Done some more work on the UI. The NMEA data is perfectly happy streaming out then thats a done deal and I wanted to have a become at the compass/heading/speed concept.
Realised that I demand a combined magnemoter/accelerometer (more trial and fault) only pressed on anyway to see if I could proof of concept it. Needs tidying and a fair bit more code but its promising.
I have mounted a temperature sensor on the breadboard ready to lawmaking into the environmental window, and the GPS information will get into the relevant place before long.
- #40
Nu
Done some more work on the UI. The NMEA information is perfectly happy streaming out so thats a washed deal and I wanted to have a go at the compass/heading/speed concept.
Realised that I demand a combined magnemoter/accelerometer (more than trial and error) but pressed on anyway to see if I could proof of concept it. Needs tidying and a off-white bit more than lawmaking but its promising.
I have mounted a temperature sensor on the breadboard set to code into the environmental window, and the GPS data will get into the relevant place shortly.
![]()
Looks swell - well done!
I *need* one of those screens
Source: https://forums.ybw.com/index.php?threads%2Farduino-nmea-mega-thread.447244%2Fpage-2
0 Response to "Arduino Read Nmea Fluxgate Compass Heading Data"
Post a Comment