JESSIE ZHAI
Digital artist
A documentation page of rambling and experimenting.
@jessiehaseyes
jessiejiranzhai@gmail.com WEEK 05PCOMP WEEK5
Physical Computing
Lab 5DC Motor
This week we are back with the labs using transistors to control higher current loads.
Connect Motor and Power Supply
This is my first time using the DC motor. After a week without the labs, I felt a bit disoriented when it came to how to connect the DC motor as well as the power jack.
Since the 5V wall plugs ran out at the shop, I started the lab with the fancy power supply, which I was warned to treat carefully if I don’t want my circuit to be burned.
I connected the DC motor to the breadboard with alligator clips, and added a separate power supply with the switching power supply.
I had a very rocky start, as my motor was running but the code I put in Arduino was not doing anything to my circuit.
I checked my wiring over and over again, and started to check if each wired is inserted firmly. Finally when I pushed the diode down, the motor started working. I feel like this happend many times espcially when the wiring gets more complicated, making sure all the wires are connected correctly is a challenge in itself.
I played around with the potentiometer and adjusted the speed of the motor.
H-Bridge
By using the TB6612FNG motor drive, I was able to control the motor with a button. In the code, by making one motor driver pin high and the other low, I was able to change the direction of the motor immediately.
I would love to use the lamp example in this lab and use the light intensity as the output.