Introduction: Arduino Converter
The Arduino converter converts numbers and alphabets into binary codes. Binary codes are represented as 0 and 1. In my Arduino case, the LED light that shines will represent 1 and the one that does not represent 0. It starts with the alphabets: A=1, B=2, C=3 and so on, also Upper and Lower case won't matter, it all represents the same value. Numbers go right after alphabets: 0=27, 1=28. These base 10 numbers would all later get converted once you insert the code. By this converter, you could make your LED lights shine in your own order, so if you get a transparent glass it could make something beautiful. In my converter, before it starts to process the first LED light counting from the left(green) will first shine for approximately 7 seconds, then when it shuts the converter will start to convert the numbers and alphabets into binary.
Supplies
1. 1x Arduino Breadboard
2. 1x Arduino Leonardo
3. 6x led lights(the color is optional)
4. Hook up wires
5. One box that could wrap up the whole breadboard
Step 1: Constructing the Circuit
Step 2: Set Up the Code
String personName = ""------ Note: you type any number or alphabet in the " " in order to get it converted into binary codes
#define LED1 3
#define LED2 5
#define LED3 6
#define LED4 9
#define LED5 10
#define LED6 13
#define DELAY 7000
void setup() {
pinMode(LED1,OUTPUT);
pinMode(LED2,OUTPUT);
pinMode(LED3,OUTPUT);
pinMode(LED4,OUTPUT);
pinMode(LED5,OUTPUT);
pinMode(LED6,OUTPUT);
personName.toUpperCase();
}
void binaryPrintLetter(int letter) {
if((letter % 2) > 0) {
digitalWrite(LED1, HIGH);
} else {
digitalWrite(LED1, LOW);
}
if((letter % 4) > 1) {
digitalWrite(LED2, HIGH);
} else {
digitalWrite(LED2, LOW);
}
if((letter % 8) > 3) {
digitalWrite(LED3, HIGH);
} else {
digitalWrite(LED3, LOW);
}
if((letter % 8) > 3) {
digitalWrite(LED3, HIGH);
} else {
digitalWrite(LED3, LOW);
}
if((letter % 16) > 7) {
digitalWrite(LED4, HIGH);
} else {
digitalWrite(LED4, LOW);
}
if((letter % 32) > 15) {
digitalWrite(LED5, HIGH);
} else {
digitalWrite(LED5, LOW);
}
if((letter % 64) > 31) {
digitalWrite(LED6, HIGH);
} else {
digitalWrite(LED6, LOW);
}
}
void loop() {
for (int i = 0; i < personName.length(); i++) {
int convertedLetter;
if(int(personName[i]) >= 65)
convertedLetter = (personName[i] - 'A') + 1;
else{
convertedLetter = (personName[i] - '0') + 27;
}
binaryPrintLetter(convertedLetter);
delay(DELAY);
}
}
Step 3: Building the Outfit
The easiest way is to by a transparent glass that makes the LED light, pop put
If you're going to make it yourself then the box has to be at least 15(length) x20(width)x5(height)