Connecting Ardupilot to Electric Wheelchair

Currently, the wheelchair I have uses a Shark Bus for communications to its stock controller.

I have found some details on how I can communicate through the Shark Bus with an Arduino nano to the stock controller.

If I get the above communication part working, I am wondering how I can connect Ardupilot to the Arduino which is talking to the stock controller? Is the intermediate Arduino even needed?

Here is a schematic I found of how the Arduino nano would be connected to the existing Shark Bus:

You can easily read the pulse width of the servo outputs from Ardupilot with the PulseIn() function on an Arduino. The range should be from approximately 1000 to 2000 microseconds. So if you set SERVO1_FUNCTION=73 and SERVO3_FUNCTION=74 and connect servo1 and servo3 outputs to your Nano, you can read the left and right throttle values.

1 Like

Thanks, @ktrussell for the response! I will look into your suggestion.

Be aware of this:

  • ArduPilot is NOT certified for use in applications where ArduPilot is effectively in control of human lives. Members of the development team must not knowingly assist in projects where ArduPilot will be in control of human lives. “In control of human lives” includes but isn’t limited to manned aircraft.
1 Like

Yep the wheelchair will not be holding any people or operating in such an environment

1 Like

How do you set the following; “SERVO1_FUNCTION=73 and SERVO3_FUNCTION=74”

On the documentation for skid steering it seems to be a little bit different:

I do currently have the latest mission planner installed but can’t seem to access the dropdown libraries as they are greyed out.

That drop down list should do the same thing, but you can go to the Full Parameter List and search for the parameters and set them to 73 and 74 and then click “Write Parameters”. You should be connected to the flight controller. The drop downs are probably disabled if you are not connected to the flight controller, as well. Throttle Left and Throttle Right are 73 and 74.