Paja

Icon

Rapid prototyping for music, art and design work

7-digit display – random numbers

This is not a very meaningful interaction, but I was playing with different in- and outputs and transferring information from one source to another.
I connected a 7-digit display to Arduino and made it display random numbers from 1 to 9.
Then I added the slidelong-touchsensor in order to create the random numbers.
Additionally I connected a potentiometer, which determines the speed of the display. You need a resistor for the display, otherwise it gets to hot.

Creating the numbers:
In your code have to define which LED goes to which input. I gave each LED a number from one to seven and created an array, which contains the binary codes of each number I want to display (see photo). For example number 1 is LED 1 off, LED 2 on, LED 3 on, LED 4, LED 5, LED 6, LED 7 off (in binary: 0110000). More info in the code.

Binary System for number display

Analog input:
The slidelong-touchsensor gives number from 0 on one side to 1024 on the other side, depending how you connect 5V and GND.
The potentiometer gives as well numbers from 0 to 1024.

Arduino Code rtf-file

Video Number display

Facebook Twitter Email

Category: Media Lab Helsinki, Snippets

Tagged:

One Response

  1. pierlo says:

    how did u find out which pin on the display is which led ?

Social links powered by Ecreative Internet Marketing