Tag Archives: LED

ASL to LED (AKA American Sign LED-uage)

For my project I wanted to combine American Sign Language and what we’ve been working on in class. So I decided to translate the sign language alphabet into Morse code (done through flashes on an LED). I used two flex sensors, one on my thumb and one on my forefinger to do so. For this project I only did the letters A through H because to go past that I would need another flex sensor as well as an accelerometer to accurately transmit the letters. However, for A through H only the thumb sensor would technically be needed, but for accuracy (and I bought the thing so I figured why not) I used the one on the forefinger as well. It took me a while to figure out exactly how to code it and I feel like there would be a way to shorten down the code, but I did not know how at this point. But the biggest time consumer was figuring out the sensor ranges needed to code. And here is the video explaining some of this and a demonstration.

 

Don’t Forget Your Keys (Part 2)

The switch is activated.
The switch is activated.

So to be 100% honest I forgot to take a picture of my circuit before I disassembled it and I just didn’t feel making it again just to take a picture. However, because my project this week tied in to last weeks switch I just reused that picture. So I’ll just describe everything and I swear it works. The idea was that if the keys were on the hook and the door was closed one LED would flash on and off. If the key was on the hook but the door was opened the LED would stay on constantly and a buzzer would go off. If the key wasn’t on the hook though nothing would happen. To keep things simple though I just used two panic button switches instead of using the key and door switches. Below is the code for this. Also I couldn’t get the buzzer to work so I just used two LED lights instead.

void setup(){
pinMode(8,INPUT);
pinMode(7,OUTPUT);
pinMode(13,INPUT);
pinMode(12,OUTPUT);
}
void loop(){
if (digitalRead(8) == HIGH){
if (digitalRead(13)==HIGH){
digitalWrite(7,HIGH);
digitalWrite(12,LOW);
delay(1000);
digitalWrite(7,LOW);
digitalWrite(12,LOW);
delay(1000);
}
else {digitalWrite(7,HIGH);
digitalWrite(12,HIGH);}
}
else {digitalWrite(7,LOW);
digitalWrite(12,LOW);
}
}

Ooo ooO

a tad complicado

Caleb and I made TWO separate switches with TWO separate LEDs that blinked at TWO separate speeds.