How to Hack Into a Cheap Electronic Toy

by lianglh1005 in Workshop > Lighting

12377 Views, 92 Favorites, 0 Comments

How to Hack Into a Cheap Electronic Toy

Photo Nov 16, 10 57 34 PM.jpg

It is a lamp called dreamlight. In the shake mode, it can blink after I shake it. If I switch it into sensor mode, it can blink when it sense the darkness. It also has a solar panel but unfortunately it has never worked. Now I'm trying to hack into the dreamlight and use computer to control it.

Take It Apart

Photo Nov 10, 8 15 29 AM.jpg
Photo Nov 10, 8 19 29 AM.jpg

I unscrew all the cover for the electronic parts and try to figure out how does it make the light blink. It has a lot of different functions so it appears very complicate, but my aim is only to control the light, so I'm trying to find the right pins to short the switch that can make the light blink.

Connect the Light Into Protosnap

Photo Nov 10, 10 41 01 AM.jpg
Photo Nov 17, 10 46 05 AM.jpg
Photo Nov 17, 10 45 21 AM.jpg
hack lamp.jpg

Based on guessing and testing by wire I find the right pins to short the switch that can make the light blink. Then I I solder one side of the two wires to the switch and the other side to the relay. Soldering the other two wires to the Protosnap. The point of the relay is that because we don't want to overpower the circuit but we want the wires to link together. The relay can do this by magnetic field created by electronic current.

Use Arduino to Control the Light

Screen Shot 2014-11-17 at 12.35.46 AM.png
Screen Shot 2014-11-17 at 12.38.22 AM.png
Video Nov 16, 11 07 04 PM
Screen Shot 2014-11-17 at 12.52.05 AM.png

I use the dimmer example in the Arduino. The default ledpin is 9. Because I connect my light to A0, so I change "ledpin=9" to "ledpin=A0". Then press upload. Then The light is blink now! After that, I copy the processing code to Processing, so that I can control the light by processing.