I am trying to use a relay to communicate with a raspberry pi, and I was trying to get a constant 3.3v when the relay is triggered and 0v when the relay is disabled. I believe that I have all of the relay configured properly because when i press the switch I get an output just not as expected.
This is my Relay pin configuration this is tied to PWM 8 or GPIO57 I have also tried using IOT1 (83) with the same output.
This is the RC input configured to relay 1
This is the output I get when connecting the oscilloscope this is when the relay pin is pulled low
This is the output I get when connecting the oscilloscope this is when the relay pin is pulled High
This is the servo configuration.
SERVO_FUNCTION: -1
RELAY1_PIN: 57
RC7_OPTION: 28
when the relay goes high it sends a 3.3v spike and not a constant 3.3v output and when the relay goes low it sends -3.3v instead of staying at 0v is this the indented behavior? if so what kind of relay can I used to get a constant 3.3v when the pin is pulled high and 0v when the pin is pulled low, or is there a different way that I can configure ardupilot so that I get the same behavior?