This caculation seems right, as you say hard to tell without something to compare to.
A voltage divider is just a couple of resistors, I attempted to explain in the wiki here: Wind Vane ā Rover documentation
But re-reading it maybe I didnāt do such a good job, i think there is a hand drawn diagram in the tread somewhere.
edit: i found the diagram, it doesnāt apply to this case. Sparkfun have a nice tutorial and happen to use 5v to 3.3v as a example.
I read the wiki and I found the diagram and I got confused.
That does not mean you didnāt do a great job, only means I am easily confused
At least I understand the problem can be solved.
I will study that article (at first glance it looks a bit intimidating though).
Thanks
Studied the article, and this is the circuit that worked for me
I purchased a whole pack of resistors but used these ones:
R1 = 1800 ohms (close to plus pole)
R2 = 3300 ohms (close to minus pole)
V out to the PIN 11 and should bring it to around 3.2V (definitely less than 3.3V)
Even though the volt from running WNDVN_CAL ends up with WNDVN_DIR_V_MAX = 4.9V, the flight controller can read it correctly and gets 0, 90, 180, 270 degrees just were it should be. The wind direction is working. So I think itās some kind of volt reading discrepancy depending on the ground used. I will not bother much with it.
But maybe I should?
Next, I finally received the Bourn unit and that also works.
Unfortunately I got the product 6630 S1D and not the 6630 S0D, this means my unit do not continuously turn around but stops after 360 degrees.
Anyway it does work fine with same R1 and R2 setup as the other unit.
However, it really need a lot of force to turn it around. And to open it to ādegrease itā seems very difficult to me without breaking the housing.
Unless anyone ask me, I will skip to get a new S0D version unit, since i will still need to āde greaseā that to make it work. I do will try if there is a need though.
Now will try install the Hall non contact sensor in the wind vane housing.
Yesterday my independent reference, a little handheld anemometer, arrived and I tested it today to compare readings. I used a hairdryer to create different wind speeds.
The results verifies that my Cups as well as the RPM factor I used are all okay.
Less than 1% difference, if omitting the low wind speeds the propeller based handheld anemometer could not pick up.
Unfortunately after waiting long time for delivery then I killed one of my rfd900+ telemetry/ppm units with applying 12volts by clumsiness.
at the moment I only have a Bluetooth link for telemetry so I want to complete the build before taking it out to the lake. So still need wait another week.
The Hall type wind vane is now installed in the housing. It was easy just using a drill two screws and hot glue. The housing is easily attachable and detachable to the boat for transportation.
Peter, you pointed me to the hw definition file already, but itās difficult for me to understand it. The manual say " * RevoMiniās OPLink port can be used for external SPI periphereals connection". Buy it seem to require compiling custom firmware based on changes to hwdef file.
Any suggestion here?
I am also looking to add one more analog pin (for lipo current sensor).
looks like the SPI bus is setup for the SD card by default. Iām not sure how to hook it up, i think there is a thread on here somewhere with more information, or on RC-Groups. I think your out of luck for another analog pin though unfortunately. Current is not so important on a sailboat, its not like your going to be using lots. I think your only other option is a different flight controller.
Hi all, my team and I are undergraduates at UC Davis, and weāre working on our senior design project, which involves assembling an autonomous control system for a model Laser class sailboat. We purchased our first Pixhawk (CubeBlack) recently, and, after installing Mission Planner and following the instructions here, weāre wondering what the next steps are exactly. For example, is the firmware discussed during the āInitial Setupā portion of the aforementioned tutorial all we need to upload to Mission Planner prior to testing? We found this directory as well and are wondering what relevance these files have to our needs. None of us are familiar with Ardupilot/Ardurover, Mission Planner, or Pixhawk; however, we are very eager to learn and would be very happy to share the results of our project upon completion this June.
Unless you want to use a ācups typeā anemometer you will be fine running the stable release. This is what you will get when installing rover with mission planner.
This is an awesome find! Iāve been using ArduPilot/Pixhawk for planes for a couple of years now. However, recently Iāve decided to take on a new task. Iād like to make a fully autonomous and wind/solar powered sailboat that can travel anywhere in the world.
This a great find!
Did you guys notice if the sailboat used less power to operate the sails than it would a constant propeller?
Hi Pete, thank you for the prompt response. Weāve completed the instructions in the pages youād mentioned; however, the anemometer we currently have is a cups-type. Thereās no need to use this anemometer specifically, however, and weād be interested in learning what anemometer you and others recommend.
of course, sail is much more efficient than propeller. I easily get several hours out of a 3s 2200 mah pack. For long endurance the key thing is reliability, there is the microtransat where boat sail across the Atlantic autonomously.
for a cups type anamomiter you will have to be on the latest release. The wiki is update with everything that has been tried so far i think, this is still quite new. The key thing for selecting a ācupsā type anemometer is to make sure the manufacture makes the constant available so you can calculate the wind speed from rpm.
I see, well we tried uploading the latest version of the firmware to our CubeBlack and ran into an error (Mission Planner said the firmware was incompatible for some reason). We loaded the stable version but are unsure whether it will work with our anemometer.
Is there another type of anemometer besides a cup anemometer that would suit our needs? Also, is it mandatory to have an ESC to run the motors or can we just plug the motors directly into the Pixhawk?
Understood, and thank you for your assistance so far.
To better explain the anemometer weāre using, it is the Davis Anemometer that comes equipped with a potentiometer wind vane and cups for wind speed measurement; however, the connection that comes with it is an RJ11, for use with a breakout board that will have the following outputs:
ground, wind speed (digital), wind direction (analog), and power.
The following document explains how to connect with an Arduino, but we are having trouble figuring out how to connect to the ADC input on the Pixhawk.
We were thinking of connecting the wind direction analog output along with power and ground to the ADC port, but are unsure of how to also connect the digital wind speed output as well. Again, any help would be greatly appreciated!
That sounds good, you might have to check if the ADC is rated for 5v, it could be 3.3v only, i canāt remember. For the speed you will have to connect to an aux port pin. I would suggest pin 6, this would be:
RPM_TYPE = 2
RPM_PIN = 55
BRD_PWM_COUNT will have to be 5 or less, i think its 4 by default so leave it at that. And you will have to check you RELAY_PIN, RELAY_PIN2 ect are not set to 55 so the pin is free to use for rpm
Then you should see the rpm value changing in mission planner as you spin the cups, you can double click on one of the things in the quick tab to change it to rpm1
Then you just have to change WNDVN_SPEED_TYPE to 3. And calculate the appropriate RPM scaling factor to get the wind speed in meter per second. in your link it gives:
According to the Davis Anemometer technical document 1 mile per hour is equal to 1600 revolutions per hour.
so that is just a matter of working out the units to convert it
edit: that seems like quite a nice unit, maybe one you have it working you could provide some pics and the parameters you ended up with and we could add it to the wiki