3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

LED fireflies prototype

Step 3Suggestions

so for my second or third test, really my first worth posting.. the results are pretty good..


battery life is hard to estimate on this one, but... during the day the pic will consume ~25-30 microamps of current.. thats... microscopic.. at night, depending on the blink patterns generated.


sparkfun claims their coin cell has 250mAh of battery life, which, if the pic were the only thing on there would last well over a year, with the LEDs and of cours other factors like phantom drain from the battery..

i would estimate a couple weeks of random firefly like goodness..


some other ideas being thrown around are to maybe use infared to communicate between fireflies to some interesting effect.. but let me know what you think!
« Previous StepDownload PDFView All StepsNext Step »
2 comments
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

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