ECEN 215 – PRIN OF ELECTRICAL ENGRFall 2018Lab 9: Introduction to MicrocontrollersECEN 215 – PRIN OF ELECTRICAL ENGRFall 2018 Lab 9: Introduction to Microcontrollers Submitted by:Student Name UIN: Section # Group # 512 Date Performed: November 26th , 2018I. ObjectiveThe purpose of this lab was to learn about microcontrollers through demonstration. II. Procedure1. LaunchPad and Energia software were set up on the computer to start this lab. 2. The “Blink” sketch was run we observed the reaction of the Energia sketch.3. The “Blink” sketch was modified to change the LED from Red to Green and the OFF time to250 ms and the ON to 500 ms. 4. We created a program that turns LED1 ON for 0.5s and OFF for 0.5s every iteration, andevery fifth iteration turns LED2 ON for 0.5s and OFF for 0.5s. III. Difficulties1. There were no difficulties encountered in this lab.IV. ResultsC. After the program “Blink” is run, the LED blinks only red. This is what we expected since it isjust like the flow chart. D. - Change LED from Red to Green. - Change OFF time to 250 ms, and ON time to 500 ms.Figure 1: Modified “Blink” codeE. - For every iteration, turn LED1 ON for 0.5s, and OFF for 0.5s.- Every fifth iteration, turn LED2 ON for 0.5s and OFF for 0.5s.Figure 2: Code created B. ConclusionIn conclusion, we found that by simple modification to the code provided we can change thepatterns of the LED. We also learned how to create a code for the program from the flow
View Full Document