build a program that will use serial monitor. If the user inputted the word "STOP" it will turn on the red LED, if the word "WAIT" is inputted it will turn on the yellow or orange LED and if the word inputted is "GO" it will turn on the green LED. Note: *The user has the liberty to assign pin number for the input and output devices. *All delay should be 400ms. *If the user inputted any words or letters which are not part of the selection, it will display "Invalid Command!"
Q: Create a ‘mock’ LinkedIn post (minimum of 100 words to maximum of 300 words) that you would like to…
A: In this 'mock' LinkedIn post, I would like to share my professional update and request assistance…
Q: A tree that is rooted and has a maximum of two children per node is commonly known as a binary tree.…
A: To demonstrate that the quantity of nodes in a binary tree responsible for generating two children…
Q: Which kind of user interface do you find easier to use? A command-line interface or an interactive…
A: What is interface: An interface is a point of interaction between two entities, such as a user and…
Q: What are the key challenges and implications of implementing edge computing in the Internet of…
A: Edge computing is a computational paradigm that brings computation and data storage closer to the…
Q: How many drivers will an address bus need if it needs to be able to talk to eight different devices?…
A: The number of drivers for an lecture to bus depends on the number of devices it needs to communicate…
Q: What is the output of the Adder/Subtracter when A is 79H, B is 72H, Su is 1 and iEnable is 1 What…
A: The output of the Adder/Subtracter when A is 79H, B is 72H, Su is 1, and iEnable is 1 is F1H.To…
Q: What exactly is a downgrading attack?
A: In the field of network security, attacks aimed at compromising the security or functionality of…
Q: If you want to see server processes, you need to use the –e option with the ps tool. This is because…
A: In this question, the statement "If you want to see server processes, you need to use the -e option…
Q: Find examples of task-level and data-level parallelism in the cake-making loop and explain why they…
A: In the context of a cake-making loop, task-level and data-level parallelism can be observed to…
Q: Trace counting sort on the following list L of unordered keys which lie within the range [10, 18].…
A: Counting sort is a simple sorting algorithm that works by counting the number of occurrences of each…
Q: How does user-centered design fit into the process of making software?
A: User-centered design (UCD) is a methodology that focuses on the necessities, inclinations, and…
Q: insmits a packet via the Internet's transport layer to
A: The answer is
Q: Kindly furnish a catalogue of the foremost six rationales for individuals to acquire proficiency in…
A: A compiler is a piece of software that changes the format of a program from one language or type to…
Q: Use the c language to code the following. The most frequent value is the one that appears most…
A: #include <stdio.h> int FrequentValue(int arr[], int size) { int count[11] = {0}; //…
Q: You receive one of five distinct coupons uniformily at random each day. Use the Monte Carlo Method…
A: Define a function named collect_coupons:Initialize an empty set coupons to track collected…
Q: "What are the fundamental differences between symmetric and asymmetric encryption techniques, and…
A: Symmetric and asymmetric encryption techniques are two fundamental approaches to cryptographic…
Q: What is the unit of memory measurement? Write at least four multiples of this unit.
A: The basic unit of memory measurement is the byte. Here are four multiples of the byte:
Q: No E F G H? F G No Yes start A B? Yes No 2 No C D? J? Yes Yes K // Assume that this program works,…
A: A flowchart is a visual representation or diagram that depicts the sequence of steps or actions in a…
Q: The below program contains error please help to solve it. from collections import deque def…
A: It may be necessary to adjust the logic in the find_largest_set function to achieve the desired…
Q: Buffers are used to lower how long it takes for an access to happen between different levels of the…
A: In a computer scheme, memory pecking order is a idea that comprises a variety of type of data…
Q: Make a Visible interface with the two methods makeVisible and makeInvisible. Both procedures must…
A: The visible interface serves as a template for classes that can control their visible state. It has…
Q: Create a hit or miss 2D style gave using java AWT graphics, and mouse events. When the user click…
A: Declare and initialize constants for the game board size, cell size, and bomb count.Initialize an…
Q: It is important to both list and give a short description of the basic building blocks that make up…
A: A computer can be defined in such a way that it is composed of several basic building blocks that…
Q: Design an E-R diagram for a database for an airlines system. The database must keep track of…
A: The entity relationship Database (ERD) diagram of the flight database is as follows: The relation…
Q: Describe the forwarding decision require for a local host that want to reach other hosts on: same IP…
A: When a local host wants to communicate with other hosts, the forwarding decision plays a crucial…
Q: You are hired to decrypt a message that has the following binary sequence: 0100 0101 0100 1100 0100…
A: A 7-segment display is a commonly used electronic display that consists of seven individual segments…
Q: To commence, may we present a succinct summary of the compiler, followed by a discussion of…
A: Compiler development is a complex task that involves transforming high-level programming languages…
Q: What additional artificial intelligence options do people have? Define the subfields of "artificial…
A: Artificial Intelligence (AI) encompasses various subfields that extend the capabilities of…
Q: Create and build a collection of classes that define various forms of reading material, including as…
A: The question does not specify any particular programming language for the solution. We have done the…
Q: Problem 2 Formulate a Matlab/Python code to solve the system; 5x1x2 + x3 = 10 2x1 + 8x2 + x3 = 11…
A: Given equations - 5x1 - x2 + x3 = 10 2x1 + 18x2+x3 = 11 -X1 + X2 + X4 = 3
Q: JavaScript found. Q3. Create a function find(arr,value) which finds a value in the given array and…
A: Start by defining the function findIndex(arr, value). Iterate over each element in the array using a…
Q: Trace counting sort on the following list L of unordered keys which lie within the range [10, 18].…
A: In this question we have to trace counting sort on the following list L of unordered keys which lie…
Q: . If given the code 1001, how is it encoded with Hamming(7,4)? 2. Check if code 1101001 has errors…
A: Answer is given below1>To encode 1001 using the Hamming(7,4) code, we need to perform the…
Q: What are the six best reasons to learn about compilers?
A: In step 2, I have provided brief answer of the given question--------------
Q: Design a CFG that accepts the language{0m 1n | 0 < m < n}, Is your grammar ambiguous? If yes:…
A: To design a context-free grammar (CFG) that accepts the language {0^m 1^n | 0 < m < n}, we…
Q: Assume that you are using YOLO on a 15x15 grid, for a detection problem with 5 different classes…
A: Object detection is a fundamental task in computer vision, and one popular approach is the YOLO (You…
Q: Suppose that x and y have byte values 0x69 (01101001) and Ox55 (01010101), respectively. Fill in the…
A: As per our policy we can only solve the first three sub question for the actual question . Please…
Q: Why don't embedded computers use virtual memory more often? Why does it happen less often to use…
A: Embedded computers are special-purpose computer systems designed to perform specific tasks within…
Q: For the following pseudo-code of a recursive program mod that computes a mod b given a, b as inputs,…
A: To trace the stack contents during the execution of the call mod(23, 7), let's go through the steps…
Q: How can software engineering help to make software?
A: Software engineering helps in making software through activities such as requirements…
Q: When we say "API," we mean "application programming interface." What does this mean when it comes to…
A: The term "API" stands for "application programming interface," typically referring to the software…
Q: What makes the focus of the TPC different from that of the SPEC?
A: The Transaction Processing Performance Council (TPC) and the Standard Performance Evaluation…
Q: Find the value of d in hexadecimal where char a=0x6B, b=0x4D: char d=a - b char d=b - a
A: The solutions are given in the below step along with a C++ code for verification
Q: Why don't embedded computers use virtual memory more often? Why does it happen less often to use…
A: Embedded systems, which are special-purpose computer systems designed to perform one or a few…
Q: The Plaza is an apartment rental company that would like to create an online management system to…
A: An Entity-Relationship (E-R) diagram is a visual representation of the relationships between…
Q: The Problem: You need to create a pointer to a function which takes a integer argument and returns…
A: The question presented involves several elements of the C programming language. Primarily, it…
Q: There's a folder full of files named in: ---- Example: boston1398-21142-09-2021-21278.txt…
A: Start by iterating over each file in the specified directory.For each file:Check if it is a regular…
Q: Why do so many of the integrated gadgets we use today need watchdog timers?
A: What is integrated gadgets: Integrated gadgets refer to electronic devices or systems that…
Q: Buffers are used to lower how long it takes for an access to happen between different levels of the…
A: In a computer scheme, memory pecking order is a idea that comprises a variety of type of data…
Q: In the event that encrypted or hashed data is not available, what type of security protocol could be…
A: In situations where encrypted or hashed data is not available, organizations need alternative…
build a program that will use serial monitor.
If the user inputted the word "STOP" it will turn on the red LED, if the word "WAIT" is inputted it will turn on the yellow or orange LED and if the word inputted is "GO" it will turn on the green LED.
Note:
*The user has the liberty to assign pin number for the input and output devices.
*All delay should be 400ms.
*If the user inputted any words or letters which are not part of the selection, it will display "Invalid Command!"
Step by step
Solved in 4 steps with 4 images
- Write an 8051 C program that will monitor a temperature sensor at P1.7. When the temperature is high: i. sound a buzzer at P2.1 iii. using a delay of 250ms, blink a red LED at P2.2 When the temperature is low: i. turn off the buzzer ii. turn off the red LEDGiven the below arduino code for a blinking LED: void setup() { int LED = 8 pinMode(LED,OUTPUT); } void loop() { digitalWrite(LED,HIGH); delay(200); digitalWrite(LED,LOW); delay(300); } Modify the code so that the LED is connected to pin 5 and the delay is one and half second between each blinking. What happened to the led speed blinking when the delay was changed?As a test, use a monitor you know is good on the computer you suspect to be bad. If you think the mon-itor is bad, make sure that it also fails to work on a good computer.
- *This is MicroController Question, it's about PIC18F452* Comment on the following uncommented lines unsigned char ch; //unsigned int adc_rd; //char *text; //long tlong; //void main() { TRISA = 0x01; Lcd_Init(); // LCD display initialization Lcd_Cmd(_LCD_CURSOR_OFF); // LCD command (cursor off) Lcd_Cmd(_LCD_CLEAR); // LCD command (clear LCD) text = " ITCE444 / Lab6"; // Define the first message Lcd_Out(1,1,text); // Write the first message in the first line text = " LCD / ADC Exp "; // Define the second message Lcd_Out(2,1,text); // ADCON0 = 0x80 ; // ADCON1 = 0xCE; // A/D voltage reference is VCC Delay_ms(7000); // text = " Volt = "; // while (1) { adc_rd = ADC_Read(0); // Lcd_Out(2,1,text); // Write text in second row tlong = (long)adc_rd * 5000; // tlong = tlong / 1023; // ch = tlong / 1000; // Lcd_Chr(2,9,48+ch); // ch = (tlong / 100) % 10; // Lcd_Chr_CP(48+ch); // ch = (tlong / 10) % 10; // Lcd_Chr_CP(48+ch); // ch = tlong % 10; // Lcd_Chr_CP(48+ch); // Lcd_Out_CP(" mV");…Write an assembly program to perform the following actions using the two user switches and the RGB LEDs in the Tiva C board: - release both buttons -> all LEDs off - press right button -> red turns on - press left button -> blue turns on - press right button, then press left button -> red and green turn on - press left button, then press right button -> blue and green turn on - press either button, then press the other -> all LEDs onPlease discuss this Arduino code int redPin = 10; //set red LED pin to 10 int bluePin = 11; //set blue LED pin to 11 String colorChoice; //Will hold users input of color choice void setup() { // put your setup code here, to run once: pinMode(bluePin, OUTPUT); //Set redPin to be an output pinMode(redPin, OUTPUT); //Set greenPin to be an output Serial.begin(9600); //Turn on Serial port } void loop() { Serial.println("What color do you want to blink up, red or blue?"); //Prompt user for color while (Serial.available() == 0) { } //Wait for input colorChoice = Serial.readString(); if (colorChoice == "red") { digitalWrite(redPin, HIGH); delay(1000); digitalWrite(redPin, LOW); delay(1000); } if (colorChoice == "blue") { digitalWrite(bluePin, HIGH); delay(1000); digitalWrite(bluePin, LOW); delay(1000); } if (colorChoice!="red" && colorChoice != "blue") { Serial.println("That is not a valid color choice, please try again"); Serial.println(""); } }
- Write a program that turns on an LED attached to pin 3 for 5 seconds then turns it off. The light should stay off for 3 seconds and then the LED should blink 10 times at a rate of 1 Hz (on and off each second). in TinkerCAD with CodeSuppose you have a device which when fed with the input numbers, rearranges them in a particular order using some rules. The following is a step-by-step process of rearrangement for the given input of numbers. Input :- 1 2 3 4 9 10 8 6 Step I :- 4 1 2 3 9 10 8 6 Step II :- 9 4 1 2 3 10 8 6 Step III :- 10 9 4 1 2 3 8 6 Step IV :- 8 10 9 4 1 2 3 6 Step V:- 6 8 10 9 4 1 2 3 In first step you select 5th last element and places it as first and append rest of the list, in second step you select 4th last element and place it as first element and append the remaining list and so on. Take the input and print output as specified by 5th step. Write a C program and algorithm for the above question.Please explain this Arduino code int redPin=11; //set red LED pin to 11int bluePin=6; //set blue LED pin to 6int brightness=255; //Set brightness to 255String colorChoice; //Will hold users input of color choice void setup() {// put your setup code here, to run once: Serial.begin(9600); //Turn on Serial portpinMode(redPin, OUTPUT); //Set redPin to be an outputpinMode(bluePin, OUTPUT); //set bluePin to be an output } void loop() { Serial.println("What color would you like the LED? (red, green, or blue)"); //Prompt user for colorwhile (Serial.available()==0) { } //Wait for inputcolorChoice = Serial.readString(); if (colorChoice=="red") { analogWrite(redPin, brightness); //turn on red pinanalogWrite(greenPin, 0); //turn off green pinanalogWrite(bluePin, 0); //write off blue pin} if (colorChoice=="blue") { analogWrite(redPin, 0); //turn off red pinanalogWrite(greenPin, 0); //turn off green pinanalogWrite(bluePin, brightness); //write on blue pin} if (colorChoice!="red" &&…
- Question 1 Given the below arduino code for a blinking LED: void setup() { int LED = 8 pinMode(LED,OUTPUT); } void loop() { digitalWrite(LED,HIGH); delay(200); digitalWrite(LED,LOW); delay(300); } Modify the code so that the LED is connected to pin 5 and the delay is one and half second between each blinking. What happened to the led speed blinking when the delay was changed?Task 1: Write a logic unit program as follows:a) First Input Number: Using 3 buttons defined at different pins of PORTA increment, decrement, clear a number while continuously showing it in decimal format at 7sd connected to PORTB;The number must be between 0 and 9.b) Second Input Number: When the 4th button at PORTA is pressed the number is saved to memory. Then the process given at part a is repeated with the same buttons.The number must be between 0 and 9.c) Multiplication: With the second press at the 4th button the second number is also saved to a memory location different than the first one. Then two numbers are multiplied.d)Results : Put the program in a loop showing each digit of the result for 1 second with an additional underscore digit to the left side.i.e., if the result is 9 show 09, and if the result is 14 show 014.Hints:Multiplication is a number summed with itself for a certain number of times.i.e., 2 x 3 = 3 + 3 = 2 + 2 + 2.Report: It can be written on paper or on a…Please answer properly with output screenshots this need tobbe done in C++ only // C++ code// const byte LED_PIN = 13;const byte METER_PIN = A4; void setup(){pinMode(LED_PIN, OUTPUT);pinMode(METER_PIN, INPUT); Serial.begin(9600); startTimer();} void loop(){} void startTimer(){noInterrupts(); interrupts();} ISR(TIMER1_COMPA_vect){digitalWrite(LED_PIN, digitalRead(LED_PIN) ^ 1);} 1. Complete the code in a way that LED blinks every 2 seconds.2. Change the startTimer method to accept a double value called timerFrequency, which representsthe frequency of the timer. Change the startTimer function so that it uses the value of this parameterto calculate and set the correct values for the OCRx and TCCRx registers.3. Use the potentiometer sensor connect to pin A4 to enable users to configure the timer frequency.