Quote:
Originally Posted by barnakiel
(Optional) - you can use smartphone sensors (gps, acceleration, etc.) as input to your AP motherboard.
This is easily done wireless-ly by harvesting your smartphone's sensor data and piping this data over serial BT or TCP (depending on what your Ap softwrae / hardware accepts).
Very easy. Cheap. Most owners have smartphones anyway.
|
If you just use whatever sensors in whatever smartphone, you won't be guarenteed the same resolution, and calibration maybe different. Different sensors have different drivers and different resolutions. Many of the
compass in smart phones are not very good. This leads to a lot of variability.
The mpu9255 is available for $4 and has good resolution and plugs into the raspberry via i2c, this is what I use. Maybe someday I will support "any" smartphone, but I think it can lead to a lot of problems.
Also, you cannot just "pipe out" on bluetooth or wifi and expect good results. This will add considerable lags and hiccups which greatly decrease ap performance. You don't want an accidental jibe because your bt link reset. I don't even recommend usb for this. I am using only i2c and serial for this critical communication. You can send wind or gps over wifi, and it can automatically fallback to
compass seamlessly if the signal drop.
I just sailed 1 week using the autopilot in the ocean. Average power
consumption was 4 to 5 a/h per day from 12 volts. This is using a very inefficient ram. With a very efficient ram, and smarter brain, this could be 1a/h per day. I can say it works much less than with the original
simrad brain, it doesn't move at all when the
boat rolls. It probably uses about half the power for the same course keeping ability.
I found that I can get average power
consumption very low if I accept course errors. They are still small enough to keep the sail full, but the autopilot doesn't
work to compensate wave motions. This is how I always sailed with the
wind vane, and it's working. Using 1.4 watts average
steering 4.5 knots wing and wing.
I found that upwind, or in very light conditions, the autopilot can use very little power, about half a watt, thats less than the raspberry itself! If the
boat is balanced, the autopilot doesn't do much until a wave knocks it or something.
In stronger conditions, 20 knots or more, running downwind, the tiller pilot begins to struggle a lot. It's using about 5 watts or more. I think if the brain were smarter it could do much better.