top of page
Aw Joey's Site
Always ready to learn more...
Lab 2-1 | Lab 2-2 | Lab 2-2 | Lab 2-3 | Lab 2-4 |
---|---|---|---|---|
Lab 2-4 |
Lab 2-1
The lab was relatively easy to do as the instructions provided were very clear.
However, the motion detector is delayed (as seen from the video below). Hence, it was not as sensitive to motion from what I expected.
Lab 2-2
Personally, I felt that the concept of the ultrasonic sensor was very interesting. The example given in the additional exercise made me realize how applicable it is to real-life situations.
​
Hence, I hope to use this for my upcoming assignment as it would be very handy for calculating distances from one place to another. Furthermore, the readings are accurate as there is little to no delay.
Lab 2-3
This was my favourite lab exercise out of the five as it needed extra materials that are not provided.
​
By using the incense burner in my house, I was able to obtain some smoke reading. Since the smoke level from the burner was low, the reading spiked up only when the sensor detects a concentrated gust of smoke. Hence, the smoke level was still within the normal range.
​
This meant that the sensor is more suitable for detecting smoke coming from fires, which is very useful in real-life situations.
In this practical exercise, I ran into an issue while doing the commands in the terminal. When I entered "$ cd botbook_3002", it states that there was no file or directory. After some research, I realized that it was because the botbook_3002 file was not in the pi directory. Hence, I was able to troubleshoot it by typing the folder address with inverted commas.
Lab 2-4
Similar to Lab 2-1, the lab was relatively easy to do as the instructions were clear.
​
The program included the 'Adafruit_DHT_read_retry' method. After reading up on it, I now know that it is a method that tries to grab the sensor reading and will retry every 2 seconds up to 15 times.
​
​
Lab 2-5
​
In this practical exercise, I ran into an issue while doing the commands in the terminal. When I entered "$ sudo python nfc.py", no NFC tags were read.
​
After much troubleshooting, I remembered that my lecturer mentioned that it might be due to the version of the Python. Hence, I typed "$ sudo python2 nfc.py" instead, as the python would mean the python3 version.
​
It was shocking for me when Ctrl+C was used to stop the program. This struck my curiosity and I decided to search it up. After much research, I found out that keying in Ctrl+C in raspberry pi sends a SIGINT signal.
bottom of page