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...)







No comments:

Post a Comment