LED fireflies prototype

LED fireflies prototype

hello all, heres an attempt i made at something like an LED throwie..

the problem (for me) with led throwies is that they just consume their battery, and produce light.. but they could be better at doing both..

first you have to accept the premise that your willing to spend a bit more for the tradeoff..

the inspiration for this came from some of my other projects, and of course the "LED as a sensor" concept as well as the "LED throwie"

so the parts list:
1 common cathode, tri-color (RGB) LED
1 12f683 pic micro
1 coin cell battery holder

(cheap plug) http://www.makenyc.org/
 
Remove these adsRemove these ads by Signing Up
 

Step 1So whats it do?

the idea here is to use the led throwie/graffiti concept, to add a little life to my neighborhood that ive been missing for a long time now... fireflies..

the software is designed to use the LED as a light sensor (so as not to waste power during the day)

the led as an entropy source (to make each firefly unique moments after switching it on) to vary blink color, and rate.

and of course to play a flash pattern every so often in a way that seems "organic" and isnt just an "on/off" blink

and of course use as little power as possible!

(apologies for the darkness of the video, but the light had to be dim enough not to trip the fireflies daylight sensor)


« Previous StepDownload PDFView All StepsNext Step »
34 comments
Sep 27, 2010. 3:59 AMtzq33tdq says:
cool, awesome, wow
Aug 26, 2008. 3:46 AMyazug says:
I like the idea, I'm working my own version of this with what I have, and was wondering was there anything in your firefly.h file? Thanks YaZug
Jul 17, 2008. 1:48 PMMatt D655 says:
what in the name of santa's ballsack was that?
Nov 18, 2007. 1:38 PMUshanka says:
This is so cool! I'd been thinking about how to prolong the battery life of standard throwies but I have no skill with ICs and my attempts all ended in failure. It's nice to see that someone succeeded!
Jan 7, 2008. 6:41 PMmaker12 says:
an lm 3090 osc ic or a smd 555 is better than a pic
Jan 8, 2008. 1:19 PMmaker12 says:
i do but
Nov 16, 2007. 10:40 PMNoblevagrant says:
i would like to see an irfra red led that hit tv on off codes as full spectrum as possible. imagine tossing it up high in a bar you dont like. they would think there tvs were haunted.
Dec 4, 2007. 3:34 PMJackandJohn says:
Uhm.. like this thing?

http://www.tvbgone.com/cfe_tvbg_main.php

Basically just have to mod it a little and put a magnet on it
Nov 18, 2007. 1:12 PMbtop says:
you could get a universal remote and record the signals coming out as it scans for the off signal.
Nov 19, 2007. 8:43 PMteknician89 says:
Hello Phar, How would you use an LED(even a standard LED) as a light sensor? Is there some current flow through the semi-conductor when light is applied into the lens? I have never heard of using an LED as a light sensor before (only photo-cells or solar cells). I also have done some work with PICs, specifically the bigger 16c628, but I have a 12f675 that is looking for a nice use :). I was thinking that you could use an IR LED and photo-transistor in a PIC program to syncronize the firefly's behaviors. One example might be: have a master firefly send an omni-directional message to other nearby fireflies (via IR communication), who flash their pattern, wait a bit (oh, say 1/10th of a second), and then re-transmit the message to other neighboring fireflies who do the same - resulting in a cool wave effect. You might have to include some logic in the program to keep one firefly from signaling itself or its neighbor more than once in a given time period. Also, I was curious, did you write your own PWM algorithm or are you using the on PIC PWM facilities. I am interested because I wrote my own (havent figured out the on-board PWM yet) and I noticed from the video that your PWM is very fast. My home-made algorithm is fairly slow, even on an 8 MHz clock... Do you have the source code for your PIC? I would be interested in looking at it and maybe making my own :). Thank you much, Tek
Dec 1, 2007. 4:20 PMDrew-Oz says:
Oh, I just found this instructable too...

http://www.instructables.com/id/Programmable-LED/

same-same, but different

always good to read around a topic
Dec 1, 2007. 4:09 PMDrew-Oz says:
Hey have you seen this instructable?
http://www.instructables.com/id/Synchronizing-Fireflies/

might help with the synchronizing effect you're looking for...
Nov 17, 2007. 9:58 PMNoblevagrant says:
well would it be possible to take apart a universal remote to get the codes? especially the "learning" type remotes
Nov 17, 2007. 10:52 PMNoblevagrant says:
Nov 20, 2007. 4:14 PMdarus67 says:
The TV-B-Gone can also be had in kit form

http://www.ladyada.net/make/tvbgone/

The source code is available free for download.
The codes for a bunch of TV brands are included in the source.
Nov 17, 2007. 4:16 PMDoctor What says:
you don't own a tv?!!!
Nov 17, 2007. 12:58 PMhondagofast says:
I'd love to do that! XD
Nov 25, 2007. 12:39 PMmikes80501 says:
Is there a version of the C code with comments? I'm having a heck of a time trying to figure it out. Thanks.
Nov 28, 2007. 6:30 PMmikes80501 says:
Thanks. I could understand how to turn LEDs on and off etc. but could not figure out how you made them all a bit different. Clever use of the capsense since each will be built a little differently, humidity will change, analog noise, etc.
Nov 18, 2007. 10:34 PMAzurusNova says:
This seems really cool.
You know you could build onto this with a solar cell and the simple circuitry of a resistor, a 3904 and a 3906 transistor and a capacitor and wire it onto the power part of the chip and you have a self contained unit.

I reeeallyy want to build one of these, but I know my local radio shack doesn't have these sort of parts. Its going to be hard to order things online for something with this build, but I'm sure I can find a friend to help.

With the idea I have, encasing the while thing in acrylic would seal it permanently and then you would have something cool forever.
You have my fave on this one for sure.
Nov 19, 2007. 3:23 PMAzurusNova says:
I can understand with the fragile solar panles, but encasing them in an epoxy can easly be done with some supplys from a local hardware store. I plan on making a few of these myself to sit on my window sill and test them. One thing though, Im planning to get myself the pic microcontroller kit from radioshack. Is it possible to use that to program these as well as any others I gain in my hands?
Nov 23, 2007. 9:54 PMAzurusNova says:
Hmm, thanks for the info. The controler programmer Im looking at is the learning kit they sell at radio shack. Im hoping it has all that I will need to work with it. Another application I thought of was to use these little modules in various projects. Theres so many in my head right now Im not sure what to put it to. :P
Nov 18, 2007. 7:05 PMdarkmuskrat says:
Umm, couldnt u just put (-) battery -> photoresistor -> LED -> (+) battery I know this would only make it work in the day but could u mod this concept. (Sorry im not great around electronics...Go Woodworks!)

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
8
Followers
5
Author:phar