Q: PI PICO OUTPUT PEN PROTECTION FROM REVERSE VOLTAGE
I am running a BLDC motor with Rasberry Pi PICO using DShot ESCs. Everything is good well when I run 1 or 2 motors. However when I try to run 4 motors at the same time. It fries my PICO. It seems motors or ESC is producing a reverse voltage which flows back and fries my PICO. I tried a number of …
1. Try 1kHz < f < 5kHz, 2, 1N4148 is signal guy, not Schottky. 3. 519 is OK. I like it. 4. BLDC is easy to fry: electronics.stackexchange.com/questions/514793/…. Good luck.
Thank @tlfong01 I will try the 5819 first then.
also what about Zener Diode. Are they any good in this scenario ?
@Joan thanks , please see the question I just added the circuit diagram with a bit of description. Hope the basics are right 🙂
@ZAK: (1) Zener is to get a stabilized reference voltage, eg in regulated power supply. (2) You might find the following useful: Back EMF Flyback Diode Selection Notes – rpi forum 2019ja17 forums.raspberrypi.com/…
One more thing – I don’t know anything about DShot ESC. So my suggestions might be silly. What is DShot ESC Protocol? – 2016nov08 oscarliang.com/dshot
Thanks @tlfong01 so its means they wont work for me. Thanks
@joan PICO is only connected to ESC and RPI and only ESC got that much power to fry a PICO so the main point of investigation atm. DSHOT protocol is digital protocol to replace old analog ones. Mainly concerned with how to pass data from MCU to an ESC. Where DShot (ESC) got its own MCU to interpret the input and forward it to motors. So the protocol in itself has nothing to do with my problem.
@tlfong01 looking at the diagram do you think putting a diode btween PICO and ESC will solve my problem? like in case voltage is flowing towards the pico then will stop it and also not affect the outward frequency ? My main question here is Diode can pass KHz of frequency without rectifying (changing/distorting) it towards ESC ?
@joan so if I understand you are saying I dont need Diodes ? The strange thing is, sometimes it works properly even with 4 motors and always works with 2 motors. So I thought it might be because 4 motors pushing back more voltage towards PICO and frying it. However if you think I need diodes could you suggest the part number ? thanks
@tlfong01 tested 1N5819 they dont work…seems blocking the whole signal from PICO to ESC.
A coouple of questions: (1) BLDC motor usually has one than one input signal. So yours don’t seem to be BLDC, but just DC motor. (2) You battery might only be strong enough to drive two motor and not more. (3) Flyback diodes usually connect to motor side, no input signal side.
Jul 11, 11:50
@tlfong01 (1) I didn’t show in the diagram but each motor is connected to ESC using 3 wires. so they are BLDC (2) It can be a reason however it works sometimes, which makes things worse to solve the problem (4) Make sense, however it will keep the ESC safe from motors but not sure if PICO is affected by ESC leaking and not directly from motors. Like if ESC decides to stop / reduce the voltage to reduce the speed then the riffle effect of the voltage goes to the PICO ? T
The interesting thing is….I removed all the Diodes and its working fine now (again). But still want to know the reason behind as it makes the whole system unpredictable. I say its working fine because before frying PICO one of the motor gets desync (vibrate/gets noisy or doesn’t run at all), which it is not doing atm.
@ZAK: (1) So your one wire is in fact three wires. (2) Perhaps you can give us the links to your ESC and BLDC motor.
@tlfong01 no sorry, there are 3 wires to each motor from ESC to a motor. links for ESC and motors are hobbywing.com/goods.php?id=653 or aliexpress.com/item/… and motors aliexpress.com/item/…
and I am using a 4 cell Lipo battery with upto 16v .
Many thanks for the links: (1) XRotor Micro 60A 4in1 BLHeli-32 DShot1200 (Overview, Spec) – HobbyWing hobbywing.com/goods.php?id=653 (2) Hobbywing XRotor Micro 60A 4 en 1 BLHeli-32 DShot1200 3-6S ESC pour drone de course FPV Quadcopter US$61 – AliExpress fr.aliexpress.com/item/… (3) XRotor Micro 60A 4in1 BLHeli-32 DShot1200 (User Manual) – HobbyWing hobbywing.com/products/enpdf/XRotorMico60ADShot1200en.pdf / to continue, …
/Continued, … (4) GARTT 4pcs/6pcs ML 3515 400KV Brushless Motor for QAV Quadcopter Multicopter RC Drone ()With Spec)- AliExpress US$118 4PCS fr.aliexpress.com/item/…
Now let us refer to the following picture for discussion.
Question 1: Troubleshooting suggestion. Are you using the CTR pin? You can use Pico ADC pin to measure the current (11.75mV/A).
Ah, locking down lunch time. See you later.
2 hours later…
Jul 11, 14:22
Troubleshooting suggestion 2: I would suggest to calibrate the motor current for the following spec: (i) Power: 22.2V, (ii) Throttleing rate: 50% with (iii) current about 3A.
7 hours later…
Jul 11, 21:36
So we are ready to do the point to point wiring:
(1) Lipo 4 ~ 6S,
(2) ML3515 x 4,
(3) Pico GPIO (PWM) pins x 4,
(4) Pico GPIO (ADC) pin x 1.
Question 2: Can you show me a photo of your wired thing?
Question 3: Can you show me the listing of your Pico Thonny MicroPython code, with the following functions:
(a) 4 GPIO pins with 50% PWM Throttling rate,
(b) Pico ADC pin measuring the total motor current (11.75mV/A)?
13 hours later…
Jul 12, 10:33
Now I am drawing a schematic of the Pico W + Lipo 6S + ML3515 x 4.
Jul 12, 10:50
Most DShot ESCs normally will also operate as normal PWM ESCs.
As noted above, I will use PWM instead of DShot for programming the ESC.
5 hours later…
Jul 12, 15:23
Now I have drafted a schematic.
(1) Pico W is 3V3 logic, but XRotor ESC is 5V0 logic. So Pico GPIO 3V3 logic pins might need to shifted up to 5V before connecting to 5V ESC.
(2) Pico GPIO pins are logic signal only, no heavy current flows there, so there is no need to use any flyback diode to prevent back EMF.
(3) Instead, flyback diodes might be needed on the Lipo battery bank side to prevent back EMF damage.
(4) For troubleshooting, a multimeter can be used to measure the total BLDC motor current (at 11.75mV/A).
9 days later…
Now I am thinking to DIY a switching power supply unit (PSU) to test the BLDC motors, instead of using a real Lipo 4s ~ 6s. The PSU will have (1) a variable output voltage, (2) limiting current output, and most important of all, (c) A flyback Schottky diode to prevent back EMF damaging the Pico MCU.
Leave a Reply