Physical computing: Analog/Digital

First month in USA and I already fell ill. Not the greatest start to school and I was horribly behind on all the videos and assignments. But gradually, I managed to dig myself out of that hole and here is my combined blog on the Week 3/4 (digital and analog projects) for Physical computing.

As I was very short on time, I did not go with a big concept but chose to focus on making something which demonstrated my learning of the topics for week 3 & 4.

The project that I chose to work on was:

3 Buttons.

3 LEDs.

If you press the buttons in the correct order one after the other, the LEDs light up together.

If you don’t, the middle one lights up (Literally showing you the middle finger).

To make things more fun, I added in 1 motor which rotates a full 90 degrees when the buttons are in the correct order and gives a small shake when you don’t.

I did not run into major issues with the circuits after following the labs videos but the code to count the correct order of buttons was a bit tricky. My final code is a jumble of if/else statements but I think there is a more elegant way to do this. I shall speak to some residents and see if that can be done in a better way.

I did not get time to try out the speaker and tone (also, I did not have any speakers with me) but I am glad that I am not as behind as everyone as I was 1.5 weeks ago.

Onward and upward!

Currently listening: Drive-Incubus