2021-05-12, 08:58 AM
Hi,
My Setting is a PI4 with OP2 and an Pi Zero-W with Tinypilot
I managed to get my Sensor RF300 working and sending NMEA0183 Rudder position to the OP2.
The RF300 a Sensor that sends a freequency (center at 3400 HZ) and a change of 1 degree gives a cahnge of 20HZ.
The sensor has only two wires 12v and GND and the produced (ripple)-frequenciy is stable for an input from 10 to 15V.
A simple circuit and an Arduin Nano Clone transforms the freequency into NMEA and send it with 38400 Baud to
the OP2 over USB.
From there it goes to the Tinypilot (WIFI) and it is visible/configurable in the Pypilot Plugin in OpenCPN on the PI4.
This is working, and y also have Rudder-limit Switches for safty ....
I would now like to get the Rudder information directly into the Arduino were Motor.ino is runing, to avoid latency ....
So my thinking is instead of phasing a NMEA sentence to the PI4, to output a (PWM) voltage the witch will serve to the Arduino, runnting Motor.ino as input for the Rudder reference.
My question is how do I get a reference voltage to keep the precision ???
Should I output from the rudder-sensor-arduino two voltages, one as reference voltage and one as rudder-pos-voltage ???
How do I connect and do I have to modify motor.ino for that ???
Thanks for any input on that and
save sailing
Andreas
My Setting is a PI4 with OP2 and an Pi Zero-W with Tinypilot
I managed to get my Sensor RF300 working and sending NMEA0183 Rudder position to the OP2.
The RF300 a Sensor that sends a freequency (center at 3400 HZ) and a change of 1 degree gives a cahnge of 20HZ.
The sensor has only two wires 12v and GND and the produced (ripple)-frequenciy is stable for an input from 10 to 15V.
A simple circuit and an Arduin Nano Clone transforms the freequency into NMEA and send it with 38400 Baud to
the OP2 over USB.
From there it goes to the Tinypilot (WIFI) and it is visible/configurable in the Pypilot Plugin in OpenCPN on the PI4.
This is working, and y also have Rudder-limit Switches for safty ....
I would now like to get the Rudder information directly into the Arduino were Motor.ino is runing, to avoid latency ....
So my thinking is instead of phasing a NMEA sentence to the PI4, to output a (PWM) voltage the witch will serve to the Arduino, runnting Motor.ino as input for the Rudder reference.
My question is how do I get a reference voltage to keep the precision ???
Should I output from the rudder-sensor-arduino two voltages, one as reference voltage and one as rudder-pos-voltage ???
How do I connect and do I have to modify motor.ino for that ???
Thanks for any input on that and
save sailing
Andreas