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 Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
DIY Robocars via Twitter
RT @chr1sa: We've got a record 50 teams competing in this month's @DIYRobocars @donkey_car virtual AI car race. Starting today at 10:00am…
Nov 7
DIY Robocars via Twitter
Nov 6
DIY Robocars via Twitter
RT @a1k0n: Car's view, using a fisheye camera. The ceiling light tracking algorithm gave me some ideas to improve ConeSLAM, and having grou…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: To get ground truth I measured the rug, found the pixel coordinates of its corners, calibrated my phone camera with my standard…
Nov 5
DIY Robocars via Twitter
RT @a1k0n: @DIYRobocars is back in December, but outside. Time to reinvestigate ConeSLAM! I rigged up a quick and dirty ground-truth captur…
Nov 5
More…