Saturday, November 14, 2015

Bi-Le Dominoux, 2011, copied from Wayback

Bi-Le Dominoux | Solder 'n' Code
JAN FEB SEP
Previous capture 13 Next capture
2013 2015 2016
8 captures
13 Apr 11 - 12 Sep 15
sparklines
Close Help

Solder 'n' Code

Hack-Burn-Crash! Once more, with feeling!
Admin: relwin

Bi-Le Dominoux

1

Experimental Le Dominoux using a PIC-08 (PICAXE) board and 2 LEDs. Watch the short video:

http://www.youtube.com/user/dirtypinball#p/a/u/0/sXNebej_zlg

This version also supports a piezo speaker and “bendable” LEDs, thus combining all 3 Le Dominoux features into one.

The LEDs are bi-directional, meaning either one is an input as well as an output. The PIC samples each LED until it detects a small voltage change on one of them, then uses the other LED as a light output. In this experiment it’ll play a tune if the blink signal is lost.

These high-efficiency LEDs can generate over 1V when exposed to bright light. However, when connected to the PIC’s high-impedance ADC the LED may continue to hold its charge long after its exposure, thus making “off” measurements difficult, and causing the PIC to lose the blink signal. To ameliorate this the LED input is briefly switched to an logic input driven low, thus discharging any remaining voltage. This is done in the code (below) whenever a blink signal is lost.  This fairly simplistic method works ok in the PIC basic environment. The PICAXE manual recommends grounding unused inputs — I found that by touching an unused ADC input I caused spurious readings on the other ADC inputs; the unused ADC is now grounded.

Update: most (if not all) bi-directional LED designs use 2 GPIO’s for each LED, and a “Reverse Bias and Discharge measurement” technique. This design uses only 1 GPIO per LED.  I suspect the PIC’s ADC circuitry helps out but I’m no expert here.

PIC BASIC program:

;Demonstrates using a LED as a light sensor and emitter
; automatically selects a blinking input
; input on 1 or 4, output on 4 or 1
; R. Elwin, 3/2011

symbol old1 = b1
symbol inpin = b2
symbol outpin = b5
symbol inaction = w6
symbol thresh = 8       ;ADC input drop indicates end of blink
symbol ontime = 285     ;in ms
symbol timeout = 500    ;in ms*3, when to look at inputs again

b3 = 0
gosub pinselect ;stays here upon bootup until blinking detected
inaction = 0

main:

 gosub readled

 if b6 = 1 then
 ; input off, output goes on
 high outpin
 pause ontime
 low outpin
 inaction = 0
 endif

 pause 1        ;short delay between samples
 old1 = b0

 ; check if nothing blinking
 inaction = inaction + 1
 if inaction > timeout then
 inaction = 0
 sertxd ("timeout",13,10)
 b3 = 1   ; play a tune
 gosub pinselect
 endif

goto main

; figure out which pins to use
; when swapping try to 'drain' LED's charge by setting output low
pinselect:
 low 1
 low 4
 if b3 = 1 then
 tune 0, 9,($09,$0B,$07,$27,$82) ;close encounter
 else
 pause 2 ;don't play tune, just pause
 endif

 input 1
 input 4
pinselect2:

 if inpin = 4 then    ; check other input
 inpin = 1
 outpin = 4
 else
 inpin = 4
 outpin = 1
 endif

 readadc inpin,old1

 for b4 = 1 to 10                ; sample an input a few times for change
 gosub readled
 if b6 = 1 then
 return
 endif
 pause 1        ;short delay between samples
 old1 = b0
 next b4

 sertxd ("sampling=",#inpin,13,10)
 sertxd (" data=",#b0,13,10)
goto pinselect2

; read LED on ADC, returns b6=1 if dropped below threshhold, b0=input sample
readled:
 b6 = 0
 readadc inpin,b0
 if old1 > b0 then
 b3 = old1 - b0
 if b3 > thresh then
 b6 = 1
 endif
 endif



Bi-Le Dominoux experiment, PICAXE-08M

return
Share
  • Bi-Le Dominoux
  • Comments (7)
  • Trackbacks are closed.
  1. Profile photo of Brett (FightCube)

    Very cool!

  2. Profile photo of relwin

    Here’s Ben Nahill’s PIC-based Le Dominoux design notes:
    http://aplusnumberone.net/domino/

    • wosser
    • March 15th, 2011 12:37pm

    I read about the bi-directional properties a few weeks ago and was very surprised by it, since it doesn’t seem to be a common usage. Once again i’m very impressed by the simple elegance in your designs.

    Can we infer from the fact that green LEDs don’t detect red light, that an X coloured LED can ONLY detect X coloured light? Or is there more to it than that?

    The choice of tune made me smile and nod approvingly :)

    I’ve got to try this. Nice work sir.

    • Profile photo of relwin

      A question I have is all the bi-directional LED designs use a reverse-bias & discharge measurement technique requiring 2 GPIO’s. I’ve demonstrated a single GPIO solution here. Why does it work?

      • Profile photo of relwin

        After reading:
        http://www.imagineeringezine.com/files/air-bk2.html
        I believe I’m using the LEDs in “photovoltaic” mode which is typically not used for communications as it is too slow. However, for this experiment’s configuration pv mode works ok as the light flashes are very slow.

    • Yeppity
    • March 15th, 2011 1:45pm

    LEDs as receivers will detect any light of a lower wavelength. So an LED that produces red light (~700nm) will detect any light right through the spectrum down to blue light (~480nm, but green light (~540nm), will detect down to blue light, but nothing above it.

    Nice to see this implemented so simply!

  3. This principle is pretty well-understood, having been identified by Forrest Mims back in the 70’s – further reading includes this paper from my friend Bill over at Mitsubishi Electronics Research Labs in Cambridge: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.69.1570&rep=rep1&type=pdf

Comments are closed.
Return top

Return top

Welcome to HackHut

Le Dominoux - 555 Timer Contest Entry, 2011 (copied from Wayback)

555 Timer Contest entry – Le Dominoux | Solder 'n' Code
FEB JAN SEP
Previous capture 16 Next capture
2013 2015 2016
24 captures
4 Mar 11 - 14 Sep 15
sparklines
Close Help

Solder 'n' Code

Hack-Burn-Crash! Once more, with feeling!
Admin: relwin

555 Timer Contest entry – Le Dominoux

5

Winner of the 555 Timer Contest: Artistic category.  www.555contest.com

Winner of a Fluke Multimeter donated by http://www.designspark.com

555 Timer Contest entry video:
http://www.youtube.com/user/dirtypinball#p/a/u/0/PQOjkuJtBfM

Description:

Le Dominoux are “LED dominoes”,  a blinking LED that propagates from device to device. Each Dominoux comprises a coin cell-powered 555 timer circuit configured as a one-shot, triggered either by a photo transistor or CdS photocell. Using a bunch of Dominoux enables creating various lighting patterns, trains, and continuous loops. Other Dominoux variants are the basic blinky for generating light pulses, and a tone generator for making annoying beeps.

For construction I chopped up RadioShack protoboards into small squares and placed the 555 on the component side and direct-soldered all other components on the solder side. I bent a paper clip to make a combination battery holder and stand, insulating the + side with a piece of masking tape. The shiny clips take to solder, the duller ones don’t (perhaps corroded?) I left the CdS cell leads long and insulated one of them so they could be bent a bit — this gives placement flexibility and worked well.

When operating (with the LED off) the power consumption is around 100 microAmps, depending on ambient lighting. This low power is typical of the CMOS variant of the 555. The CdS variant will draw more power in brighter ambient light. The LEDs draw about 10mA when lit.

I intended to build more tone generators but the piezo speakers I acquired weren’t suitable for lower tones, and the green LEDs I used weren’t bright enough to trigger other Dominoux when operating in pulse mode. The brighter red LEDs worked but my supply ran out.

I also found that the CdS photocells responded better to red light than green, and they’re more sensitive to ambient light.  This makes videoing these variants difficult as they won’t operate reliably if there’s enough light to capture good video.

Improvements:

LED selection – using high-efficiency red wide-angle (30 degrees or more) work best. Unfortunately I had mostly green 20 degree LEDs which worked, but restricted the Dominoux placement angle.

Photo transistor selection – I used Vishay ambient light detectors ($0.35 at Mouser) which have a detection cone of 40 degrees. Using a wider-angle detector may help improve placement angle, but these devices are very low power and relatively cheap. The RadioShack CdS cells work well at most angles but cost more and may not trigger with brighter ambient light.

Cost: most of the components were purchased from Mouser.com and a few items from a local RadioShack (they surprisingly carry hobby items!) Each Dominoux costs about $1.75, not including labor.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Share
  • 555 Timer Contest entry – Le Dominoux
  • Comments (32)
  • Trackbacks are closed.
  1. Dude. You should get these mass produced. Email if you need a referral for a good contract manufacturer in China. mike@ossmann.com

    • Robert
    • March 2nd, 2011 11:00pm

    Is there a reason you choose the photo transistor you did instead of 638-PT334-6C off mouser? This one is considerably cheaper. However not knowing much about photo transistors, I didn’t know if it had some flaw that would make it not work as well.

    • Profile photo of relwin

      The Everlight PT334-6C data sheet states Wavelength of Peak Sensitivity as 940 nm (IR), with a range of 400-1100 nm. The Vishay TEPT4400 has peak at 570 nm (visible greenish light) with a range of 440 to 800 nm. I didn’t have a lot of time to sample various brands and the TEPT4400 worked ok.

    • 555 Timer
    • March 4th, 2011 5:37am

    Hi, I just built the cds type, but instead of the led being off and blinking on, it is on and blinks off. The only part of the circuit I changed is R1, I just used a 1Mohm. Also, I am using a 5v source.

    • Profile photo of relwin

      Trigger is active below 1/3 Vs. Perhaps change R2 to account for 5V instead of 3V source.

        • 555 Timer
        • March 10th, 2011 7:34pm

        Ok, I changed the voltage to 3v. The circuit works but, the LED is very dim. I do not have any 3M ohm resistors so I used 3 1M ohm in series. What could be causing the led to be so dim?
        Thanks

        • Profile photo of relwin

          A standard LED may not be bright enough to trigger a photosensor. I used high-efficiency LEDs for Le Dominoux.

    • wosser
    • March 4th, 2011 9:18pm

    I’ve been trying to simulate this circuit in “Livewire”, but it only works when I turn the phototransistor around so that it is forward biased. Is this an error in your diagram (heavens forbid!) or is this a deliberate design feature? I’m a complete noob at using 555 timers so I hope you don’t mind me asking a dumb question.

    Anyway, I think this project is terrific, I am planning to make maybe 20 of these little critters and add a few features of my own such as an on-off switch and perhaps multiple LED outputs (to allow branching at sharper angles), these could be implemented as jumpers and sockets without incresing the build complexity very much.

    Good stuff!

    (I saw this project on hackaday)

    • Profile photo of relwin

      It was late when I made schematics so there might be an error. I also should use the proper phototransistor symbol instead of a photodiode.

  2. Very nice project. I wouldn’t be surprised if you won something. I’d love to see these optimized onto SMD PCBs and packaged in octagonal (1 side input – 5 sides output) and hexagonal (1 side input – 3 sides output) plastic blocks.

    • wosser
    • March 7th, 2011 10:47am

    relwin :
    It was late when I made schematics so there might be an error. I also should use the proper phototransistor symbol instead of a photodiode.

    Fair enough. Anyway I’ve now got a breadboarded version working nicely as per your diagram (I’m using a press switch because I haven’t got a phototransistor in my parts bin, although I’m running it off a 9v battery and a NE555 chip. Thank you for providing the information, it’s very helpful for me, just starting out at electronics as a hobby.

  3. Wow great post I love it.

  4. hi i have just build to LeDominoux one SMD and a basic one

    have som pics if interested
    in the url

    https://picasaweb.google.com/102080542495941287233/Ledominoux#

  5. he is at couple of shoot of a SMD version of the LeDominoux

    https://picasaweb.google.com/102080542495941287233/Ledominoux#

    • Profile photo of relwin

      Excellent fabrication Lasse!
      – What type of light sensor is used?
      – Is the light sensor angled?
      – does it work properly? Show video if possible!

      • no the light sensor is not angled at the moment. but i will try to solder it in an upright position for better reception.

        the sensor is the Vishay TEMT6200FX01 the SMD version of the one you have used

        and yes it does work the only problem i have i the angel of the sensor

        i will try to make a video soon

  6. Profile photo of relwin

    Here’s a PCB design by Adam Ward:
    http://www.flickr.com/photos/adamneilward/5505963616/

    • Randy
    • April 21st, 2011 6:29am

    This is awesome, and congratulations on the contest! I think I’m going to have to whip up my own version – with a MIC1555 chip and 0805 SMD parts, this could be *very* small.

    • 555 fan
    • April 21st, 2011 9:06am

    congrats!

  7. Congratulations Randy. Le Dominoux will be in stores before Christmas I hope.

    • Daryll
    • April 22nd, 2011 9:35pm

    Nice project Randy.

    CrashSpace, a Los Angeles Hacker Space, is going to be Maker Faire next month and one of the things we like to do is a soldering class for beginners. We’re thinking about making a big batch of these and selling them as a fund raiser.

    I wanted to contact you and make sure that was OK with you. Drop me an email.

    • KiK
    • April 23rd, 2011 10:09am

    Hi,

    I really like your project Dominoux. I really would like to test it out during workshop I organise in France, Paris.

    Can you send me a message, that we can discuss about it ?

    Regards,

    Antoine

  8. Profile photo of piperpilot

    Randy,

    I notice that you released this under Creative Commons Non-Commercial (CC-BY-NC-SA) license. Does that mean you don’t want anyone making kits or selling them?

    I see lots of interest and would love to produce a kit if I could get the cost low enough for people to buy a bunch of these.

    Thanks!
    Curtis

    • Profile photo of relwin

      Curtis,
      CC-BY-NC-SA is for the benefit of Maker clubs/educators/hobbyists and any other non-profit that wants to fabricate Le Dominoux — they don’t have to ask my permission.
      For those wishing to sell kits commercially and label them as “Le Dominoux” I would need to approve. My intent here is to ensure the assembled product works as I’ve described here. There are design/cost improvements available — some folks out there in hackerspace have demonstrated already.
      –r.e.

  9. Profile photo of relwin

    Here’s a variant using a CMOS 4011 quad NAND instead of a 555 — improved battery standby life at the expense of adding 6 more pins:
    https://fedetft.wordpress.com/2011/04/26/improving-battery-lifetime-of-le-dominoux/

  10. Congrats on the win, what a great idea!

    My wife and I own an art gallery in Calgary Canada, and we love the idea of merging art and tech. I’d like to use your concept for an open art project where volunteers help make Le Dominoux and then create temporary art projects at events and around the city.

    I think to make this project doable by the adoring public we’d need a pcb board like the one by Adam Ward, although I’m interested in the power savings demonstrated by the 4011 chip. Does anyone know how we’d go about getting 100 or so pcb’s printed at a low cost for the project?

  11. Profile photo of relwin

    Here’s a fancy RGB variant using an IR emitter/detector (electronic Chrominoes):

    http://www.youtube.com/watch?v=T568iNWlF6U&feature=watch_response

  12. Profile photo of relwin

    Here’s another version called “Daryll’s Digital Domino” (DDD) from CrashSpace, a LA Hackspace.

    http://lahack.com/2011/05/the-digital-domino/

    And a YouTube video of the action:
    http://www.youtube.com/watch?v=UOHGO_3pyYk

    These DDD were featured at the Maker Faire.

    • Wilba
    • August 25th, 2011 10:30pm

    Hi,

    I love the idea of Le Dominoux so much that I’m making a whole bunch of them using PCBs and SMD parts, based on the NAND gate version linked to in a previous comment.

    I’ve come up with an “optimized” NAND gate version which only requires a single dual NAND gate IC. I found a nice dual NAND gate IC in DIP and SO8 packages, it has open drain outputs but that’s an advantage – it can sink more current so the LED can be brighter.

    Here’s the circuit if anyone is interested.

    http://www.flickr.com/photos/wilba/6081905518

    Unlike the 555 version, if you “pulse” the NAND gate version quickly, it starts acting like an inverter, i.e. output LED is the inverse of the sensor input.

  13. Profile photo of relwin

    Here’s my interview on the French Silicon Maniacs blog:
    http://www.siliconmaniacs.org/bidouille-le-dominoux-de-randy-elwin/

Comments are closed.
Return top

Return top

Welcome to HackHut