Answered step by step
Verified Expert Solution
Link Copied!

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Define and measure service productivity.

Answered: 1 week ago