Project

Digital Pumpkin Carving

Tools

Arduino

P5.JS (JavaScript)

Time

2018.10

Two Weeks

Team

Lydia Jessup

S. J. Zhang

 
 
 

When we were tasked to doing something fun for Halloween, we didn’t want to do another ghost with a servo motor inside. After a few meetings, our idea settled as a pumpkin drawing competition, and maybe Hey! we can later use all the data to teach a machine how to draw pumpkins.

Scanned Documents.jpg
 
 
 
 
 

We found the ideal 32 x 32 LED matrix for our purpose, but without a data sheet. However we managed to find a few other people on the internet that worked on similar projects and followed their processes and recommendations on the power and set up.

 
 
 
IMG_6699.jpeg
 
 
 
 

I coded a simple drawing pad in JavaScript with P5.JS library to match the 32 x 32 LED matrix. A boolean expression checks if the mouse is pressed within the square range of any circle’s center. When the state is true, an opacity change is activated and the circle’s coordinate is printed. We later mapped the pixel coordinates into LED’s unit coordinate and send the string into the serial communication with the Arduino board.

 
 
IMG_6820.jpg
 
 
 

After we got the matrix to map what we have on screen, we started making a simple pumpkin shell for the matrix. We wanted a nice rounded corner on the exterior so we tapped the corner LEDs to prevent lights shinning through.

 
 
43636875_315919469224359_4649160862215438336_n.jpg
 
 

The last thing before setting it up at the Halloween party was giving it a nice interface. My partner Lydia was very keen on capturing my css moment.

 
 
Screen Shot 2018-10-24 at 9.04.09 PM.png
 
L1050894.JPG
L1050898.JPG
720.gif
 

Now go back to the top and try it one more time.