Android Ocean Drifter

by cesar harada in Outside > Water

10163 Views, 124 Favorites, 0 Comments

Android Ocean Drifter

Screen Shot 2017-08-18 at 16.08.49.png
34527245533_3083b3c8c5_z.jpg
68747470733a2f2f63312e737461746963666c69636b722e636f6d2f312f3733342f33333339323733333432365f373031653862363631635f7a2e6a7067.jpeg
68747470733a2f2f63322e737461746963666c69636b722e636f6d2f342f333737362f33323638393038313930335f386335373033383139655f7a2e6a7067.jpeg
32739309070_780d739c2a_z.jpg
33684464920_3e7cd0a56f_z.jpg
68747470733a2f2f63312e737461746963666c69636b722e636f6d2f332f323831362f33333336373835363833325f313531653164303737625f7a2e6a7067.jpeg
68747470733a2f2f63322e737461746963666c69636b722e636f6d2f342f333835372f33333336373835333431325f613032643861306665645f7a2e6a7067.jpeg
68747470733a2f2f63312e737461746963666c69636b722e636f6d2f332f323835342f33323731303332323539335f626436333431363265355f7a2e6a7067.jpeg
35207853011_aef241f200_z.jpg
68747470733a2f2f63322e737461746963666c69636b722e636f6d2f362f353735362f33323731353832393331335f623333323038656565325f7a2e6a7067.jpeg
68747470733a2f2f63312e737461746963666c69636b722e636f6d2f312f3638352f33333134313233343331305f353665313561613231655f7a2e6a7067.jpeg
34068780145_6b6453739d_z.jpg
33257361673_d1350ff440_z.jpg
33684581620_3e84727a2c_z.jpg

The ocean covers more than 70% of our planet, yet it's estimated we've explored only about 5% of it. Maybe because studying the ocean can be quite time-consuming and / or expensive.

Recently, with WWF and MakerBay in Hong Kong, we built an Open Hardware fleet of ocean drifters operating on the 3G network, to map river, estuary and coastal pollution (as far as the mobile network allowed us to - so not the deep ocean). The project name is "Marine Litter Detective" and you can see our 110 drifters on this Leaflet map + timeline . We used the Seeed Studio "LoNet 808 - Mini GSM&GPRS + GPS Breakout" board and we deployed our drifters in Hong Kong drains, rivers and ocean, working with 11 local schools. Some of our low-cost drifters went as far as Taiwan (about 1000 km in 1 month). When we say low-cost, each device material cost is under 500 HKD all inclusive (under 60 USD / 55 EUR) with a custom PCB from Seeed Studio. We had a lot of press for this pilot project (below) and request to make the technology simpler so more people could get involved. This is what this instructable is about: making a simpler version with something many people can get their hands on, an Android Phone. Of course, an Android Device is not as energy efficient and this instructable is a simple hack, so please tell us how we could make it more energy efficient and run for a longer time. For example, making a custom ROM and / or app for the phone would make a lot of sense, or adding an extra battery and a solar panel - yes!

Our ultimate goal is to understand marine pollution to reduce the negative impact of humans on the ocean, so you can imagine we are doing our best to reduce the pollution our sensors themselves constitute. for the previous version, we do this in different ways:

  1. Smaller footprint: We shrink from a full-size arduino to a Arduino pro mini
  2. Replace the plastic casing: we experimented with biodegradable materials such as coconut, wax and cork
  3. Replace PCBs: with paper electronics, inspired by the work of Jie Qi
  4. Optimize software for expanded autonomy
  5. Remove unnecessary power sink such as LEDs on the Arduino board
  6. Reduce batteries: number, size, and capacity of battery, going from 2 to 1 and expanding autonomy.

In this instructable, we will show you how to hack a regular Android phone to make a temporary low-cost Ocean Drifter for your next science project. So NOT what the images in this step show (that is on github here), but a simpler version that requires next to zero coding and electronics knowledge. And by the way, we haven't tried this for a long time in the open waters, so we do not guarantee success of this device

This Android Ocean Drifter has been taught in these workshops during Hong Kong 1st Citizen Science Faire:

https://www.eventbrite.hk/e/android-ocean-drifter-...

Thanks to the original team for the Marine Litter Detective Team

Patrick Yeung [WWF], Cesar Jung-Harada [MakerBay] Eddie Yung [MakerBay], Rohak Singhal [MakerBay], Wong Ching Sun [MakerBay], CY CHENG. Special thanks to Seeed Studio, James Manning (NOAA), Xavier Huanxin Xu (NOAA), Tom Chi, Jie Qi (MIT), Cy Keener (Stanford University).

Press

1. 全球定位「臥底」追蹤海洋垃圾 環團實測:香港垃圾最遠漂至台灣 [HK01] 2017-08-14 (08:05) 最新文章 潘希橋 https://www.hk01.com/

2. GPS追蹤器模擬海洋垃圾47 日抵台北 環團科研社企合作冀助了解垃圾去向 [Ming Pao Daily News] 2017-08-14 A03 港聞 https://news.mingpao.com/pns/dailynews/web_tc/article/20170814/s00002/1502647467945

3. 以蠟製造可自然分解 [Ming Pao Daily News] 2017-08-14 A03 港聞 https://news.mingpao.com/pns/dailynews/web_tc/article/20170814/s00002/1502647469770

4. 調查:四成渠口垃圾不被阻隔排至河流和海洋 [Now Local News] 2017-08-14 http://news.now.com/home/local/player?newsId=232047

5. 定位儀器放渠道 記錄水流路線 GPS大追蹤 港海洋垃圾可漂至台北 [Apple Daily] 2017-08-14 A08 港聞 http://hk.apple.nextmedia.com/news/art/20170814/20120776

6. 裝置電路板無法分解 基金會籲拾獲交回 [Apple Daily] 2017-08-14 A08 港聞 http://hk.apple.nextmedia.com/news/art/20170814/20120779

7. 海洋垃圾邊到來?竟然同雨水渠有關? [on.cc] 2017-08-14: http://hk.on.cc/hk/bkn/cnt/news/20170814/bkn-20170814080005428-0814_00822_001.html

8. Stop urban litter becoming marine waste: WWF-HK (00:13) [RTHK News (English)] 2017-08-14 Local http://news.rthk.hk/rthk/en/component/k2/1347947-20170814.htm?spTabChangeable=0

9. 海上GPS追蹤港垃圾 最遠漂台北 [Sing Tao Daily] 2017-08-14 A10 港聞 http://std.stheadline.com/daily/news-content.php?id=1648191&target=2

10. Tracking litter trail all the way to Taiwan [South China Morning Post] 2017-08-14 CITY1 CITY Environment Xinqi Su http://www.scmp.com/news/hong-kong/health-environment/article/2106638/tracking-hong-kongs-litter-trail-all-way-taiwan

11. DIGEST: HK litter tracked to Taiwan [South China Morning Post] 2017-08-14 EDT1 EDT: http://www.scmp.com/news/hong-kong/health-environment/article/2106638/tracking-hong-kongs-litter-trail-all-way-taiwan

12. GPS追蹤海洋垃圾 [RTHK News] 2017-08-14 晨早新聞天地 Start from 55:25 http://news.rthk.hk/rthk/ch/news-programmes/this-episode.htm?cmsid=90&episode_id=452947&livetime=20170814063000

Factory Reset Your Android Device

How To Factory Reset Your Android Phone

There are many flavors of Android and my recommendation would look for the right combination of keys or action in the system to Factory Reset your Android. Save all of your precious data and now you can go in your System / Privacy / Factory Reset for my phone.

Set Up a New Google Account

Screen Shot 2017-08-18 at 17.14.57.png

Setting a new Google account is simple and free. If you have multiple devices, I recommend to name them in a serial way, so they are easy to organize in your database later. Link to signup.

https://accounts.google.com/SignUp?hl=en

Manage Your Battery to Maximize Autonomy

Screen Shot 2017-08-18 at 17.20.10.png

There are many good app to make sure your device survives long enough for you to retrieve it from the ocean.
The less apps are running, the better. This app seems to do a decent job, "Power Pro Battery Saver": https://play.google.com/store/apps/details?id=com....

"Share My Location" on Google Maps

35810744054_cdb67530c1_o.png
35810743854_5091abd779_o.png
36249145000_a962c84049_o.png
36598734866_6b81e8c9a6_o.png
Screen Shot 2017-08-20 at 01.37.05.png
Screen Shot 2017-08-20 at 01.36.06.png
Screen Shot 2017-08-20 at 01.35.46.png

If you intend to run a fleet, you will need to do that on every single device. You can have one "MASTER" device that sees all, or you can work in a decentralised way (smarter) where every device can see the other devices - which makes this Google share my location as good as your 3G network gets.

There are other "fleet management" apps out there too on Play.Google.com. I will focus hacking regular Android Phone.

But have a look at this too: https://play.google.com/store/apps/details?id=com....

Waterproof Your Phone!

32684471070_17cb07b459_k.jpg
33066519015_adba77ee38_k (1).jpg
glass_canister_and_gasket_l1.jpg
68747470733a2f2f63312e737461746963666c69636b722e636f6d2f332f323835342f33323731303332323539335f626436333431363265355f7a2e6a7067.jpeg
32710319473_4d2d893fae_o.jpg
33304746951_331d27190a_o.jpg
32962308250_dafc4bf428_k.jpg

Once your phone is ready to launch, you need to make sure it's going to be ok with water.

We recommend these methods:

PVC toilet pipes
It works very well, it's cheap, by the ocean does not love PVC. That's what we did originally, we're still trying to make something better.

O-ring equipped glass canister
Glass is clean but it breaks easily... If you release in the middle of the ocean, that is not a big deal. But if you release in busy waters or in the drain, that could be a problem and a hazard...

Pelican Case
Pelican cases are used a lot by the US military. Many of them are waterproof and very resilient to impact. But also not super eco...

Wax + Cotton
This is our new favorite method. It has been working well but you have to make sure it is truly watertight. We have also been mixing wax with cork in powder form, to make our material is better at floating, impact-insulating. What we do is that we wrap or device inside a thin film of paper, and we dip our device is melted wax, many times, attached to a thin thread of cotton.

The video shows what we are doing with another generation of device, you would do the same with your phone.

Start Collecting Devices Locations!

Launch of a drifter
35900538272_b7ea94bba6_k.jpg
Screen Shot 2017-08-20 at 00.09.59.png
Screen Shot 2017-08-20 at 00.11.09.png

And now it is time for you to get out and throw your device in the water!
In Hong Kong we have a great tide prediction system: http://current.hydro.gov.hk/en/map.html
Choose your launch point wisely as it will inform you where you should be launching your recovery operation (further step) later.

Export Individual KML Files

Screen Shot 2017-08-19 at 10.58.47.png

At this stage you should be able to see multiple of your devices moving on the map. Great.
This step is about collecting the data.
This is the link to collect the KML file from your data (Google Location History):

https://www.google.com/maps/timeline?authuser=1

What is a KML File?
"KML is a file format used to display geographic data in an Earth browser such as Google Earth. KML uses a tag-based structure with nested elements and attributes and is based on the XML standard. All tags are case-sensitive and must appear exactly as they are listed in the KML Reference. The Reference indicates which tags are optional. Within a given element, tags must appear in the order shown in the Reference."

https://developers.google.com/kml/documentation/kml_tut

Aggregate KML Files to One Google Earth File

Screen Shot 2017-08-19 at 11.05.09.png
Screen Shot 2017-08-19 at 11.05.22.png
Screen Shot 2017-08-19 at 11.05.42.png
Screen Shot 2017-08-19 at 11.06.06.png

Once you got the KML file on your laptop, you can open it using any text editor.

If you use mac, we recommend the free text editor Atom by GitHub.

If you end up with a lot of .kml files from your fleet of drifters, this is the coding free workaround:

"kmz is a zipped archive of kml or kmls.
You could try this: Create a folder Drag all the kml files into the folder Zip the folder, the file extension will be ".zip" Rename "zip" to "kmz"
kmz will open in kml friendly programs, like Google Earth and My Maps
If you then wanted the one file to be kml, you could open the kmz file in Google Earth. It should open as a folder with the kml files as sub folders/content. You could then right click on the main folder and select "Save AS-->kml"

https://productforums.google.com/forum/#!topic/maps/TIRfEkSgIwM

Optional: Collect Other Data Such As Temperature, Atmospheric Pressure, Wave Intensity

Samsung Galaxy S7 Edge - SECRET CODES
Screen Shot 2017-08-18 at 16.56.40.png
maxresdefault.jpg
Use_the_Hidden_Samsung_Developer_Menu_to_Test_Your_Galaxy_S7_21061.jpg
Screen Shot 2017-08-18 at 16.59.40.png
Screen Shot 2017-08-18 at 16.59.25.png
Screen Shot 2017-08-18 at 17.07.49.png
Screen Shot 2017-08-18 at 17.11.55.png

Now if you want to go further and collect more than just the location of your fleet of devices, you could be using a lot of the sensors on your phone. Modern smartphones tend to be jammed packed with sensors - take advantage of there like the folks of 1Sheeld:

1. Test your device
I would recommend first to test your device sensors. On Samsung, the video shows how to do it - using secret codes (video above)

2. GPS Log
Get a very nice GPS log with altitude, speed (with colors) and more with OpenGPS Tracker: data: https://play.google.com/store/apps/details?id=nl.s...

3. Wave Log
You can record the intensity of waves with Google Science Journal, it's awesome: https://play.google.com/store/apps/details?id=com....

4. Barometric Log
You can record the atmospheric pressure (if you can manage to expose your sensor while remaining watertight):
https://play.google.com/store/apps/details?id=org....

5. Sensor log
There are many options out there, I haven't tried this one, but it looks promising: Sensor Multitool: https://play.google.com/store/apps/details?id=com....

6. More sensors!
We are very interested in DFrobot KnowFlow for that it aims at measuring pH, Temperature, Dissolved Oxygen, Electronic Conductivity, ORP... AWESOME!

Retrieve the Device, Spare the Ocean

so-u-want-to1.jpg
plastic-ocean-1.jpg
zodiac-raft-and-snorkel-adventure-in-hawaii-124702.jpg

We assume that you had a good estimate of your phone battery autonomy. So BEFORE YOU LOOSE SIGNAL (because of battery or distance) you now have a great excuse to get on the water and go collect your devices!
You do this because you love the ocean, and you also probably love your phone, and your SIM Card with that sweet data plan right? Enjoy your sailing and clean up the ocean :)

Image credit: http://www.speakupforblue.com/5-ways-to-advocate-f...

https://www.classicvacations.com/tours-and-activit...

Share and Analyze Your Data

Screen Shot 2017-08-20 at 00.52.25.png
Screen Shot 2017-08-20 at 00.53.21.png
Screen Shot 2017-08-20 at 00.58.23.png
Screen Shot 2017-08-20 at 00.58.43.png
Screen Shot 2017-08-20 at 01.00.01.png
Screen Shot 2017-08-20 at 01.00.22.png
Screen Shot 2017-08-20 at 01.01.11.png

To share your data we recommend different ways:

1. Google MyMaps
https://www.google.com/mymaps
Simply Create a new map / Import or upload your kml / kmz, ta-daaaa!
One of the beauties of Google MyMaps is that you can also edit the data within a visual interface and move single points on the base map. Very handy if you have GPS anomalies! You can than re-export the newly edited KML file after you've cleaned it like a pro. What's really good is that once you made your map, you can easily share it with a lin or embed it as an interactive map online.

2. Google FusionTables
https://support.google.com/fusiontables/answer/252...
Google Fusion Tables can transform any CSV into a gracious map. Kml files are essentially CSV files, so it's a great tool to extract some data out of your KML file.

3. Go from .kml to .gpx and more
There are many geographic format out there that can help you get more out of your data. http://www.gpsvisualizer.com/ has many formats that you you can convert your kml into. Tools like http://www.trackreport.net/ , http://trackdetective.com/, http://utrack.crempa.net/, https://sourceforge.net/projects/gproko/ can convert your GPX file and give you many interesting stats. Useful.

4. GIS Packages
If you want to get serious about this, we highly recomend you to dive in the fascinating world of GIS, with QGIS for example :) http://www.qgis.org/en/site/

5. Real-time asset tracking
If you want to get super serious, you could even map this sweet fleet with

https://www.mapbox.com/use-cases/asset-tracking/

https://play.google.com/store/search?q=fleet%20tra...

Thank you for your attention.
Save the ocean!