I am new to Arduino and programming in general. I had done a few beginner lessons in C++ like 4 years ago but those are long forgotten, I also messed with Picaxe but a similar thing happened there too. Treat me like a complete noob for now!
Anyway, I dove right in and decided to set an end goal for myself (while blinky LEDs are fun, I wanted a reason behind what I was making), I wanted to make my blinds remote controlled.
So here's what I have so far..
Initially I used this modded servo for testing (it wasn't working properly as a servo and I wasn't bothered fixing it, so I modded it for continuous rotation)
I realised that I needed to somehow flip the inputs to the motor for the two directions, and I think I accidentally made a H-bridge in troubleshooting. But I lost the picture of the breadboard like a dumbass.
I ended up using a H-bridge IC to control the larger motor shown in the video. I made the metal clip piece quickly by folding some scrap aluminium from an old mint tin (like an Altoids tin)
My code is pretty rough, I know there are better ways of doing what I've done but I just don't know how to implement it. (I probably don't need 2 if statements)
Any help with Improving the code would be appreciated!