Extra – Arduino and Processing

My original concept for the final project was a virtual dollhouse. The user can explore the dollhouse, which is drawn through Processing, using an Arduino button controller to go forward, left, right, and back. The Processing sketch will have multiple rooms of the dollhouse, so as the user navigates with the Arduino controller the sketch moves with the controls. Essentially, the user will go into each room, but every room will have something wrong with it. For example, one will be littered with clothes with no room to walk around in. The other will be flooded with water because the washing machine never stops.

For the first experiment I will be building four buttons using Arduino that change the color of the Processing sketch. Essentially, each button correlates to a different color. In addition to the color changing, I will add a circle to make sure that it can move up, down, left, and right like a player in a game. I will first have to learn how to assemble the physical parts and then learn how to create a sketch that changes on key presses. I will combine the two so that the buttons replace the keypress. The components required for this are the Arduino, jumper cables and wires, breadboard, two buttons, USB connector, and Processing. 

 

An extra task I thought that I would add here as well was working on connecting the potentiometer to Processing. This was actually the first time we used Processing along with Arduino, so it was a challenge learning how to connect the two. The potentiometer was used to change the size of the circle on the screen, as seen in the video.

Leave a Reply

Your email address will not be published. Required fields are marked *