Motor week 6

I was looking for circuit exercises to do, and found some great arduino codes. I decided to keep it simple and here was the code i used:

Week 6

THis was really fun! it actually worked the first try!

Week 6

This was great!

This is my first schematic: I took the code from the Arduino website.

Week 6 /Motors and Transistors

Went back today to rebuild this experiment and discovered why it had been a problem for me in the 1st place. You’ll notice I have put an LED across the positive and negative lines just assure me that I have a circuit. This is part of my diagnostics from trying to figure out what the problem was with the experiment. It turned out to be the red wire on the motor: there is a problem in the red lead causing inconsistent performance. It works when the wires flexed in the right way; it doesn’t work when they are not. Something else interesting: I’m running the motor and the transistor circuit under different power supplies. The Arduino is using the 5 V from the USB cord the circuit board is running off a different transformer with a little more power.

On those occasions when the motor was running properly,Week 6 I was able to experiment with changing the delays on the Motor, and to switch the circuit, as well as experiment with reversing the wires which of course reverses the motor.

Assignment 6: Motor

The motor exercise I used a potentiometer as an input. I controlled the delay times between HIGH and LOW for the motor output based on the potentiometer values. At very low delay times, it almost steps.

Here is the code:

and a video:


Week 6 – Nav

Had a ton of trouble with the motor, finally realizing that my circuit was fine it was just the crappy connections on the motor that stopped it from working argh.

Anyways I set out to wanting to create some sort of installation based piece with an empty 2L plastic bottle, some hole punches, and the motor with a potentiometer to control the speed of the fan.
After getting everything working I realized that the fan would have to  be significantly more powerful to be able to move air in order to send the hole punches flying inside the enclosed plastic bottle.
After realizing this, and wanting to do more than just simply getting the motor  to work I decided to experiment with the propeller and the colour of the propeller blades to visualize how these colours may blend together when rotating at high speeds.

Red and blue tips on the blades

You can definitely see the red on the tips on one half and blue tips on the other.

Lets colour in the entire blade blue.

The blue is much more visible near the center, although the other white blades are preventing the blue from appearing right around the center.

lets try all red and blue fans with 2 fans left blank.

Near the center the propeller appears to be white still, but hints of blue and red are present near the center.

Yellow should add some brightness.

The yellow, bluish, and reddish regions are now visible, with hints of yellow now also appearing near the center.

Finally adding magenta in hopes of making a really beautiful colour wheel in motion.

The blue, red, magenta, and yellow regions are now almost completely identifiable. Interesting to note how all the colors slightly blend into each other with yellow/red and magenta/blue really impacting their relative hues.

Here was the prototype wind tunnel. I was hoping that the hole punches would move but unfortunately the motor is not powerful enough. I tried a number of paper propeller designs with varying thicknesses of paper but none could cause the hole punches to stay afloat within the container.

For future development it would be interesting to pair heavier hole punches with corresponding hues to see if particular speeds of the fan can cause a particular hole punch to become more visibly dominant.
It was very enjoyable to get the motor finally working and to experiment with various color combinations for the propeller fans to see how the fan colors blend together based on relative hue and position.

Assignment 6:Warning light for motor


This assignment almost kill me. I broke the motor and connect the wire for several time, weirdly in a same way. It some time worked but some time did not.

I just want to to build a warning light for the motor. If some one in charge of the motor and he/she just not want to stay in the same room with motor because the noise is going to kill him. The person could stay in another room and just watch the warning light, when light turns on, it means the motor does not work. Because the electric current just goes to the LED light part. I parallel connected two 1K resistor to protect the LED.

This is how I drive the motor.

This is the final system.

And at last, there is a video demo.

Warning light

Thanks  Shino!!!



Assignment 06 adjustable motor & buzzer & LED









at first I try the example in the PDF document, it was easy, the thing is need to use 10K resistor instead of 1K ,which is different from the Doc.

but sometime it is weird that (it happend on liz and shuting), the circuit is absolutely right , it is exactly same as the example shows,but the motor doesn’t work or it keep running without stop, we can’t tell what’s the problem is , but when we make it again ,it works, it’s so weird.

Lucky for now it is just an easy circuit , redo it can be just in a minute ,but what if it is a complicated circuit, still need to take away all of the wires and make it again?

The video shows my project , it is using the code of example “blink”, and I add a ajustable switch (I don’t know its name, I think it is a ajustable resistor) into circuit and parallel 1 LED & 1 Buzzer with the motor ,so they can work together at the same time controled by the same switch.

Assignment #6 (?) – arduino board and cervo motor

Okay, so I was kinda’ late submitting this assignment and had the benefit of everyone else’s work.  Like everyone else, I discovered that the cervo motor didn’t work the first time I wired it up a week ago.  Thanks to everyone else, I know it was the resistor size.   I wanted to understand that better, so I looked into the transistor sheet and some tutorial material about transistors, which led me to V = I x R calculations.  Maybe not the most exciting stuff, but I feel like I actually learned a lot.  But then, just about anything in electronics is a learning experience for me at this stage.

I experimenting adding 1K ohm and 10K ohm resistors to figure out exactly what resistor range worked for the motor and found that the motor started working slowly at 3K ohms and continued to work all the way up to 22K ohms but didn’t work if there were 23K ohms on the current going to the transistor base.  Near the upper end of this resistor range the motor did not run as fast as at the lower end, which isn’t surprising b/c the current was much less.

Lots of resistors in series

Second week playing with Arduino

The most exciting part this week was to learn and practice soldering. I really enjoy doing hand-on activities like this, even though it was hard – I couldn’t do it by myself but had to ask a classmate to hold the wires while I used the gun (- wait, is this the right word to describe the soldering tool that we used?) to melt solder on them. It looked very simple when Jim did the example in class but I still couldn’t hold the solder and the wire in one hand! However, one of the engineers told me once we mastered this technique we were almost ready to become engineer (what?)- So I guess we don’t really need to worry about this for now.  

My first soldering attempt

The second fun thing to do this week was measuring voltage using the multi-meter. It really helped me understand how parallel setup of resistors differs from series setup. The most important thing I have learnt from those exercises was in series setup; the current will be the same anywhere within the circuit.

Anyway, back to Arduino, I had a hard time connecting the wire and the regulator to the breadboard for the assignment. The first reason is, I’ve already stick the breadboard and Arduino Uno into a cardboard so I can’t place them in position exactly like assignment illustration require. Secondly, I found the regulator legs hard to connect to the breadboard holes – the connection is just not tight enough and I’m afraid to break it if I press too hard. Final result is the piece of work below, which I drew line on to demonstrate how electricity flow in the circuit.  Luckily when I upload the blink program from Arduino example menu to it, it worked! (the motor runs). However, in order for the electricity to pass through I have to press the regulator down to the breadboard otherwise the connection will be cut.

Circuit with motor

Assignment required diagram

After making sure that the circuit worked. I want to add a switch into it. And just to play around, I change the PIN to 7.

Circuit with motor and a switch

Luckily it worked as well! Below is a video showing how the switch work in controlling the motor.

A short video of how the switch works:Assignment6_LinhDo_Video

I really want to build a program where we can trigger the motor to work/stop working when we turn on/off the switch (for the moment, every time you connect the circuit to the computer, the motor will start running, until you press the switch/button it will stop – but you have to keep on pressing the button otherwise it will start running again after you release the button). Probably I will try to work on it later.

Overall Comment:

1. I tried swapping the motor wires and the motor still works normally.

2. At first I was wondering why the motor doesn’t blink – it doesn’t stop (blinking) after a second as we set it to in the code, but instead keeps on running until the switch is pressed (the electricity stops flowing). Probably I connected something wrong in my circuit?  Later on I think about it and then I realize, that it is the regulator! The regulator helped even out the voltage and stopped the blinking effect to happen. Well I’m not 100% sure of my explanation but it makes the most sense to me for now. It’s always good to experiment and make mistakes anyway :D.

3. Also, since (I guess) the motor requires more power to run than a LED, I keep getting this notice when running the program on the screen.  Anyone else having the same problem?

Well, my last word for the week, it seems like everyone in class is getting excited with Arduino. I in fact think it’s really hard. Arduino is probably too electrical for me. Anyway, I would try to improve my weakness, and hopefully later on it will all be fine.