Cell Phone Penguin Loves You! Day 1! Yay!
embedded by Embedded Video
And the Instructable slideshow
Today I made a penguin that alights in joy when your cell phone rings. Okay okay, maybe only when my cell phone rings. And maybe it doesn’t alight, but light up. And maybe I didn’t make the penguin at all… but I did make it light up when my cell phone rings.
It uses an Arduino, an AQV210EH low-voltage relay and a hacked cell phone vibrating alert. It was a good excuse to figure out the Arduino, but I still rather use a PIC.
Arduino code by popular demand:
int anlgPin = 2; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int val = 0; // variable to store the value coming from the sensor
void setup() {
pinMode(ledPin, OUTPUT); // declare the ledPin as an OUTPUT
}
void loop() {
val = analogRead(anlgPin); // read the value from the sensor
if (val > 50)
{
digitalWrite(ledPin, HIGH); // turn the ledPin on
delay(10000); // stop the program for some time
digitalWrite(ledPin, LOW); // turn the ledPin off
}
}
Anyways… enough of the technical…. See it for yourself! Watch the video sucka!
