jeudi 13 juin 2013

Building an anchor watch

It's not only Marie who has many good recipes, I do as well! Here is how to bake an "anchor watch", which is a small device telling you, when you are anchoring, that your anchor has lost grip and that your boat starts drifting.

In other words, this device wakes you at night with a horrible sound if the boat drifts out of the circle whose centre is your anchor, and whose radius is roughly the length of chain you have been pulling out. Having such a device makes us sleep much better (especially Marie, with a factor 2 she says) since we know that we'll be warned if something goes wrong.

Ingredients:
- our hoover's batteries (or any 12V source of power, your boat batteries for instance),
- a cheap car GPS antenna with USB plug
- a couple of small electronic components: one NPN transistor, one 12V buzzer, one 1kOhm resistor
- the magic ingredient: a Raspberry Pi, a small computer of the size of a cigarette package, a that costs only $35

Recipe:
- The Raspberry Pi receives the position of the boat through the GPS antenna, and calculates the distance to the anchor (specified) using a simplified version of the Haversine formula for small distances. It deduces if the boat has drifted or not.
- If she did, the voltage of one of the GPIO pins (simple electronic interface of the Raspberry Pi), goes from 0V to 3.3V. And that's where the NPN transistor lets the current pass through the buzzer and...
- BEEEEEEEEEEEEEEEEEEEEEEEEP. Wake up and put your boots on sailor, it's time for some action!

Picture of the final product (well, that's a prototype, OK?)

"Chuck Norris approved" during the night of June 9th 2013, in a 35knots gale!

5 commentaires:

Neil a dit…

I'm geek and I know it.

:)

Bien ouéj en tout cas!

ps: mpeDadi Protractors

Doudou a dit…

Neeeeeerd!! You did it !

Maintenant, je veux une video spéciale du son du fameux buzzz !

Thomas a dit…

@Doudou: n'est-ce-pas que ca aurait classe d'avoir ca de pret quand on etait a notre mouillage de surfeur de Little Harbour?

Kevin a dit…

Heuh ... ce n'est pas une fonction disponible par défaut dans la plupart des GPS ? c'est le cas sur le mien le Furuno classique maintenant agé de 10 ans !

Thomas a dit…

@Kevin:
Eh non! On a une simple antenne GPS NMEA reliee sur notre centrale NKE (qui elle n'implemente pas l'anchor watch). Et nos GPS a main de secours sont des GPS de rando, pas orientes marine.