top of page

HOME I/O

mr mohammad.png

Mr. Mohammed Elnawawy is a lab instructor at the Computer Science and Engineering Department. He won several awards including the American University of Sharjah graduate student research.

Summary

This session was awesome! Home I/O is such a fun game to play. I become curious to explore the other codes which I could implement in the game!

Mr Mohammed Elnawawy's explanation and teaching was very clear and he was very jovial! 

What I did!

USING SCRATCH

Home I_O scratch entrance_gate.png

Mr Mohammed Elnawawy taught us how to create a code in scratch and give an output on Home I/O. This code allowed the gate to open when the infrared light was blocked, and it also closes when the light is not blocked. 

USING PYTHON

Home I_O garagedoor (1).png
Home I_O garagedoor (2) alarm.png

With the information I gained from this session, I was able to create a code that activates the alarm when the garage door is opened during the night. I started with writing a code to open the garage door (bottom right) when the infrared light is blocked, similar to the scratch code. Then I wrote the alarm code (top right) involving the use of a brightness sensor to detect the time of the day. So, when the garage door is opened during the night the alarm will ring. With this, the security system is completed!

 

Since this is my first complicated program, it took me a while to write the program. I was able to use some of the code I learnt from the seesion in order to complete this. The video (left) demonstrates how the alarm system works.

bottom of page