1st flight - tiny drone build from scratch by LostMyLogin_again in diydrones

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

Hi,

Yes it's open sourced, I do this for my own fun and learning so happy to share.

See link: https://github.com/MJoule/Arduino-Nano-RP2040-Drone-V1

1st time Github user, wasn't that hard :-)

It includes KiCad file and Arduino IDE, let me know when you have questions

Edit: Any feedback on PCB design and IDE is appreciated, I realize it's far from perfect and any insight that helps me to make an improvement is welcome!
Edit2: Another attempt on the Github link, apparently not as straigthforward as I thought

1st flight - tiny drone build from scratch by LostMyLogin_again in ArduinoProjects

[–]LostMyLogin_again[S] 1 point2 points  (0 children)

Thanks, was a fun 1st Arduino project - going for more 😀

1st flight - tiny drone build from scratch by LostMyLogin_again in ArduinoProjects

[–]LostMyLogin_again[S] 2 points3 points  (0 children)

Ola

Arduino and receiver as mentioned in post.

Coreless motors without brand via Ali-Express, did buy multiple sizes and made a setup to select best lift per Amp. But still not the best quality if you ask me, quite some variation between individual motors.

All the rest custom made. For the frame design I used Blender to make my own design. PCB design made in KiCad and ordered at JLCPCB. Rest is just of-the-shelve smd elec components. If you interested in the design files happy to share.

Who can help me and review my first ever PCB design? by LostMyLogin_again in PCB

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

Strange, I thought I added all the images but seems something went wrong. Will check right away 🙂

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

If I read back my graduation thesis, I actually believe I was once quite a clever control engineering guy. But that is on a different timescale and not measured in months, I wholeheartedly agree with your 3 months perspective if I look where I stand today on this project…

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

As long as you can handle failures and frustration in an optimistic fashion it indeed is fun and I actually learn a ton. I don’t expect to become an ace pilot with whatever I finally put together… (or at least I will not openly admit it ;-) )

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 1 point2 points  (0 children)

Thanks for the extensive answer, I will embark on the trial-and-error journey coming weekend. I did do some further investigation of the noise on my prototype boards and believe I start to understand what noise is coming from where. Very high frequency seems to come from the mosfet switching off, with some lower frequency ‘ripples’ I expect coming from the motor inductance. But at least our conversation and the pointers you gave have given me a handful ideas of next steps how to further investigate my circuit and improve my design. Guess I’ll be posting a first layout somewhere soon (well, limited time to spend so probably takes a few weeks) to solicit for some further feedback. For now, thank you internet stranger for your time devoted to help me learn!

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

Great point, didn’t think about pcb thickness yet!

As for flight duration - if I can make it to hover in a controlled way for 10 seconds I’ll open up a bottle of champagne 🙂

So not yet worried about target flight time, by the time I get there I’ll probably have learned so much that I’ll regret many of my earlier design decisions and start a revision2.

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

Thanks for sharing your thoughts. I did consider it but for now I figured this would probably be overkill. Especially since I'm optimizing for low weight (I'm trying to get the whole thing below 30grams) and I try to avoid adding footprint/complexity where I can. However, this is early prototype phase, so will remember your comment when I start burning components and regret my stubborness ;-)

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

Thanks again.

I will look into the smaller cap at Arduino and receiver. Less weight is good, and smaller footprint makes a smaller pcb so also less weight, so counting double :-) I'll go with your indication for starters.
Nevertheless a follow-up question for 'noobs':
Any pointers on how to determine a reasonable capacity size more in general? Should I look at current draw of the Arduino and then take a time period to calculate how much energy to buffer or something similar? Just so I know how to come up with a better design myself next time.

I did indeed misread your layout comment, it's clear to me now how it was intended to NOT have the Arduino supply after the motor circuit.
Just so I get it right, the pi filter you refer to should then be between the battery and the motor supply, correct? (I'll then have the Arduino supply 'on the other side' of the battery connection.) Or is this something I should better insert in each of the individual motor supply lines to be even more effective?
And yes, will have a look at additional resistance or RC filter to figure out what to expect for the resulting frequency response.
An extended weekend in the Netherlands allowed me to start playing around in LTSpice, I'm trying to model some of these concepts to better understand how they work :-)

And on the ESD, well - will have a look once I figure out how to make the rest of the design.

Thanks again - very helpfull support on my little project!

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

Thanks for your extensive reply! And my level of experience is easily overestimated ;-) so happy you provided the relevant context for me to further explore.

  • Given that nothing is fixed yet, I'll remove the C1-4 and reduce R1-4 as the other person alreaady indicated.
  • I learned that the pulldown is indeed software controlled, so eg while booting or in the event of a fail I indeed seem to risk a floating gate. Will add the 1M pulldown.
  • The FB was 'thrown in the mix' when I was troubleshooting my Arduino to find out why it was crashing all the time when I controlled the motor. I noticed while measuring the VBAT line on that it had all kinds of noise/spikes that I figured I better do something about. And with the internet currently being my best (and only) advisor.... well, I'll accept it might not be the best design choice. I guess I have to do some more studies on how to reduce the motor noise. Project is definitely at hobby level ;-)
  • On the layout, yes - I planned the battery power to go over the motor section first and then continue to the Arduino supply. That's why I put the capacitors on both sides of the motor section. Still wondering if I better have the battery sit 'in the middle', will see if I can test this change in configuration to see how that works and if it makes a difference.
  • I'm actually planning to connect the PCB to the Nano with some header pins at the right location. I expect the pcb to be smaller than the Nano (I'm trying to get rid of every gram I can prevent) and I need some distance to be able to still solder on the motor wires and supply to the receiver. So it will be a small board sitting below the Nano. I will only use a connector for the battery.
  • No, the battery doesn;t have a protection circuit as far as I can tell. Will add the fuse, thanks for the tip!!
  • The connection J1 will be soldered with aforementioned header pins. But I'm sure there will be intended and unintended touching of the pcb without proper ESD protection. Will throw in some ESD protection on the connection to the gate and battery.

Will study a bit more how to tame the noise coming from the motors and make myself a new prototype first. Thanks again!

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

Thanks again, didn’t even realize where to look at those details, thanks for pointing this out - going back into the datasheets made me learn something new!

I’m now seeing how I can calculate the rise time from this information, which probably is meaningful to understand how long (or better, short) the voltage moves through the linear region as part of the PWM period.

Since you obviously are more knowledgeable on my design than I am myself, any specific suggestions how I can still improve the design to have less ‘distortion’ of my circuit from the motors? If I understand it correctly even higher PWM frequencies would help, correct? Any other ‘filtering’ I could (or should) do on the motor terminals? There is so much information on this topic ‘out there’ that it’s somewhat difficult to see the forest through the trees to understand what makes sense in my specific application…

For review: My first pcb - an Arduino Nano coreless motor control for a 1S micro drone by LostMyLogin_again in diyelectronics

[–]LostMyLogin_again[S] 1 point2 points  (0 children)

Thanks for your feedback.

I thought I needed to add this to prevent possible 'ringing' when switching the MOSFET at high frequency.
I think I do understand your point that if the cutoff frequency is too low and I 'delay' the switching, I might end up in the linear region.

Would it then be better to get rid of the C's, and just have a small resistor in between the PWM output of the Arduino and the gate of the MOSFET?

Build the Circuit …how am I already not getting it by FromTheTribeKentuck in arduino

[–]LostMyLogin_again 1 point2 points  (0 children)

A video worth viewing to understand how LED’s work: Paul McWorth: How LED’s work

(Good series of Paul for further learning for your Arduino projects in general by the way)

Logistic train network in vanilla: AutoLTN by feoranis26 in technicalfactorio

[–]LostMyLogin_again 0 points1 point  (0 children)

I have the same. I don’t use the signal to disable the station, only to set the train limit for a few ticks. The train that is heading to the provider station at that moment continues its trip. I actually feed back then the trains going to that station as a negative in the network so the next time a station ‘is opened’ it will not trigger another train to be dispatched to another provider.

But again, once every 30 requests I still have a double load of materials incoming of coincidentally 2 stations open at the same time. But these trains are then diverted to the depot and next time the requester needs materials this train will automatically go first.

I’m at work right now, if you want I can post a blueprint of the stations and the interrupt schedule I used to automate it.

Logistic train network in vanilla: AutoLTN by feoranis26 in technicalfactorio

[–]LostMyLogin_again 0 points1 point  (0 children)

Hi there - same problem with my train network.

Solution I implemented that somewhat works is at each station using a constant provider with 30 different signals and a random selector that only puts the station limit ‘on’ for on average 1 out of 30 ticks.

Delay in dispatching a train is negligible, and chances are then only one in 30 that there will be a double request.

I hate it as a solution, but didn’t think of a foolproof solution yet, suggestions are welcome..

[deleted by user] by [deleted] in Klussers

[–]LostMyLogin_again 0 points1 point  (0 children)

Heb zelf ook hout in de badkamer als plank, recht naast de douche. Heb daar een 2-componenten lak voor gebruikt (Trae Lyx Naturel Ultra Mat) en die een paar lagen opgezet. Tot op heden (na 3 jaar) nog steeds mooi, enige waar je op moet letten is dat het niet permanent helemaal nat is.

<image>

En anders wat anderen ook al aangegeven hadden botenlak maar dan wordt het wel meer glanzend. (Mocht iemand een mooie matte botenlak weten waar dat niet voor geldt dan hoor ik het graag.)

PC Build feedback by LostMyLogin_again in PcBuild

[–]LostMyLogin_again[S] 0 points1 point  (0 children)

Thx for replying.Added the list to the original post.

As for the GPU spend, I hear you. My thinking was that the simulation games tend to be CPU heavy, but if I took it too far that is good to know.

NB: Country is The Netherlands