Saturday, January 19, 2019

Lab 7 - Introduction to Microcontrollers

1/17/19

Microcontrollers, it is a computer on a chip. It is low cost, but contains everything that is need to act a s a computer. There are many pins in which they are controlled via programming a arduino. A High state outputs a 3.3V-5V, while a Low state outputs a 0V, which is essentially off. This lab is going to be basic with LEDs. A LED turns ON when there is a High state declared on the corresponding port on the Arduino Board. Simple installation of the program was done. 1..2...3...poff...installed. Now time for programming! Downloaded program for blinking LED. Successful Blinking LED done!

Fun time with Night Rider project. Instead of just one LED, the project is with 4 LEDs that does a "scan" function that is exactly like the night rider car. I had to really review programming in loops to get this part done. Hooking up the circuit is easy, but the programming s the part that took effort. Finally got it running. Simple 220 ohm resistor was used for each LED, and each LED is designated to a single oort on the arduino.
Single LED Hookup
Program Code for Blinking LED Night Rider
Night Rider Set-up


No comments:

Post a Comment