Professional Documents
Culture Documents
PW 3 Mardiah
PW 3 Mardiah
EXPLAINATION :
at this result, we can see the circuit had led (red,yellow,green),resistor with 220 ohm and 1
sounder already connected to the Arduino uno. After we done checking the coding and compile it,
the led On and off (blinking) every 2 second second, after 2 times blinking the sounder will trigger
with pop” sound on and off every 1 sec.
PART A : ULTRASONIC SENSOR CODING ARDUINO
EXPLAINATION :
At this circuit as we can see there a ultrasonic sensor,virtual terminal and also POT H-G already
connected to Arduino uno. Pot H-G need to connect with power and also with ground to complete
the circuit. After we done compile the coding and set the POT H-G to 60% the virtual terminal will
pop the screen and show 263in,673cm if we set the POT H-G to 100% the Virtual Terminal will
increases.
PART A : QUESTION 1 CODING ARDUINO
EXPLAINATION :
on this circuit as we can see there a 2 LED which is Green input 4 and red at input 5, connect with
resistor and ground. There 1 sounder/buzzer input 3 . After done completing the circuit and
compile the Arduino coding, the led green will turn on in 2 seconds. Then, when it change to red
led the green led will turn off. After that, the sounder will pop the sound and led red led will turn
off.
2. Base on the virtual terminal display, explain what will happen if the potentiometer in Figure14
was change to :
a). 25%
- THE DISTANCE DISPLAYED WILL CHANGE WHEN THE POTENTIAL OF THE METER IS CHANGED TO
25% AND THE DISTANCE IS INCREASED TO 111INCH/285CM
b). 50%
- WHEN CHANGING 25% TO 50% THE ULTRA SENSOR CAN DISPLAY A DISTANCE THAT IS FURTHER
COMPARED TO 25%, WHICH IS 219INCH/560CM BECAUSE THE ULTRA SENSOR WORKS TO MEASURE
DISTANCE
c). 75%
- POTENTIAL PERCENTAGE OF THE METER IS RAISED, THE FARTER THE DISTANCE CAN BE MEASURED
BY THE ULTRASENSOR. FOR 75% OF THE ULTRASENSOR CAN MEASURE AT A DISTANCE OF 329
INCH/841CM
DISCUSSION :
In this lab, we’ve been doing 3 circuits which is 2 circuit that we have to followed on the report
and the other one is question. First circuit we using Arduino UNO component, LED, resistor and
sounder. After that we connect the LED to Arduino UNO component. 1 led to 1 pin, red led to
input 7, Yellow led to input 8, Green led to input 9 and the buzzer will go to input 10. After done
the coding we have to compile the coding, to make sure that the coding no error. If there no error
then we can start copy the HEX then paste to Proteus. To do that you have to double click the
Arduino Uno component at proteus then paste it on program file area. Then you will see the
result. On second circuits, we have to do the ultrasonic sensor circuit. The components will be
using is ultrasonic sensor, virtual terminal and also POT-HG. After that when we already choose
the components at proteus we can start the circuits. POT-H-G need to connect with power and
ground. Then, when we done the circuit. We have to do the coding, the coding already given so by
copy the code and compile it at Arduino software. Then copy the HEX paste it to proteus. Last
circuits is tricky one which is the question one. So we supposed to do delay, there a 2 LED which is
Green input 4 and red at input 5, connect with resistor and ground. There 1 sounder/buzzer input
3 . After done completing the circuit and compile the Arduino coding, the led green will turn on in
2 seconds. Then, when it changed to red led the green led will turn off. After that, the sounder will
pop the sound and led red led will turn off.
CONCLUSION :