Hello everyone,
I am currently building a DIY drone using brushed motors and I'm facing several issues. When I arm my drone and start increasing the throttle, I encounter the following problems:
Inconsistent Motor Start:
-Some motors start spinning early while others only start at full throttle.
-Sometimes only two motors (specifically, the front right and rear left) spin while the others don't.
-Occasionally, some motors spin at full throttle while others barely spin.
Board Resetting:
-The board sometimes resets itself during operation, requiring me to remove and reattach the battery to restart the drone.
Initial Diagnosis and Steps Taken
I suspect the resetting issue is caused by uneven voltage from the battery. To address this, I added a 1000uF capacitor parallel to the battery input to smooth out voltage spikes. This has slightly improved the resetting problem, but the main issue of motors not being in sync still remains.
I have not undertaken this same sort of project, so these may just be suggestions, but are what I would do given some experience with similar things.
Your mosfets need a 100 ohm to 220 ohm resistor on the gate instead of 1k, and a 10k to 0v on the Arduino side (not across the Gate and Source of the mosfets as noted on that diagram)
Also it cant hurt to add 4 1N4004 diodes from Drain to +Bat , so basically across each motor, with the cathode to the +Bat (corrected anode to cathode)
On the output of the MT3608 DC to DC regulator, try adding a 100uF electrolytic and a 1N4734 5.6v Zener. Ensure the DC to DC converter is set to exactly 5.1v
okay i will try to change 1k resistor to 100ohm to 220 ohm and see how it goes
also I have already attached 1N5819 across the motor terminals as shown in actual drone image above i.e anode to +Bat, so should I replace it with 1N4004 diode ?
and also can you explain why to use 100uF electrolytic and a 1N4734 5.6v Zener across MT3608 ? is it to reduce voltage spikes ?
Yes I saw in the image after I typed everything that is good.
Yes exactly. You could even try a smaller capacitor like 47uF, whatever you have laying around.
The Vin on an Arduino assumes a very well regulated supply. Those other components connected to 5v could also be causing a bit more noise or ripple on the 5v supply than we expect.
It's important that the 10k resistors are on the arduino side of the 100ohm/220ohm gate resistors. Actually I suppose it wouldnt make a lot of difference, and how you have them will probably work, but it is definitely tried and true convention to have those 10k resistors nearest to the arduino.
See this post on one of the suggested threads related to yours:
You've got wrong diode wiring, bro. I see that you dont know how to read a schematic diagram. Besides, the diagram you show has no diode.
Here's the diagram:
NOTE:
If you see your nano resetting, double check of voltage output of step up and it looks your arduino nano NOW turns into low power (then u need to replace your nano :p)
Your drone looks so heavy (not more than 60 grams for 720/820/8520 coreless DC motor). If it flies then your motor will be burned so fast.
SUGGESTION:
use AWG 28
soldering is the best, instead of using jumper (to avoid unknown trouble in wiring)
I know the diagram has no diode shown but i have attached the actual pic of my drone which has diode attached correctly, the yellow-wire you see across the body is the +ve from the battery i.e [vin+ pin of MT3608 ] and is connected the cathode (ring side) of the diode on each mosfet and the anode is connected to middle leg of mosfet, also motors terminals are ig correctly connected to the two ends of diodes
I also checked the output of MT3608 its 5v
I checked the weight of my drone is 53grms without battery (it just seems heavy in pic lol !)
I have ordered 100ohm resistor to attach instead of 1k let's see how it goes and also now i have attached a 1000uf capacitor parallel to battery to smooth out voltage which slightly reduces the issue of board resetting just the motors out of sync remains constant !
Also do i need to attach motors +ve wire individually to the battery , now i have a common (yellow) wire that power the motors in series will it help ?
Reduce also the frequency of the pwm ( the output pin can't drive the mosfet very fast especially the one you selected which has huge current, but also a huge gate to charge )
isn't it connected correctly ?
should i reverse it ? but the ring side of diode is connected to +ve battery terminal
your diagram showed similar wiring
or you telling to attach a wire to diode and then connect it with the battery +ve terminal
Also is my battery not powerfull enough should i change my current battery 3.7V 1500mAH Li-Po Rechargeable Battery (KP 683040) – QuartzComponents
I'm confused can you explain
Hello,
How to reduce pwd, is it possible through MultiWii code ? or using any component ?
is it there in MultiWii 2.3 as the provided code does not shows such configuration
Out of the my explanation above, IF YOU want to add diode in your battery from the power supply, you can use in4001. The one of the motor probes must be connected to battery (3.7v) directly.
Just follow this tutorial, you'll see how all wires connected.
Demo - how diy brushed esc being made using mosfet.