Saturday, February 14, 2015

Post 7: Driving Motors and Other Output Devices





This lab will focus on utilizing the kind of know-how we obtained from the previous motors lab and use it to demonstrate the kind of outputs we can hook up to the Arduino!

The schematic on the right is the kind of example we will be following, with the output device being a component of various kinds!








To power a "signal lamp" (Christmas light), we will use the Arduino as the power supply that will be connected to the base of the transistor. This will mean that the board is sending a signal and essentially acting as the bridge that allows the light to turn on!


Before and After!


And here it is in video format!

 

This is a configuration known as a Darlington. This is pretty much using a smaller signal transistor to turn on a more powerful transistor, creating a much larger amount of current!




What's even more amazing is that the previous config. can be found in any Darlington transistor! That means that the same amount of power/principle can be utilized from a single TIP-120 or MPSA13! For the next section, let's see how this can be harnessed to power a motor with less effort!

Using this config we are able to construct and add this to our Arduino for PWM! This will allow us to control the frequency and power of the signals sent, resulting in various power of the motor running. On the right is a close-up of the TIP-120, our new component ally!


Notice the sound of it winding down! Not simply turning on and off at the same amount of power!

Wednesday, February 11, 2015

Post 5: Intro to Microcontrollers







This is my microcontroller! There are many others like it but this one is mine! Without me, my microcontroller is useless! Without my microcontroller, I am useless! 

Okay but seriously, without butchering anymore lines from movies, this here is a microcontroller. Specifically speaking, this is an Arduino Uno.
I am in no way qualified to be explaining every single bit of what a microcontroller is and what it internally does since I'm such a greenhorn in electronics, but the way I look at it, it's basically a great way to integrate programming into the physical realm!

Below is an example of such a crossing of realms from programming to blinking LED!


So to take the lab a little further, a line of LEDs attached to the board can be lit in sequence according to the connection to each port. For example the below pictures will show the lights being switched in sequence due to a code that turns one on, delays for a bit, then turns it off and turns the next one on, etc.


Here's the first version of the code in action!

 

Okay what if we made a few tweaks to make it not as lame and slow?

 

 Okay one more little adjustment and...

 

Perfect! Looks just like KITT!...kind of! (Not at all really...)