Using the raspberry pi to accept APM's MAVLink stream and make this available on a TCP port, so missionPlanner can connect over WiFi or Ethernet.

Also using a 10Ah USB battery to power everything.

Not the best photo because I left the telemetry cable at work.

You must have a 5v-3.3v level shift between the two...raspPi is not 5v tolerant (which APM uses)

Read more…
E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones


  • Nice :) 

    The web service is very interesting!

  • No problem at all. I am setting the rPi up as a webserver to host a webcam on webpage, with some heads up display type data sniffed from the mavlink stream, all over wifi. Maybe with a login to allow users to update missions on the fly.  I shall make up a live tutorial of my progress, as I think people may find this useful if they have limited linux experience.

    I am connected to the 3v3 pin, gnd, GPIO14 and GPIO15, as per the documentation here.

  • What serial pins are you connected at in the RPi ?

  • Thank you very much! :-)

  • ...that code exposes the serial to port 2000, via the telnet protocol, where the serial stream is at 57600baud

  • sudo apt-get install ser2net

    sudo nano /etc/ser2net.conf

    % change last lines to
    2000:telnet:600:/dev/ttyAMA0:57600 8DATABITS NONE
    1STOPBIT banner

    sudo /etc/init.d/ser2net restart

    sudo nano /etc/inittab
    % add hash to this line
    #T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

    sudo nano /boot/cmdline.txt
    % delete references to ttyAMA0
    % "console=ttyAMA0,115200 kgdboc=ttyAMA0,115200"

    sudo shutdown -r now

    This then runs as a daemon in the background all the time. Have tested two way comms using an FTDI cable and it works well! Will test with APM & mission planner when I get my cable back from work.

  • I'm planning to test this solution as well. Could you please share your RPi script/code? :-)

This reply was deleted.