Lab Report IoT Group 7
Lab Report IoT Group 7
LABORATORY 3 : OUTPUT
1. Sensor : A sensor is a device that detects and responds to some type of input
from the physical environment.
Ultrasonic Sensor
Servo Motor
Electric Motor
Solenoids
Hard Drive Stepper Motors
Comb Drives
B. (Q3)Observation of Q3-C.Explain the observation in no less than 20 words.
Before we upload the coding, ‘on’LED on the board are in the ‘ON’ state. ‘on’LED
light up because the board is connected to power supply from computer. For ‘L’ LED,
‘tx’ LED and ‘rx’ LED, the LED not light up and in off condition. This because the
coding that reside in it were unchanged or we could say has no instruction in it yet.
C. (Q3) Explain EACH line of the code in Q3-D.
Coding Description
digitalWrite(LED_BUILTIN, LOW) For turn the LED off and “LOW” is the
voltage level we use for it to turn off.
After we upload the coding, we find out that ‘on’LED still light up and in on
condition.‘L’ LED is ‘ON’ for a second and after several seconds ,the ‘TX’ and ‘RX’
LED is blink but only a few second and then both of them were light off. Then,the only
LED that are still blinking is ‘L’ LED that continue to light up or in on condition. We
figure out that this was occur due to our coding that put them some instruction so they
were execute it and the result was obtained. In term of coding, we might be careful from
do some logic or syntax error by always check the coding lines by lines. Also, in term of
handling the Arduino,be careful in arrangement of components on the board to prevent
the it from misfunction and also from make it from break down.
E. (Q4) Your code for Knight Rider complete with explanation for EACH line
CODE EXPLAINATION
This code is an array declaration to declare that
int pinArray[] = {2, 4, 5, 7, 10};
the specific digital input output pins on board
} code
} code
}
F. Results and Discussion of the whole lab exercise (>100 WORDS).
In the lab of IOT, what we get results and discussion of the whole lab exercise
are more about the components inside IT separate between sensors and actuators. The
sensor means a transducer the converts a physical stimulus from one form into a more
useful form to measure the stimulus. Two basic of sensors are analog and discrete.
Some of example of sensor are temperature, RFID, proximity, vision, compass and
another more.
Then, actuators are about hardware device that convert controller command
signal into a change in a physical parameter. The change is usually mechanical such as
position or velocity. An actuator is also a transducer because it changes one type of
physical quantity into some alternative form.
After that, we learn about Programming the Arduino. We start with Start the
Arduino IDE software on the computer. After that, Connect the Arduino with the
computer using the USB cable provided and than observe all LEDs on the board. Jot
down all their state (ON or OFF) also Write the code inside the Arduino. That are
summary what we learning in the lab.
The result Arduino for knight rider is the led is blinking from led first to fifth led
and the blinking runs continuously. The led become blink after the coding is compile
and run into the board via Arduino software.
In the conclusion, the results of the whole lab exercise are acquire about the
components inside IT separate between sensors and actuators also we learn about
Programming the Arduino. We very liked it what we learn in lab exercise.
G. Conclusion. (>50 words)
In conclusion, this lab test has helped us to learn how to assemble the Arduino
components and implement the Arduino software such as “Knight Rider”. We also
learn that we need to assemble the right component on the Arduino board and use the
right software coding or otherwise LEDs on the Arduino board will not light up as
being instruct by our lecture. Therefore, precision it is very important to make sure the
lab test to run smoothly without any or less error. During the lab test, we’ve learned
how to encapsulate these state machines into C++ classes to make sure the code is
simple and compact. Arduino is small but surprisingly powerful little processor.
Finally, after conduct the lab test we have learned more about iot (internet of thing)
subject.