pixhawk + Raspberry pi Zero w

hi guys,

trying to set up my rpi zero w with pixhawk as per these insructions: http://ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html

did a quick test to see if I get power by connecting power via usb to pixhawk ONLY and I don't seem to get anything.

am I assuming the wiring from a "large" raspberry pi would be the same for the zero?

to  clarify I have connected the +5v but no power being drawn.

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

Join diydrones

Email me when people reply –

Replies

  • Awesome, thanks a ton!

  • Hey, it's actually super simple.  Take a normal usb2 cable, cut in half, take the small plug half and strip the outer sheath where you cut it.  You'll end up with something like this:

    https://electronics.stackexchange.com/questions/183218/can-the-data...

    Then just connect the + and - from your BEC to the black and red wires of that bit of the usb cable.  Really simple, and gives your raspberry some protection from spikes, reverse polarity, incorrect voltage etc.

    Can the Data wires of a USB cable power a LED?
    I got a USB wire from an old mouse and the wires were soldered to the circuit as: Green - D, Orange - C, Blue - V and White - G. Assuming orange was…
  • Thanks again fnoop, helpful as always. I don't suppose you have any info on the usb  cable conversion?

  • Most of us are amateurs-in-learning :) (I certainly am).  You can buy a 5v BEC from any drone/hobby shop, as long as it does 2-3a that will take care of anything a raspberry is likely to consume.  A lot of PDB (power distribution boards) for your ESCs these days have 5v BECS as well that will power a raspberry.  Yes a zero is powered through the GPIO pins the same as any other raspberry, so should work.  Make sure you have the right pins connected (!) and you have the ground connected.

    If you can, power the raspberry through the USB as it has polyfuses and other protection that the GPIO power rails don't have - it's a little safer for the raspberry, but a bit harder to wire up as you have to cannibalise a USB cable.

  • Well thanks for that fnoop, anything that can cause a catastrophic failure is obviously not a good idea, do you know if there is an official or advised way to power the pi3? As I'm struggling to catch your drift with powering from bec (as you can tell I'm no pro)

  • Firstly the telem2 port in that diagram is a lower power port, the telem1 port is 'high power' as detailed here: 

    http://ardupilot.org/copter/docs/common-telemetry-port-setup-for-ap...

    but can still only handle up to max 1a and is still not a good idea to go up that high - and a raspberry can easily exceed that if you push it (max cpu, wifi, anything plugged into usb) particularly if powered directly through the 5v rail which has no limiting, unlike the usb.  If you're just using a pi zero on it's own then you should be fine most of the time, as it draws a lot less power.  I think that doc page was created back before the raspberry had quad cores, wifi etc which consume a lot more power.

    The main problem is if you draw too much power then you will affect the voltage available to the pixhawk itself and risk suffering a brownout, where the voltage drops to a point that the pixhawk can no longer function.  Then your craft drops out of the sky.

    So it's strongly recommended to power anything significant from a separate power source.

    Telemetry / Serial Port Setup — Copter documentation
  • Fnoop, first time I've heard this, can you explain a little? I've powered a pi3 this way before but didn't know it was a bad idea. Are you able to explain your setup?

  • That's terrible insane advice - never power the raspberry from the pixhawk.  That's an error in the docs and should be fixed.  Power the raspberry from a BEC or USB, separately.

  • So after some research the wiring is the same for rpi3 and zero, has anyone got the zero to work?

  • MR60

    The image is meant for a RPI3, not a RPI zero. That might be the issue.

This reply was deleted.

Activity

DIY Drones via Twitter
2 hours ago
DIY Drones via Twitter
Thursday
David Hori liked Isabella Domi's profile
Wednesday
DIY Drones via Twitter
An improved version of the Intel OpenBot https://ift.tt/2KkHT8Q
Dec 14, 2020
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16, 2020
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10, 2020
DIY Drones via Twitter
Getting started with Robocars https://ift.tt/2HWsudU
Nov 1, 2020
DIY Drones via Twitter
RT @chr1sa: The US government just approved 5 US-made drones for purchase, all based on the @Dronecode @PX4Autopilot standard. Great news f…
Aug 20, 2020
DIY Drones via Twitter
RT @MarvelmindMaxim: Extreme precision for 60 swarming robots. #marvelmind #autonomousrobotics #robotics #swarmrobotics #rtls #ips #indoor…
Aug 3, 2020
DIY Drones via Twitter
RT @MarvelmindMaxim: Precise (±2cm) tracking for racing boats and autonomous boats. Works outdoor and indoor. #autonomous #AutonomousVehic…
Aug 3, 2020
DIY Drones via Twitter
RT @MarvelmindMaxim: Helping PixHawk folks to fly autonomous quadcopters using PX4 and ArduPilot. https://marvelmind.com/drones/ Equally suitab…
Aug 3, 2020
DIY Drones via Twitter
RT @davsca1: Here is the video of the performance. This paper was a huge group effort and more than one year of work, where we combined and…
Jul 16, 2020
DIY Drones via Twitter
RT @chr1sa: My talk on PX4 and FAA certification is coming up at 1:45 PST today on the PX4 Dev Summit livestream. Includes some cool new st…
Jul 7, 2020
DIY Drones via Twitter
RT @seesharp: I'm tuned into the PX4 / Dronecode free live conference. Great stuff. Microsoft AirSim talk in 10 minutes. https://t.co/0zbZ2…
Jul 6, 2020
DIY Drones via Twitter
RT @chr1sa: Here's today's best times in the @DIYRobocars/@donkey_car virtual race of AI cars compared to last month's race on the same tra…
Jun 20, 2020
DIY Drones via Twitter
Jun 19, 2020
More…