• DinaKhalil

P. Comp. MIDTERM!

Updated: Oct 26, 2019


For my midterm in this class, David, our instructor, made an awesome p5 sketch to pair us randomly in order to work in groups, and I’m glad I’m paired with Lanni and Wen.

We had our first meeting on Tuesday, the 15th of October 2019. We had a brainstorming session and decided to go with the suggested theme, which is Halloween. We didn’t really settle on one idea that day, only a bunch of awesome ideas combined. I was assigned to make a video template that we can use that’s inspired by Charlie Chaplin’s old silent movies mixed with classic horror movies like ‘Psycho’.



Also, Wen created a game flow to breakdown the idea into steps.


Game flow chart of our initial idea

The following Friday, in our class we had to share the idea of our project with David and our classmates. After that class, we had our second meeting and we felt like we need to settle on one idea and just be realistic! We FINALLY agreed on one idea that we think is so cool and hopefully gets executed the right way 🤞


The idea of our project is to set up a happy, girlie room in one of the phonebooths to create an illusion that it’s a happy room, when in fact it’s haunted. A teenage girl was mocked by her crush because she loves everything vintage, and her crush embarrassed her in front of the whole school just because she gave him a love letter. She was crushed to the point that she decided to haunt whoever visits her room after she died from natural causes, and doesn’t follow her instructions!

Instructions are in the making right now, but they mainly include that the visitor has to place a “love letter” on a force sensor resistor (or fsr for short) to walk out freely. Otherwise if you place something heavy on the fsr sensor, it will detect that it’s not a paper and shall haunt you for life!


The execution: we will place an ultrasonic sensor under the desk, that when it senses anyone who sits to use the desk it will play a video on the screen out of nowhere that explains the teen’s story and at the end of this video there will be a set of instructions to follow. If you fail to follow these instructions, you will be haunted. By haunting we mean there will be a disturbing image on the screen to try to scare you off. However, if you succeed at giving out a love letter, or just place any paper on a fsr sensor, you will be free and can go on with the rest of your life.


Trial & Error…




setup on breadboard to power ultrasonic sensor and some leds using the Arduino uno

setup on breadboard to power ultrasonic sensor and some leds using the Arduino uno

setup on breadboard to power ultrasonic sensor and some leds using the Arduino uno

setup on breadboard to power ultrasonic sensor and some leds using the Arduino uno



Now it’s 12:36AM and our presentation is in less than 9 hours! The three of us are very tired and on the verge of giving up!

As of now we have the instructions ready and all, but there are some tiny last-minute edits to the code. Finally, Wen agreed to put a timer at the end of the video to create suspense and thrill. Everything you need to know is below.

Good luck future Dina! 🙏


Introductory Video:

Password: pcomp


Arduino IDE code:


Negative response:


Phone booth:

Setup of the phone booth for our P. comp. midterm project

From the inside:

Setup of the phone booth for our P. comp. midterm project

Setup of the phone booth for our P. comp. midterm project

Setup of the phone booth for our P. comp. midterm project

Setup of the phone booth for our P. comp. midterm project

Setup of the phone booth for our P. comp. midterm project

Setup of the phone booth for our P. comp. midterm project

From the outside:

Setup of the phone booth for our P. comp. midterm project

Setup of the phone booth for our P. comp. midterm project

Setup of the phone booth for our P. comp. midterm project

Setup of the phone booth for our P. comp. midterm project

Password: pcomp


More code:


THE PRESENTATION!