Practical 0 Precaution
Practical 0 Precaution
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.
(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
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.
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)
4) Proper mini HDMI connections (if you are not using RealVNC Viewer for remote
accessing / viewing)
- to understand the socket physical structure
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.
[RIGHT] microSD card slot spoiled when Pi 4 Board is removed from casing
- 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
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