You are on page 1of 19

JABATAN TEKNOLOGI MAKLUMAT

&
KOMUNIKASI

COURSE CODE & NAME:

DFN 40312 – EMBEDDED INTERNET OF THINGS

PRACTICAL WORK 3

PREPARED FOR:

NOR FAIZAH BINTI ZAILANI


SESI 2 2022/2023

PREPARE BY:
SITI HAWA BINTI OTHMAN
( 25DDT21F1011 )
Part A: Control LED using Telegram

1. Assemble circuit connection as Figure 1.

Traffic light module ESP32

GND GND

R 2

2. Open Arduino IDE. Install ArduinoJson and UniversalTelegramBot library


3. Write source code as following. Don’t forget to change SSID, password, BOTtoken.
4. Observe output in serial monitor as shown in Figure 2.
5. Observe output in telegram bot as shown in Figure 3.

Link output video : https://drive.google.com/drive/folders/1cL1Wg-pdS6oD5c0reSkdwqI5PZpKmt4p

PART B: Reading sensor value using telegram


1. Assemble circuit as shown in Figure 4.

DHT11 ESP32

gnd gnd

Data 4

VCC 3.3V
2. Write source code as following.
3. Observe output at telegram as shown in Figure 5.
PART C: Data Collection for Temperature and Humidity using IFTTT and DHT 11

1. Open https://ifttt.com/home

2. Click Create

3. Click If This (Add)


4. Search and select Webhooks

5. Click Receive a web request

6. Fill in the event name, example:Temphumidity_data


7. Click Create Trigger

8. Click Then That (Add)

9. Search and select Google Sheets


10. Click Add row to spreadsheet

11. Fill in the Spreadsheet name, Formatted row and drive folder path
12. Click Create Action

13. Click Continue

14. Click Finish


15. The status is Connected

16. Click at the Webhooks icon

17. Click Documentation


18. Copy Key from Webhooks

19. Copy this following coding to Arduino IDE


20. Open the Google drive>>IFTTT>>MakerWebooks>>Click Temphumidity_data>>Open IFTTT_DHT 11 ESP32

Questions

Based on PART C, modify the source code to ON RED led if temperature exceed 29 degree
Celcius
LED ON
RUBRIC FOR PRACTICAL WORK 3

Criteria PERFORMANCE LEVEL Weightage Score

4 3 2 1 %
PART A & B 100% components are 80% components are 40% components are 20% components are
Assemble the circuit connected properly and connected properly. connected properly. connected properly. 5 =__ /4x5
Connection able to function
properly.
=
Configure input and 100% of the input and 80% of the input and 40% of the input and Only 20% of the input
output output configurations output configurations can output configurations can and output 5 =__ /4x5
can be executed be executed correctly be executed correctly configurations can be
correctly executed correctly
=
100% steps of creating 80% steps of creating a 40% steps of creating a 100% steps of creating a
Create a project file
a project file in Arduino project file in Arduino IDE project file in Arduino IDE project file in Arduino
IDE and telegram have and telegram have been and telegram have been IDE and telegram have 15 =__ /4x15
been successfully successfully developed. successfully developed. been successfully
developed. developed.
=
Functional algorithm 100% function algorithm 80% function algorithm 40% function algorithm Only 20% function
and evaluate the can be understood and can be understood and can be understood and algorithm can be 15 =__ /4x15
coding successfully write a can write a source code can write a source code understood and can
(Question) source code based on based on the condition based on the condition write a source code
the condition. with a little help from the with more help from the based on the condition =
lecturer. lecturer. with more help from the
lecturer.
System Functional
(Question) 100% of the system 80% of the system 40% of the system Only 20% of the system 10 =__ /4x10
successfully works as successfully works as successfully works as successfully works as
instructed. instructed. instructed. instructed. =

TOTAL PART A & B 50 = /50

PART C 100% components are 80% components are 40% components are 20% components are
connected properly and connected properly. connected properly. connected properly. 5 =__ /4x5
Assemble the circuit
able to function
Connection
properly. =
Configure input and 100% of the input and 80% of the input and 40% of the input and Only 20% of the input
output output configurations output configurations can output configurations can and output 5 =__ /4x5
can be executed be executed correctly be executed correctly configurations can be
correctly executed correctly
=
Create a project file 100% steps of creating 80% steps of creating a 40% steps of creating a 100% steps of creating a
a project file and project file in Arduino IDE project file in Arduino IDE project file in Arduino
configuring input/output and IFTTT have been and IFTTT have been IDE and IFTTT have 10 =__ /4x10
in Arduino IDE and successfully developed. successfully developed. been successfully
IFTTT have been developed.
successfully developed. =

Functional algorithm 100% function algorithm 80% function algorithm 40% function algorithm Only 20% function
and evaluate the can be understood and can be understood and can be understood and algorithm can be 15 =__ /4x15
coding successfully write a can write a source code can write a source code understood and can
(Question) source code based on based on the condition based on the condition write a source code
the condition. with a little help from the with more help from the based on the condition =
lecturer. lecturer. with more help from the
lecturer.
System Functional
(Question) 100% of the system 80% of the system 40% of the system Only 20% of the system 15 =__ /4x15
successfully works as successfully works as successfully works as successfully works as
instructed. instructed. instructed. instructed. =

TOTAL PART C 50 = /50

100
TOTAL PART A & B + C 100

You might also like