Week 10: Homework, planning for Arduino controlled sketch idea - kalibirdsall/Creative-Coding-Class-Wiki GitHub Wiki

PAPER PIANO SHAPE GENERATOR

For my final project I want to make a paper piano using copper tape as the keys. The Arduino will turn the paper piano into a controller that generates different colored shapes on the screen. Those shapes will then fade away.

  • Paper piano: 8 keys on paper made from copper tape. Keys are used with Arduino as a controller for a p5.js shape generator.
  • Shapes generated: each key generates 1 kind of shape: circle, square, ellipse, rectangle, triangle, line, hexagon, octagon.
  • Piano key presses generate shapes in random colors that fade away after 10 seconds.
  • Shape colors are random.
  • Shapes are centered on screen. Each new shape generated is on top of the previous shape.
  • Each shape fades away after 10 seconds.

Here is my sketch.

I found this website that shows you how to make a simple piano with an Arduino. I want to start from here and revise as needed.

Here is my pseudo code for a simple shape generator.

Here is a basic sketch for the shape generator using mouse press instead of the Arduino sensor input.