• DepthAI Camera Crashing - Due to USB bandwidth issues?

zstarr4098 Have you checked power? The Pi 3B uses a microUSB port which is terrible for supplying decent amperage. Get a USB power meter pass-through plug. I use this one:

EDIT: TERRIBLE FORUM SOFTWARE it is a US amazon link with gp slash product slash B07FMQZVW2 at the end

and plug it between the depthai device and the USB-C converter. If you see it dips more than 5-10% below 5V while it is running then you the resistance in the power cable is too high or the supply is dropping voltage to keep up with power requirements. Look up 'undervoltage in raspberry pi' for information. My solution to this is to use a Y cable from the USB and put data through the pi and power through the same powersupply the pi uses so that the microusb cable is not the limiter. Note that this will not work if the supply itself is the limiting factor or if you use two different supplies.

PS Luxonis, please fix your text editor it is atrocious.

    Hi vital ,

    I think that the power could certainly be the issue - I have my Raspberry Pi connected to a power bank of 10,000 mA with a micro-USB output of 5V-2.4A. It does give me a low voltage warning. I currently also have a 20,000mA power bank with output of 5V-3A, so I will use that one to power the DepthAI camera.

    Clarifying questions about the Y cable solution: since my DepthAI camera only has one USB-C port, how would I orientate the cable? Also, if the output of this power bank is 5V-3A and the Raspberry Pi only needs 5V-2.5A, would I need to use this solution? Thanks.

      zstarr4098 Powerbanks are made for charging devices, not powering them in use. The batteries in devices are 3.7V per cell nominal, so drooping below 5V is not generally an issue for them. Thus many powerbanks are terrible at regulating output voltage. If it has a USB-C output with PD on it then you are in better straits because the PD spec requires a steady 5V output. The official Pi power supply gives out 5.1V instead of 5V to compensate for voltage dropping on the microusb cable, so even at a steady 5V you might have problems.

      The Y cable I use has an USB-3 blue port and a USB-2 white port on the Y end and a USB-3 blue port on the single end. The blue Y is for data and the white Y is for power and the single is for the depthai device. I got it on the site which shall not be named lest the forum software go nuts on me but if you search for "zdyCGTime USB 3.0 Extender Cable USB 3.0 Female to USB 3.0 & USB 2.0 Male Extra Power Data Y Splitter Charger Extension Cable(33CM/13inch)" you will find it.

        Hi vital ,

        Thanks. In that case, should I find an alternate way of powering the camera (My project is outside, and must be powered from a remote source)? Would using a battery pack or something be better for that?

          zstarr4098 FYI: Don't use two different powerbanks at once. Use the same powerbank with two different ports.

          zstarr4098 Just get a powerbank that has two USB-C PD ports on it and make sure the USB-C to USB-A converters you use have the 5.1k resistors in them to tell the powerbank you want 5V.

            vital Ok. So to summarize: I need to get a power bank (would it matter 10,000 or 20,000 mA) that has two USB-C PD ports, a Y cable, and 2 USB-C to USB-A converters that have 5.1V resistors.

            2 questions: Can I not just use a separate power bank to power my Raspberry Pi (it is attached to the case)? Also, how can I check to see if my USB-C to USB-A converters have 5.1V resistors? Thanks.

              zstarr4098

              Part 1: Yes

              Part 2: You can't run them off different power sources because the USB data and the USB power are still linked together through the Depthai device. The two power sources will have their own voltage regulators in them which change slightly depending on use and heat and also work at different on-off cycles (switch mode regulation turns voltage on and off quickly to regulate it) and they will not be in sync. It may work, or it may give you strange errors you try and debug forever or it may cause a black hole which sends you Pi into another dimension -- the fact is 'I don't know what will happen if I do this' is a bad idea when you are trying to get something working that has never worked before.

              Part 3: make sure it supports 'fast charging' or 'charging' not just 'high speed data'.

                vital oh okay that sounds scary… Thanks a lot! I will post an update once I test it out.

                -Zach

                Hello vital,

                I can't find the Y cable for the USB anywhere unless I order it - which will take more than two weeks to arrive. Is there any other way I could work around the voltage issue?

                zstarr4098 Get some 26-22ga insulated butt connectors and two USB 2.0 cables. Cut the ends off the two cables and strip two ends and one end. Twist the black wires from the two ends together and put them in a butt connector with the black wire from the single end and crimp it. Connect the red wire from an end to the single end and the green and white wires from the other end to the single end. Ziptie them. Voila, you have a USB-Y cable. Red wire is power, Green and White are data.