Week 5: PROJECT: Serial Communication Phase2

Project: A Buzz Wire Maze

Group member: Heyu Zhang, Kimaya Malwade and Yuan Chen

Assignment requirement:
Continued from last week.
The goal for last week: concept, design, circuitry finished
The goal for this week: Processing code, serial communication, testing, iteration finished

Continuing working from last week, the team:

  • finalize the visual design of the game

  • write the program to make a communication between the Arduino and Processing

The Start Screen
The player starts the game by hitting the space bar, getting rid of the “starting” button in the middle of the screen and a small square controlled by sensors (distance sensor along the X-axis, pressure sensor along the Y-axis) appears on the top left corner of the screen.


Adjust the variables by playing with the sensors, the player sends the square to the bottom left of the screen, where the image of “Fin.“ located.

The final image only appears when the player reaches the Fin. point.

The final image only appears when the player reaches the Fin. point.

ATTENTION: Do not let the small square touch any of the blocks on the screen. Otherwise, the square will be sent back to the top right. Game restarts.


The Code
Download the code package here

The Demonstration Video


Week 4: PROJECT: Serial Communication(In Progress)

Project: A Buzz Wire Maze

Group member: Heyu Zhang, Kimaya Malwade and Yuan Chen

Assignment requirement:
1. one example of communicating between the Arduino and Processing
2. the piece should demonstrate a good (or funny) reason for existing

Scary Maze Game

Scary Maze Game

Buzz Wire Game

Buzz Wire Game

Inspired by “Buzz Wire Game“ and “Scary Maze Game”, we are working on making a maze game. The player controls the movement of a small circle on the screen by playing with a distance sensor and a pressure sensor. If any part of the circle touches the barrier(color blocks on the screen), the circle will be forced to get back to the starting point (top left of the canvas) and restart the game.




The Circuit Test

The Schematics

Image from iOS.jpg

the Test Code(Arduino)
(The team use this code to make sure all the components on the Arduino board work.)

the Test Code (Processing)
Let the circle back to top left corner when hit the red block


(To be continued…)

Week 2: Enhancement to your homemade switch

Project Name: Don't stop drinking (a.k.a "Don't touch me" box)

I do not play with salty water this week, since liquid as a conductor is not very stable. However, I still want to continue the subject of serving food.

The schematic
I want to make a parallel circuit and the switch connect either path to make a complete loop.

When a cup is put on the coaster, the red light is lit up.
Otherwise, the green light goes on continuously.

The vivid image of the circuit

The vivid image of the circuit

The actual schematic.

The actual schematic.

Then, here comes Arduino.

By using Arduino, I can code all these instructions, so that I do not need a green LED light and a red one for my purpose. There is a kind of LED light that the color of light can be changed and controlled by Arduino.

I played around with the assets and made the circuit work.


However, as the sensor is quite heavy, it can’t be mounted onto the ceiling of my box without keeping dropping down. I changed the sensor from a distance sensor to a photoresistor, which is super light weighted.


This works with other object, too.

So, I rename this project “Don’t touch me” box. Basically if an object is put on the box, the red alarm light will be light up..