Question: 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 1045 LAB 1
Circuit diagram: Connect a blue LED on a bread board. Connect the anode side to port 13 on the arduino and the Cathode to the ground.
Source code: Use this code to test the above circuit.
int blueLED =13; void setup(){
pinMode(blueLED, OUTPUT);
}
void loop(){
digitalWrite(blueLED, HIGH); delay(1000); // Wait for 1000 millisecond(s) digitalWrite(blueLED, LOW); delay(1000); // Wait for 1000 millisecond(s)
}
Level 1: Modify the program to make the LED flash slow three times (1000 mS delay), then quickly three times. (100 mS delay)
Level 2: Modify the program to flash your initials using Morse code (See chart below). A dot would have the LED on for 100 mS and for a dash the LED would be on for 1000 mS
Level 3: Write a program that alternates between the blue LED1 and red LED2, to simulate an emergency vehicle.
Morse code:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!