0% found this document useful (0 votes)
16 views

Practical 0 Precaution

Uploaded by

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

Practical 0 Precaution

Uploaded by

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

BAIT2123 INTERNET OF THINGS Jul 2024

Understanding on the practical works

For Practical that involves electronic components

Please make sure that you are following the proper procedure / common sense on setting up
the IoT modules in your practical exercise. The following are examples of practises that you may
need to take extra precautions during the practical works.

Practice a good way to set up an electronic circuit (with breadboard) by using the
electronic components in a way of maintaining the components’ usability.

1) Electronic components pins / legs on breadboard

Component with irregular pins / legs bending


* pins MUST NOT touch / connect to each other (short circuit !!!)

(LEFT) Straighten the pins / legs


(RIGHT) Proper practice for bending the pins / legs

(LEFT) Straighten the pins / legs


(RIGHT) Proper practice for bending the pins / legs
BAIT2123 INTERNET OF THINGS Jul 2024

(LEFT) Original transistor


(RIGHT) Fixed transistor with better spacing for connection.

(LEFT) Button pins are bent irregularly / forced to be placed into an incorrect hole.
(RIGHT) Button with broken leg(s)

(LEFT, GREEN CIRCLE) Button pins nicely fit (straight to the hole) into the breadboard
(LEFT, RED CIRCLE) Button pins forcefully press and bent into the breadboard
BAIT2123 INTERNET OF THINGS Jul 2024

2) Relay components

(LEFT) Relay is nicely placed / fit into the breadboard


(RIGHT) Original relay 5 pins condition

- Suggested way of preparing the relay on practical works:


*Soldered with five short cables on five pins, to be placed on the breadboard.
BAIT2123 INTERNET OF THINGS Jul 2024

For Practical that involves Raspberry Pi set up

1) Desktop PC setup:
- Thonny IDE (to type / execute as Pi’s Thonny IDE) https://thonny.org/
- NodeRED installation: https://nodered.org/docs/getting-started/windows
- RealVNC Viewer:https://www.realvnc.com/en/connect/download/viewer/windows/
- For Practical 5C, install the following:
- Oracle VirtualBox
- Raspberry Pi Desktop Image (Bullseye, 3.44GB)

2) Network Connection
- to avoid using microHDMI-VGA cable, use RealVNC Viewer to view Pi via the
same network.

Original set up in the laboratory (KL Branch):

Updated set up with a wifi router


BAIT2123 INTERNET OF THINGS Jul 2024

When Pi1 and Pi2 are connected to the network (router), use PC2 to check the Pi1 and
Pi2 connected IP address by accessing the router configuration page > DHCP Client
List.

In PC2 and PC3, connect Pi1 and Pi2 respectively using RealVNC Viewer.

3) Sensor connection:
Proper 4 pins cable connections (understand the socket physical structure)

Female 4-pins connector Male 4-pins connector


BAIT2123 INTERNET OF THINGS Jul 2024

Proper direction of connection the cable to the socket

WRONG WAY of connection the cable to the socket


* It can damage / spoil the connected devices and cause malfunction.
BAIT2123 INTERNET OF THINGS Jul 2024

4) Proper mini HDMI connections (if you are not using RealVNC Viewer for remote
accessing / viewing)
- to understand the socket physical structure

Mini HDMI to VGA converter and Raspberry Pi 4

Handle it, connect them GENTLY. The possible way to damage the mini HDMI socket connector
are shown below
BAIT2123 INTERNET OF THINGS Jul 2024

5) Ensure the Raspberry Pi board is always attached with the Raspberry Pi case,
especially when the microSD card is inserted.

Issue: After inserting the micro SD card into the Pi 4 (with casing) board’s card slot, DO NOT
tend to move the board out from its casing for GrovePi board installation (currently the board is
glued / screwed on the casing). At the same time, the Pi 4 sd card slot can be “spilled off /
spoiled” due to the weak design of the official Pi 4 casing.

Pi 4 Board with casing microSD card inserted

[RIGHT] microSD card slot spoiled when Pi 4 Board is removed from casing

Alternative fo the micro SD card holder protection:


* Ensure the Raspberry Pi board is screwed with 4 tiny screws, to avoid detachment of board
from casing.

* Use a USB drive to boot the Pi instead of using a microSD card.


Reference: https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb
BAIT2123 INTERNET OF THINGS Jul 2024

For Practical that involves NodeMCU ESP32 set up

1) NodeMCU ESP32 Fatal Error

- A fatal error occurred: MD5 of file does not match data in flash!
*it happened after loading the code into ESP32 module

Solution:
1) Download esptool and unzipped it
https://github.com/espressif/esptool

2) In Windows OS, install Thonny IDE from https://thonny.org/


Use Thonny > Tools > Open System Shell to launch the terminal,
type the following:

- pip install intelhex


BAIT2123 INTERNET OF THINGS Jul 2024

3) In the same terminal, go to the downloaded esptool folder, type the following
command to try on flashing the ESP32 module (use the correct COM number):

Command 1:
python -m esptool --chip esp32 --port /COM4 --baud 115200 --after hard_reset
erase_flash

Command 2:
python -m esptool --port COM4 write_flash_status --non-volatile 0

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy