← Back to work

Project archive

Net Device - The Gambling Lamp

Contents & work details
Client
Class Project, Net Devices, NYU IDM

Project record

Background


I’m fascinated by gambling concept, which depends on luck and we do not have control over it. Though most of the time it is a random event that it is theoretically equal possibility to get any result which might be good or bad. Some people believe that they are born with good or bad luck. So I start my idea with a gambling lamp, which is a lamp plus camera and three dices. If you want to change the brightness of the lamp, you have to roll the dice and the camera will pick up the number you get and sum them up to set the brightness of the lamp.


The original image is currently unavailableOriginal image link ↗Original Sketch -> Determine brightness based on gambling dice!


The original image is currently unavailableOriginal image link ↗Use open CV to detect signals and send to Max through osc


The original image is currently unavailableOriginal image link ↗


Detecting dices with openCV


The original image is currently unavailableOriginal image link ↗


Rolling dice testing



The original image is currently unavailableOriginal image link ↗Sending signal in max through OSC

The original image is currently unavailableOriginal image link ↗Building simulation model in c4d

The original image is currently unavailableOriginal image link ↗


Multi-dice detection


After demoing in expo 74 science fair, I found that if I can only get total amount of the dice dots, it will be very boring and less control ability. Thus I play with contour detection. I grab out all the contours, make a masked image for each of them and count the dots inside each masked image. The result is great! There are some points worth mentioning – zero-dot areas and white area that are too big (over 1/20 of screen are width) e.g. the desk is hidden from the screen and data, which makes the dice control more stable.


The original image is currently unavailableOriginal image link ↗


Update at 5/3 – individual dices recognition

The original image is currently unavailableOriginal image link ↗


Physical Device


I bought a lamp from Target and modified it by 110V-5V AC-DC transformer and NeoPixel light strip. The chip I use is ESP8266, which is a micro controller with Wifi module.


Net Device - The Gambling Lamp


Reform the lamp and replace


I use a dense version of neo pixel light strip, and use card board to make the inner layer.



Net Device - The Gambling Lamp


Surround the LED in a cylinder to keep the light strip in the lamp


Net Device - The Gambling Lamp


Test Pattern - Cycling Lamp!!!!!


Net Device - The Gambling Lamp


Data Send to Adafruit.io


Demo Video - The gambling lamp!


Connects to the external media service when you play.

Open in a new tab ↗




Exhibitions, research & collaborations

Contact the artist ↗
1 / 0