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
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…