In the documentation: https://docs.emlid.com/navio2/ardupilot/tips/
is mentioned that the relay function is only available on ArduCopter? For my new project I will need a relay switch on a Rover. What would you recommend doing? Installing ArduRover and look for a workaround or just instal Arducopter and chang all the parameters to work on the rover?
the Rover needs 4 PWM outputs: 1 for the main motor, 1 for steering, 2 for a robot arm.
1 Digital output to control a relay.
Sorry for the delayed response!
1 Digital output to control a relay
You could operate PWM pin as GPIO. This guide might help you to set it.
Please keep us posted about your results.
Hi, thanks for the link, will the GPIO pin be controllable over missionplanner or only from the raspberry pi terminal in this case?
Once you specify the pin as the relay in Mission Planner, it’d be possible to control it through the application
Hi, for some reason i can’t get this to work properly. maybe i’m missing something here:
- I used the command on the Navio: “echo 508 > /sys/class/gpio/export”
- On a connected PC I went to the full parameter list on Mission planner and set the value “9” to “RELAY_PIN2” and wrote the parameters to the Navio.
- Lastly I tried the command: “Do_Set_Relay” specifying “relay No# = 2”
Any suggestions what I might be doing wrong?
I’ll check this and get back to you as soon as possible
I decided you use a hardware work around by using one of these: https://www.aliexpress.com/item/4000150091126.html?spm=a2g0s.90423184.108.40.206184c4dD3Bj0l
it’s a PWM relais receiver so it can be set using the Do_Set_Servo command
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.