Basically, my idea is to make a wheel of fortune. Since at first, I assume our PComp and ICM final projects should be combined together for our winter show.
I didn’t write the code through website but it’s in my laptop, so I recorded a short video.
My wheel of fortune works like this: it rotates as we activate it, and it stops when we press the mouse (or press another key, still adjusting).
And my p5 is connected with my arduino, which controls the Servo. Only PINK, ORANGE and BLUE will activate the Servo to rotate, which brings different colors of sugar into my cotton candy machine. And other colors will lead to nothing.
If the right color is activated, it will pour the sugar into the machine, and my Cotton Candy machine will start to work.
The Servo will pour different colors of sugar into the machine, and people who activated it can make cotton candy themselves.
Right now I only have this draft version of both my p5 and arduino codes. I’ll add more decorations and functions to my p5, like I may activate the camera so that people can see themselves’ faces at the center of the wheel – which may be a good way to attract people. And I’ll add music to make the wheel more like a casino game. Also, I’ll define different colors different meanings, so even if people can’t get the change to make cotton candy, it will be less boring.