2025-09-29, 10:01 PM
Hello,
I am trying to write a flow that will use the Apparent Wind data in Signal K, convert that from Radians in to 3 analogue voltages 0v to 10v, phase shifted +120 degrees, and -120 degrees to drive the old analogue Stowe wind instruments on my boat.
I have PI5 and 2xGravity: 2 Channel I2C DAC Module, 0-10V - DFR0971 connected up on the i2c GPIO output pins.
I have worked out a function to convert radians to 0 - 10volts, and then write that voltage out to the DACs and phase offset them.... but I can't get the DACs to output the correct voltages. My function appears to output the correct byte values, but a volt meter across the output pins is wildly off.
I'm using the i2c Out node to drive the DACs but I'm doing something very wrong. The address of the DAC also keeps changing from 5F to 5B and back again at random point seven though the dip switches on the DACs are always set to 5F.
Here is my current flow, set for just 2 phases. I was going to try and add the third when I got one working! I'm very stuck and would love some help!
https://github.com/MrGorsky999/Signal-K-.../tree/main
TIA, Al.
I am trying to write a flow that will use the Apparent Wind data in Signal K, convert that from Radians in to 3 analogue voltages 0v to 10v, phase shifted +120 degrees, and -120 degrees to drive the old analogue Stowe wind instruments on my boat.
I have PI5 and 2xGravity: 2 Channel I2C DAC Module, 0-10V - DFR0971 connected up on the i2c GPIO output pins.
I have worked out a function to convert radians to 0 - 10volts, and then write that voltage out to the DACs and phase offset them.... but I can't get the DACs to output the correct voltages. My function appears to output the correct byte values, but a volt meter across the output pins is wildly off.
I'm using the i2c Out node to drive the DACs but I'm doing something very wrong. The address of the DAC also keeps changing from 5F to 5B and back again at random point seven though the dip switches on the DACs are always set to 5F.
Here is my current flow, set for just 2 phases. I was going to try and add the third when I got one working! I'm very stuck and would love some help!
https://github.com/MrGorsky999/Signal-K-.../tree/main
TIA, Al.

