I wish I could take credit, but I got it from here http://itp.nyu.edu/physcomp/Labs/DCMotorControl. Well, the weird wonky parts that looks like they don't belong there are my pathetic attempts in microsoft word.
Ok I've changed the capacitor on Vcc1 to connect to the ground like in the diagram. Did I get that right? Sorry total noob here but where exactly do I connect the flyback diodes to?
The smoke came somewhere from digital 1-7 pins. And I have no idea what the resistance of the motor is. I got it from a junk store and all the uncle told me was it runs on 12volts lol
