0% found this document useful (0 votes)
29 views1 page

Tle-Ct Feb 18, 2023

parts of electronics

Uploaded by

hezekiahgiansr71
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

Tle-Ct Feb 18, 2023

parts of electronics

Uploaded by

hezekiahgiansr71
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Hezekiah Gian T.

Espino X-Einstein
February 18, 2023
TLE-CT

Discuss the principles and concepts of control interface, functions, status indicator
devices, actuator and locomotion SSP_TLE-CT10FEI-IIIa-1.1

*Answer the following questions:


1. Describe the “void setup()” section.
-It is the section that is used to initialize variables, pin modes, set the serial baud rate and related.
This section only goes through the software once.

2. Describe the “void loop()” section.


-It is the section where the code loops back onto itself and is the main part of the code. This is also
called “Bare Minimum”.

3. What are you going to do if you want to write a multi-line comment in the Arduino
language?
-To write a multi-line comment, you will start the comment with /* and end it with */.

4. What is a baud?
- It is the measure of how many times a hardware can send 0s and 1s in one second.

5. Why is it necessary for the baud rate to be set properly for the board?
-It is important for the baud rate to be set properly for the board to convert incoming and outgoing
information to useful data.

6. Post a code on the Blink LED. You will find the code in the Arduino software, go to File –>
Examples -> Basics -> Blink.

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever


void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

7. Explain how to understand the Blink LED code.


-The blink LED code is a simple program that demonstrates how to control an LED connected to a
microcontroller. The code works by toggling the state of a digital output pin connected to the LED
at regular intervals, causing the LED to blink on and off. First, define the pin number that the LED
is connected to. Then, set the pin mode: this tells the microcontoller that the specifies pin will be
used as an output. Finally, toggle the state of the LED, for example, the LED is turned on by
setting the output pin to “HIGH” and turned of by setting it to “LOW”.

You might also like