Today I did a bunch of work on the arduino circuit and kinda got it to a place where i think it will work. AI use disclaimer - I did try to see if Chatgpt could help me understand how the parts on tinkercad interact with each other and learned a bunch about a ton of different components. I still think my wiring and stuff is wrong for the mosfet and diode and the whole motor circuit - still having kind of a hard time understanding it.
I think the reason I’m so confused is that the diode part of the circuit is supposed to protect the circuit from the voltage increase after the fan is turned off. I think thats because when the encoder stops sending the pulses to the arduino, which triggers the mosfet to close, stopping the current. I think that current is like flow of a river (just how i learned it), so if it suddenly stops (maybe a clog triggered by the mosfet), then voltage (pressure) increases a ton, which isn’t good for any pipes (wires and components i guess. I’m just confused on how to revert the voltage then, since it needs to go somewhere, so i have a diode from the negative terminal of the motor directly to ground (seems stupid ik), since then the pressure can go back to the ground to relieve itself instead of building up.
That was a long mind dump session. Anyways, I only did about an hour of work today since i had to study for Calc and did a TON of vibe coding for an app im building for myself. It’s my first time building an actual app rather than a webapp or something, so I’m learning a little and prompting a lot haha.
Thanks for reading all the way if you’re still here! Shout out @ball @gemzaidahmad and everyone else who’s been on this journey with me!
Pictures: Messy Arduino circuit (i tried to clean it up i promise) and Schematic