Answered step by step
Verified Expert Solution
Question
1 Approved Answer
COMP 1 0 4 5 LAB 1 Circuit diagram: Connect a blue LED on a bread board. Connect the anode side to port 1 3
COMP LAB
Circuit diagram: Connect a blue LED on a bread board. Connect the anode side to port on the arduino and the Cathode to the ground.
Source code: Use this code to test the above circuit.
int blueLED ; void setup
pinModeblueLED OUTPUT;
void loop
digitalWriteblueLED HIGH; delay; Wait for milliseconds digitalWriteblueLED LOW; delay; Wait for milliseconds
Level : Modify the program to make the LED flash slow three times mS delay then quickly three times. mS delay
Level : Modify the program to flash your initials using Morse code See chart below A dot would have the LED on for mS and for a dash the LED would be on for mS
Level : Write a program that alternates between the blue LED and red LED to simulate an emergency vehicle.
Morse code:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started