fgorina / RF300-Converter

MIT License
2 stars 0 forks source link

A module for connecting Simrad RF300 Rudder feedback to PyPilot and SignalK

THIS IS A TEST PROJECT!!!

Actual source also includes code for a tank level with ultrasounds. Please, just disregard it.

Also there is a lot of code for connecting to signalk that may be ommitted.

Most of the tank code is in level.h and most of signalk code in signalk.h

Pending to create classes for these tasks (jusat a project for tesing here).

So for the conversion of frquency to voltage and reading the angle, all the code is in main.cpp and esentially in :

void IRAM_ATTR ISR()

void presentationTask(void *parameter)

void setup()

void loop()

PINS

GPIO 13 - Input frequency signal
GPIO 27 - Frequency Generator
GPIO 26 - DAC output
GPIO 17 - PWM output

For the tank level meter

GPIO 12 - Trigger 
GPIO 14 - Output from transducer. Pulse length proportional to distance