Hi Folks. I know I've found the right forum from earlier postings, pictures from inside this wind direction sensor, etc.
I'll start with posing my question, then follow up with some background for those of you who are interested.
What's the simplest way for me to connect this wind direction sensor into my small picaxe computer on a robot boat ? At present I'm testing my picaxe software, which can monitor the analogue voltage on a spare input pin, using a 10k potentiometer, connected across the +5v 0v supply, and with it's slider connected to the input pin.
I've already snipped wires, tested with a meter on ohms, and pulled the unit apart - confirming it is the same (spare unit for a WH1080) as the product discussed here. It seems to me that the forth (yellow?) wire is for when the product is used to detect wind speed. For my use, I assume I'll use the green, black and possibly red wires.
If I can connect it as a "variable resistor", ideally in the ballpark of 0 to 10k, then my software inside the picaxe will need to test for maybe 16 voltage thresholds and translate these to rotational position. Thanks for that earlier posting with resistance vs rotation: N 33k, NNE 6.58k ... W 120k ... NNW 21.9k etc.
From earlier postings on this thread, it seems to me that the simplest solution might be for the green wire to go to my input pin, and for something like a 100k pull up resistor from there to the +5v. I can live with just 22.5 degree accuracy, but it seems it could be twice this - subject to limitations discussed earlier on this thread. I'm advised from the picaxe forum that my resistors at the input side should be in the 10k ballpark, but I've not investigated limitations in the picaxe.
I anticipate having to add some components, even if only the odd resistor. If this cannot be done, for my application, then I could imaging wiring my own resistors into those 8 reed relays - if that were needed. Exploiting this product seems a much quicker way of meeting my need for the simple autopilot on my robot boat to get an approximate direction of wind, relative to boat heading, so it can sail close to the wind. Yes - it is a small yacht. Reliability and simplicity are the key features needed, but more accuracy could be useful. Before finding this product and getting one to test, I had thought I might have to build something similar from scratch - either using reed relays or a hall effect chip.
Now some background: you will find lots of information and an amusing "Snoopy Sails!" video on my hobby robot boat page
http://www.gpss.co.uk/autop.htm This is part of a "friendly international competition" to be the first robot boat to sail itself across the Atlantic. Most of those participating are academic outfits, including from UK, France, Switzerland, Portugal, USA, Canada. For me it is simply a hobby project, occupying part of my time for over three years. We started with a Pocket PC based autopilot, but right now I am experimenting with a much simpler and more primitive picaxe processor based solution. It has just three parts: GPS --->picaxe---->rudder servo. We are testing the basic steering and navigation logic now. I then want to add a wind direction sensor - and that's the reason for this posting. I only ordered it yesterday, off e-bay, and it arrived this morning. It looks as if I can make good use of it.
Thanks for the earlier postings, and thanks in advance for any ideas.
Either via this forum or direct to me on
gpss@compuserve.com
Robin
http://www.gpss.co.uk