Don't feel too bad about this sort of thing, it's part of the learning process!
I bet each time you've f*cked it up, you've learned something from it right?
To make you feel better I'll tell you something stupid I did:
I was in my honours year (final year + pre-masters) of my electronics engineering degree.
I was working on a rehabilitation device that robotically (and adaptively) performs physio to improve the user's fine motor skills after suffering a stroke.
I had lots of experience with electronics and programming building power supplies, audio amplifiers, computer vision, video games, area-mapping robots etc.
I blew up a
single MOSFET in my motor control circuitry maybe
50 times before I figured out what was causing the issue.
The issue was I had misread the datasheet for one of my ICs and it needed replacing.
I wasted about $200 and 1/4 of my project's time-budget on something that at my level of education and experience was completely trivial.
And then I purchased the wrong sized motor from a supplier and didn't find out for a few weeks because of lead times.My final thesis had about 20 pages on the things that went wrong in excruciating detail. I got an A+.
I can guarantee you that I haven't made those mistakes again. Learn from what you've done and you'll be fine
