Saturday, May 23, 2015

Depth Mapper in a Box, Weather in the Boat, and 3D Printer Magic

Let's start out with the "Depth Mapper in a Box".


The front panel consists of a red power on LED, a green GPS Fix LED, a power switch (USB power only) a SD card slot, a USB type 'B' jack and a barrel jack for power (7-12V)



On the back panel is a 2 conductor "microphone" jack for the NMEA serial output from one of my fish finders and the other is an SMA jack for an active (amplified) external GPS antenna



The internals consist of an Arduino Mega 2560 (clone) and Arduino compatible Data Logger shield that has the real time clock disabled (It gained 43 seconds per day rendering it useless) but is still useful because it has the level shifter (3.3v<-->5V)  needed for the SD card, a RS232 to TTL level converter for the Finder NMEA output and a uBlox NEO-6M GPS module. 


A closeup of the RS232 to TTL level converter which converts the +12V/-12V levels from the finder to the 0V-5V level used by the Mega. I'm only using the RX inputs and it is held in place with some 3M adhesive tape used in manufacturing


Here is a closeup of the GPS module. The PPS (pulse per second) output was configured to flash a green onboard LED when the GPS got a fix. I removed the resistor to the onboard LED and soldered a piece of 30ga, enameled wire to the pin 3 and wound a couple of turns of Kapton tape around the module to hold the wire in place. This feeds a resistor going to the front panel green LED as well as another resistor going to the Mega. I did this so on cold start up it doesn't start writing to the SD card until after it gets a fix.

The unit functions as a NMEA combiner/multiplexer and combines the $GPGGA, $GPRMC, and $GPGSA sentences from the GPS and combines it with the $SDDPT (depth) and $SDMTW (water temp) sentences and sends it out the USB port to my boat's tablet computer for processing. It also takes the $GPGGA, $GPRMC, and SDDPT sentences and sends it to the SD card as a NMEA.log file.

The unit can be used stand alone by providing 7-12V to the DC barrel jack or through the USB port using a cell phone charger or a rechargeable USB power booster battery and plugging in one of my finders and one of my antennas. I can also use it as a trip logger by placing one of the magnetic GPS antenna 'pucks' on the roof of my vehicle and plugging it into my cell phone/tablet charger. Basically I wanted to make a unit that automatically logs both position and depth from the time I hit the water until the time I pull out and without the need for a computer. This will serve mainly as a backup of data as well as a way to map even if I have a problem with the boat's computer.

The reason I wanted to go with this route is I'll be running 2 finders, my Lowrance Elite 7x HDI with the transducer on the transom when I'm mapping using the motor and my old (well 5 years old) Garmin 300C up front with the transducer mounted to the trolling motor for mapping tight spaces like the dead trees out at Lost Grove Lake. I have an active GPS 'puck' antenna located above each transducer. All I have to do to switch from motor to trolling is turn off the GPS and swap the finder NMEA serial and GPS antenna connections and turn it back on. I'll mount it on the side of the boat under the console which brings me to the brackets I designed and printed on my 3D printer






This unit cost me $44.80 in electronics and $3.15 in PLA for the case and mount for a total of $47.95.

Next is a weather station for my boat which contains DHT22 temperature and humidity sensor and a BMP180 barometric pressure/altitude sensor which will be mounted in a small Stevenson Shield I printed


The sensors feed an Arduino Nano clone which will get power from and send data to the powered USB hub in the console. Here it is along with the sensors on a bread board during programming and testing.


Currently I have it programmed to send temperature, humidity, dew point, heat index and barometric pressure to a serial terminal every 10 seconds but I'll likely lengthen that to once per minute. I'll eventually send the data a fancier interface but my main intent is to grab the temp and pressure data along with the position, depth and water temp data from the combiner/logger and have it automagically insert that data into my fishing log/database when I open up a new record (I don't know if I'll get that last part finished yet this year).

I have a marine antenna mount on the side of my console that I'm not using and I wanted to mount to that but adapters are hard to find and expensive when you do so the 3D printer came to the rescue. The standard size and threads of a marine antenna mount is 1" 14 TPI so I went to the McMaster-Carr website and found a flange nut with those specs and downloaded the CAD files in STEP format, opened it up in FreeCAD, chose select all and exported it as an STL file that my printer's software can use. Then I just printed it out and it's a perfect fit


I found a neat little box on Thingiverse that you can resize and a holder for 8mm smooth rod used for the slides in a 3D printer and came up with this to hold the Nano and support a 8mm 2-3ft long fiberglass rod which the Stevenson shield and sensor will be mounted on.I epoxied the box to the flange nut and 2 of the 8mm holders to the box.


I'll mount the Nano on a perf board and make a hole in the side for the USB mini jack. Then I'll have a self contained unit I can mount/unmount to any marine antenna mount and in the case of mine I can fold it down for travel and flip it up for use.

Cost of electronics $10.70, PLA material $4.25 for a total of $14.95

The Arduino 'sketches' for both units can be found in the public section of my Google Drive:
GPS_Depth__Logger_Boat Weather.zip

Due to problems with Google Drive I've moved these files as well as the Lost Grove Lake preliminary maps to my GitHub repository:

Netbook2Chartplotter GitHub Repository

I'll take some more pictures after I get everything mounted and get it out on the water.


Thursday, January 29, 2015

Netbook2chartplotter Project: The Next Generation

Yeah I know it's kinda lame but it sounds better than the Winpad2Chartplotter Project although that's technicaly more true since I've upgraded to a Lenovo Thinkpad Tablet 2 ($300) running the Big Boy's version of Windows 8.1 Pro. It has a slightly faster but dual core Atom processor giving me roughly twice the computing power of the original, at least double the graphics and has capacitive multitouch along with a Wacom digitizer overlay and pen, a separate power/charge port, a full sized USB port and 64 GB storage/SSD. I added a 32 GB SD card and  I also got the fast charge dock ($100) which has 3 more USB ports and an HDMI out so I can just use a wireless keyboard/mouse and send the video to my 27" 1080p desktop monitor  and it's like working on a desktop computer (albeit a little slower)


I got the Logitech keyboard on sale but I would have gotten it regardless because it will fit right in the existing keyboard tray in the boat and can be held in place with Velcro, has a touchpad built -in and most importantly is part of their Unity line which means the USB receiver can work with any and multiple Unity devices at once. So I started looking for a Unity mouse on sale and a week later Best Buy had one marked down so I have it plus another receiver that will go in my boat (The other is in the dock) Also in the background is a 160 Gb hard drive from the old netbook that I replaced with a 120 Gb SSD drive that I mounted in a box with a USB to SATA converter in it, plugged into the dock and I use that to hold system restore and backup images as well as other data backups. I also got a thick rubber case to help protect and cushion it and it fits perfectly (with minor adjustments) in my Ram Mount system in my boat. The original Netbook2Chartplotter is still chugging along 24/7/365 sending weather and other data to some "Internet of Things" websites like the little applet in the upper right of the page showing the current (every 5 minutes) weather data here in East Davenport.

Finally after over 5 years from  my original conception I was able to find an off the shelf tablet **at a reasonable price*** that would meet my needs without any hardware modifications ..... Except one, an SMA input for an external antenna to simplify calibration by keeping the GPS receive location and the sounder's transducer as close as possible to each other both in back and soon in the front. The internal GPS and antenna is fine for general navigation and rather than modify the Lenovo and install a SMA jack (And it could be done mounted on the back where the space for the non-existent 4G modem) So how about something new, novel and custom .... An Arduino based NMEA multiplexer and SD card logger with built in GPS  and ports to hook up either the main or the front fishfinder so I can log postion and depth to the SD card as well as send it to the computer via USB (And likely Bluetooth too) for mapping. That way if I have a problem with the main computer I'll still be able to collect position and depth data for map making and the rest of the time it will serve as a backup. I also want to add a temperature/humidity and barometric pressure sensors and send that data to the main computer (And hopefully into my new fishing log/database automagically)


On the left sitting on top of the Nexus 7 in the Otterbox protective case (highly recommended for 'rough' outdoor duty) is the Arduino and GPS setup and on the left in the little breadboard is a BMP180 barometric pressure/altitude sensor and a DHT22 temperature and humidity sensor that I have already written the code for, I just have to hack in into multiplexer/logger code when it's finished.






The bottom layer of the stack is an Arduino (clone) Mega 2560 R3, the middle layer is a matching basic prototyping shield and the top is a data logger shield that's actually for the Uno R3 but works on the Mega with minor modifications. It has a 'realtime clock' (RTC) that's a complete piece of junk by all accounts and mine is especially bad gaining a ridiculous 43 seconds per day. I don't need it for this application because the GPS time is infinitely more accurate but unlike many SD card breakout boards it does have a proper level shifter IC which is essential for high speed writing to the SD card. So it's no good for the data logger application I bought it for but it works here and eventually I'll disconnect and disable the clock. So far I have the NMEA multiplexing code done and working so next is parsing the NMEA sentences ($GPGGA, $GPRMC, $SDDPT) I want to log to the SD card and writing to it which is going to be a little trickier



A couple of shots of the old Garmin 300C that will be mounted up front for mapping using the trolling motor. Since it has fixed speed (4800 NMEA standard) and you can't turn off individual unneeded messages I decided to use this to develop with rather than the Lowrance Elite 7x HDI which can change data speeds and you can turn off individual sentences. Besides the power harness for the 300C was already out (the transducer is already attached and laced up though). Here it is running in the demo mode sending data to .......


That little circuit board in the upper left which is a RS-232 to TTL level converter and then to one of the UARTs on the Mega. Below it is a uBlox Neo-6M GPS receiver module  with a SMA 'pigtail' hooked to a GPS antenna sitting on the sill of the basement wall which isn't exactly ideal but gets the job done


Here is the multiplexed GPS and sounder NMEA data in the Arduino's simple serial terminal


Here it is in Dr Depth and no I don't have a hole filled with water 82.8 ft deep in my front yard, however that is what the demo program on the sounder is reading and the location is spot on here


Here it is after 10-15 minutes and you can see the drift caused from the Doppler Shift due to poor antenna location and 2 large trees right out front of my house but this is no different than every other GPS I've used this way. Also I am unable to get WAAS lock which won't be a problem in my boat. Basically in my experience if it works good down here it will be outstanding in my boat.

That's about all for now and since I have a 3D printer kit coming later today I'm probably not going to do much developing on this for the next couple of weeks. Being able to design and print custom enclosures for my projects and make small plastic mechanical parts and mounts is going to be very handy not to mention all the other stuff you can just download and print if it catches your eye.




Saturday, January 17, 2015

Recent System Upgrades

I made a couple of upgrades/improvements to my boat last summer and I wanted to get them documented before I start with the major upgrades I'm in the process of designing and installing this winter into the spring.

First is actually part of the upgrades I made in 2012 along with the anchor winches but I get a lot of questions about my pole holder serup so I took some more detailed pictures. It's not the cheapest route to go but it's flexible, functional, sturdy and most importantly easily removable. It consists of 2 'Swivl-eze' pedestal bases mounted using 6 1/4" rivets nuts and 1/4" beveled head stainless machine screws and two 13" posts (standard ones are 11")  which were scuffed up with fine sandpaper and a scotchbrite pad, sprayed with self etching primer and then flat black paint which I love because it's non-glare for night fishing, cheap, and touches up easily. It will also 'build' well with multiple coats, doesn't 'orange peel' unlike gloss spray can paints.



These can also double as normal seat posts for fishing from.

The top part is made from 2" aluminum angle 4 feet long and the 'pins' were made from two 3/4" x 5" hex bolts with about 1 1/2" of thread with the heads whacked off with a sawzall, beveled on a grinder and a little touch up with a fine file. I used a 3/4" 'Greenlee" punch to make the holes for the pins in the aluminum angle but a 3/4" holesaw would work as easily with just a little more work cleaning up the burrs. Paint the same as before, self etching primer followed up by flat black.





Lots of dirt cheap surplus electronics coming out of Hong Kong so I picked up a surplus aluminum case for a rechargeable Li-on battery cellphone/tablet charger and a surplus DC-DC converter and made a 2 port, 3 amp charger port plus a neat holder for my cellphone and my Nexus 7. The USB cables are only 12" long and are 'charge only' for minimal voltage drop and loss. This will now double as a power port for my new system I'll blog about in the future.






The phone/tablet holder was bought at  a hardware store and is intended for use to hold brochures or information for homes being sold. I just painted it with Krylon camo green and used a cheap ($1) foam case for a 10" tablet for a liner and used a coozie I got as a handout from Whisker Seeker Tackle. I felt bad about covering it up since it's intent was advertising so I stuck on a decal they also gave me .... Thanks guys!!!




That's about all for upgrades last year because I planned on big changes for this year but I also finally got around to (because the river was flooded half the summer) stripping and repainting my trolling motor and mount. I also put on new United States Catfish Association decals on the boat





In a week or so I will start to detail the new system which includes a new main computer and a NMEA multiplexer with built-in GPS and SD card logging which will allow me to collect mapping depth and location data even without a computer plus serve as a realtime data backup when used with the computer. It will also include temperature, humidity and pressure sensors which won't be logged on the SD card but sent to the computer every minute with the hopes of being able to get latitude, longitude, depth, water temperature, air temperature and barometric pressure to automatically insert when I open up a new record in my fishing database. If nothing else I can display the weather data with a little Python code that's running around the internet (When it comes to coding I really put the Hack in Hacker)

Monday, September 22, 2014

Credit Island Harbor - Environmental Degradation From Prolonged/Frequent Flooding 8-5-2014 Photos

First I'd like to point out a new feature on both of my blogs over on the right --------->
That's live data from my personal weather station and if you click on it it will take you to my personal weather station webpage on Weather Underground. I'm getting ready to 'retire' the original Netbook2Chartplotter at least as a chartplotter and it will have other duties such as logging data from the weather station and sending it over the internet. I'll blog over the winter on it's replacement, a Lenovo Win 8.1 Pro tablet and how I'll use my old one for new duties as well as an emergency backup.

UPDATE Oct. 1 ,2014

I have to give credit where credit is due although it's really a better late than never kinda deal. The city after 5 years has finally fixed the boat ramp approach while they we resurfacing the parts of South Concord that were underwater long periods of time this year. It's definitely a lot easier to get a trailer in there now.




Anyway to the main gist of this post, the continued environmental degradation to Credit Island Harbor which is not only a major cause of silting especially along the shoreline but also how lack of bank protection like on the island itself is wiping out the remaining trees, the only bank protection between the harbor and the road bed. First up the area around the boat ramp and dock




This area was almost entirely covered with asphalt a few years ago





And where did all that asphalt and gravel end up? It's all in the harbor just off shore .....


These are looking upstream towards River Drive. You can see some of the emergency bank reinforcement the City put in.






These are from between the boat ramp and the bicycle bridge and there is some heavy damage here with about 1-2 feet thick layer of soil removed the prolonged flooding last two years exposing the tree roots and causing the remaining trees to die or start leaning towards the water. Lot's of yellow and brown leaves which in early August indicates that the trees are dying. Even the green leaves are more of a lime or yellow-green than the dark green leaves on the trees further from the water.







When they built the bicycle bridge they restored the old bank levels and then rip rapped it so it kind of juts out and is higher than the bank just upstream. This is the outside of a bend in a side channel so this is where the current is the strongest when it comes over the road/causeway at the entrance to the island. An eddy forms here whenever the water is high and it's really eaten away at the bank and it's dug clear back to the road bed.








Most of the rest are downstream of the bicycle bridge and show all the yellowing and browning of leaves of dying trees as well how many of them are leaning and will fall into the harbor in the near future. A lot of these trees aren't going to make it unfortunately and the bank erosion and silting of the harbor will get even worse and happen even faster

























Here you can see where a mud bar is forming just before it narrows before it gets to the main channel of the river









This area is going to look very very different in 5-10 years if something isn't done and soon. It's a problem that illustrates the effects of Climate Change that has caused a 37% increase in rainfall in the upper Midwest as well has caused the frequency of 17ft or greater floods (Moderate to Severe flooding) to increase by a whooping 300+% in the last 22 years.