top of page
Lab 2-1

Lab 2-1

Lab 2-2

Lab 2-2

Lab 2-2

Lab 2-2

Lab 2-3

Lab 2-3

Lab 2-4

Lab 2-4

Lab 2-4

Lab 2-4

Lab 2-1

IMG_0574(1).jpg

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

IMG_0742_edited.jpg

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.

IMG_0743_edited.jpg
IMG_0741.JPG

Lab 2-3

IMG_0784.JPG

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.

IMG_0785.JPG
IMG_0782.JPG
WhatsApp Image 2019-10-26 at 11.55.05 PM

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

e2234d1b-0608-4634-87cc-443177d60279_edi
a56e3307-a063-426f-89fd-477e241e8741.jpg

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

IMG_0776_edited.jpg
IMG_0774.JPG

​

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