Motorized Pinwheel: Using 9v battery, DC motor, and a Transistor to make a pinwheel

    This project was the second one based around a motor, but instead of the accurate servo meant for specific angles, the DC servo is meant for pure spinning power, which is why we needed the extra 9v battery for the first time since starting that class. I though I would have had to make a Wal-mart run for the 9v, but I didn't realize that they actually sold them and other battery types at the campus shop at RIT, which is a good not for future reference for myself and anybody who reads this.

    The main component of this project was the DC motor we used to turn the pinwheel itself. But on top of that, we used a MOSFET (transistor). A transistor is a switch of sorts, that allows large current to flow from one input if it detects a smaller charge from a second input, and will send the large current out a third pin/output. We also used a diode to control the power flow on the right side of the breadboard. A button to turn on the DC along with the a resistor to block some of the charge.




The code was super simple, utilizing the MOSFET and button to control the DC Motor. The motor pin (9) was set as output and the switch pin (2) was set as input. Then while constantly looping, the Arduino would check the switch state of the button, and if it was High, it would allow power flow through the transistor, and if not, then it wouldn't allow that power flow.


As you can see in the GIF below, I didn't utilize my pinwheel because the CD disk I found had a interior hole bigger than the diameter of the yellow contraption given to us, so I wasn't able to use it. But none the less the circuit still worked, and the DC motor ran when the button was pressed.


This project was fun because we got to use the DC motor for the first time. This has always been a part that has been essential whenever I have worked on a lot of personal and professional projects in my life, and it is nice to know it will be apart of out utility belt for future use in this class, for future project we will have.



Comments

Popular posts from this blog

Final Project: Reusing the Snake board design to create Tetris with the Arduino

Art Meets Engineering: Using an Arduino compatible microphone to create light based on sound