CATOYLAMP

by cheoj043 in Circuits > LEDs

221 Views, 1 Favorites, 0 Comments

CATOYLAMP

IMG_9904.JPG
IMG_9905.JPG

I was inspired by cat toys and the shape of ground cherries. I created this lamp project for my cat. When I couldn’t spend time with my cat and left her alone at home for a long time. it makes me feel bad. especially, when I went out in the morning and came back to home at the night time. My cat left alone in the dark space. I couldn’t turn on the light and left home. That’s why I decide to make this lamp with a photocell sensor which senses the brightness. In my lamp, There is three lamps and lamp will be turned on by the brightness of its environment. for example. When It’s completely dark all 3 lights will be turned on. If it’s little bright then 2 lights will be light on. when it’s bright but little dark then 1 light will be turned on. when it’s really bright then no light will be turned on.

for materials, I try to use materials that cats like. I choose to make lampshades with origami paper because cats like the sound of paper boxes. for the pole, I cover it with my long sock which my cat loves to smell. I also braid wires with three different colours of normal yarns to give a soft feeling.

Materials

1 - 10K ohm resistor

3 - 330 ohm resistor

3 - 8.5" x 8.5" papers

3 - LED Diffused 10mm

Copper tape

3/16" thick foam board

"Wire Wrap" Thin Prototyping & Repair Wire - 30AWG

yarn ( not conductive )

long sock (use missing pair sock)

Prototype Circuit and Test It Before Put It Inside the Lamp

catoylamp_aa.jpg
IMG_9897.JPG
prototype test

Arduino code and the piece test.

Follow the circuit sketch

gather all the pieces on the breadboard and upload the code to Arduino.

Test all the parts before putting it inside the lamp.

Make sure all the parts work properly.

Check the test video and see how it works.

Upload following code ( you can change the sensor valuse definding on envirnment light.)

int sensorPin = A0; // select the input pin for the potentiometer
int ledPin1 = 9; int ledPin2 = 10; int ledPin3 = 11; // select the pin for the LED int sensorValue = 0; // variable to store the value coming from the sensor

void setup() { // declare the ledPin as an OUTPUT: pinMode(ledPin1, OUTPUT); pinMode(ledPin2, OUTPUT); pinMode(ledPin3, OUTPUT);

pinMode(sensorPin, INPUT); Serial.begin(9600); }

void loop() { // read the value from the sensor: sensorValue = analogRead(sensorPin);

if (sensorValue > 0 && sensorValue < 50 ){ // turn the ledPin on digitalWrite(ledPin1, HIGH); digitalWrite(ledPin2, HIGH); digitalWrite(ledPin3, HIGH); } if (sensorValue > 50 && sensorValue < 100 ) { // turn the ledPin on digitalWrite(ledPin1, LOW); digitalWrite(ledPin2, HIGH); digitalWrite(ledPin3, HIGH);

} if (sensorValue > 100 && sensorValue < 150 ) { // turn the ledPin on digitalWrite(ledPin1, LOW); digitalWrite(ledPin2, LOW); digitalWrite(ledPin3, HIGH);

}

if (sensorValue > 150 ) { // turn the ledPin on digitalWrite(ledPin1, LOW); digitalWrite(ledPin2, LOW); digitalWrite(ledPin3, LOW);

}

Serial.println(sensorValue); }

Cut Foam Board

IMG_0219.JPG
IMG_9781.JPG

Cut three 3"x10" foam board for the pillar part

one 6"x6" foam board for the bottom support. and make a 1" radius circle at the centre.

Origami Paper Box for LED Cover

IMG_9779.JPG
IMG_9780.JPG
IMG_0205.JPG
IMG_0208.JPG
IMG_0209.JPG
IMG_0210.JPG
IMG_0211.JPG
IMG_0212.JPG
IMG_0213.JPG
IMG_0214.JPG
IMG_0215.JPG
IMG_0216.JPG
IMG_0217.JPG

use 8.5"x8.5" paper

follow the steps to make LED cover.

make 3 covers

Make Circuit Inside the Lamp

IMG_9782.JPG
IMG_9787.JPG
IMG_9778.JPG
IMG_9776.JPG
IMG_9777.JPG
IMG_9774.JPG
IMG_9773.JPG
IMG_9767.JPG
IMG_9768.JPG

build the same circuit that we tested in step1 and put it inside the lamp.

all the inside circuit wire should be replaced with copper tape.

For the outside wire for LEDs should use the thin wrapping wire and braid it with yarn.

Tie the yarn around the paper box.

for the photocell wrap the exposed wire with the yarn.

** make sure that each wire doesn't touch each other. you can use paper tape to avoid the touching.

Glue Everything/ Put Everything Together

IMG_0220.JPG
IMG_9789.JPG
IMG_9905.JPG

Glue all the foam board looks like the following image.

Cover structure with a long sock and close the top with the glue

** make sure that the lamp can stand alone.

Test the Lamp and Enjoy It With Your Cat

final testing

Test the lamp

Let your cat enjoy it.