Author Topic: Cheapest way to make 3 LEDs blink a specific pattern ID  (Read 16587 times)

0 Members and 1 Guest are viewing this topic.

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13748
  • Country: gb
    • Mike's Electric Stuff
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #50 on: October 02, 2016, 11:00:43 pm »
Without knowing what kind of lense is being used and what kind of field you want to capture the resolution and framerate aren't going to help. I also think that trying to capture blinking lights in a videostream is going to be very hard because you'll likely also need to recognise and track the object across several frames BESIDES detecting it in the first place. A high resolution and framerate can actually be a bad thing according to my experience with computer vision. Depending on the application a big size QR style encoding (possibly with color if lighting is good enough) could be a much better bet. It will be easier to make the tags (just go to a print shop and have them designed/made) and the computer vision system will be allowed to drop a whole bunch of frames without getting into trouble.

Just so you know, I've worked on quite a lot of image processing and visual marker recognition/tracking.
In this case, having such small surface and such a big range, it might not be the best guess.
I will try it soon for sure, but let's just stick to the main question about the LEDs if possible.

I already have a working prototype.
It can detect multiple LEDs with unique ID, using a standard cheap 1280x720 camera. Multiple time per seconds.
What I need is the "hardware part" (circuit / components)  and is there any way to crunch it to a simpler design, that would cost almost nothing to make.
How to design the most simple circuit that will be able to "blink" LEDs with a specific pattern.
If you are certain that LEDs are the answer, you already have a few potential answers - lowest-end MCU or ASIC, probably a COB assembly. No other solution will approach the all-in cost in the quantities you're talking about.
Possibly die-bonded LEDs if the optics work out - maybe die bonded LEDs on the PCB combined with an injection-moulded light guide to direct the light in the required directions. A moulding like this could also be used to do things like holding the battery, retaining the PCB etc.   
 
You want to be talking to the sort of people that make flashing LED badges & toys, but you do need to think carefully about the power issue in order to specify the design sufficiently well.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #51 on: October 02, 2016, 11:13:01 pm »
Perhaps this question is better asked to a manufacturer of these kind of gadgets. There are too many variables where solution A is cheaper/better then solution B or vice versa. This also has to do with the production techniques available to a manufacturer and their experience.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4531
  • Country: au
    • send complaints here
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #52 on: October 03, 2016, 12:04:27 am »
Balancing a dice to the precision users expect while potting all this circuitry and a power source, you've got a long road ahead.
A high resolution and framerate can actually be a bad thing according to my experience with computer vision.
They need to be suitably matched, a camera might not even be the best solution if the transmitters are an open ended part of the solution (IR channel with CDMA or other strong telecommunications codings designed for mass transmitters). But the OP is drip feeding and says the camera is a fixed requirement. I'd be guessing at this point its validation for casinos and they want to leverage the existing camera infrastructure (at which point modifying the dice is insane).

Since the dice sit for some time while people observe the result it'd be a good candidate for a single frame (HDR exposures perhaps) at a high enough resolution to pick out dice face across the required field of view. Shoehorning this backwards to a camera specification is the wrong way to go about it.
 


Offline jpauclairTopic starter

  • Contributor
  • Posts: 17
  • Country: ca
 



Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13748
  • Country: gb
    • Mike's Electric Stuff
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13748
  • Country: gb
    • Mike's Electric Stuff
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #58 on: October 03, 2016, 09:08:56 am »
Balancing a dice to the precision users expect while potting all this circuitry and a power source, you've got a long road ahead.
A high resolution and framerate can actually be a bad thing according to my experience with computer vision.
They need to be suitably matched, a camera might not even be the best solution if the transmitters are an open ended part of the solution (IR channel with CDMA or other strong telecommunications codings designed for mass transmitters). But the OP is drip feeding and says the camera is a fixed requirement. I'd be guessing at this point its validation for casinos and they want to leverage the existing camera infrastructure (at which point modifying the dice is insane).

Since the dice sit for some time while people observe the result it'd be a good candidate for a single frame (HDR exposures perhaps) at a high enough resolution to pick out dice face across the required field of view. Shoehorning this backwards to a camera specification is the wrong way to go about it.
It would certainly be cheaper to add a suitable camera.
If this is dice application, then for power management, some sort of motion detector should work well - probably something like a slightly loose ball contacting pads on the PCB. Just need to arrange the mechanics to work in any orientation. Doable but will need quite a bit of design & test work.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8275
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #59 on: October 03, 2016, 11:12:45 am »
0.07 USD per piece

http://www.emc.com.tw/eng/database/Data_Sheet/8BIT/EM78P173N.pdf


https://world.taobao.com/item/536258162819.htm?spm=a312a.7700714.0.0.H5dZUO#detail
If that's the price for a packaged OTP device, I wonder how much cheaper bare die would be.
Not quite the same but I've seen sub-$0.01 for 4-bit mask ROM MCUs in >10ku (not including mask costs.) That one is pretty cheap for an 8-bitter with 1K instruction words.
 

Offline Xenoamor

  • Regular Contributor
  • *
  • Posts: 83
  • Country: wales
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #60 on: October 04, 2016, 08:18:09 am »
Bit of an off the wall idea but have you considered using an IR transmitter (it doesn't have to be an IR led though)? Something with a 555 timer connected to a LED and then you can just vary the components to change the frequency of the LED
you could then use the frequency to determine which device is which

You'd just be paying for a few resistors/capacitors and a 555 timer
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13748
  • Country: gb
    • Mike's Electric Stuff
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #61 on: October 04, 2016, 08:27:46 am »
Bit of an off the wall idea but have you considered using an IR transmitter (it doesn't have to be an IR led though)? Something with a 555 timer connected to a LED and then you can just vary the components to change the frequency of the LED
you could then use the frequency to determine which device is which

You'd just be paying for a few resistors/capacitors and a 555 timer
But that wouldn't get you any power management, and varying the frequency wouldn't give many ID options once you take the camera framerate into account
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #62 on: October 04, 2016, 09:48:57 am »
Quote
Cheapest way to make 3 LEDs blink a specific pattern ID

How many EEVBLOG posts does it take to find the Cheapest way to make 3 LEDs blink a specific pattern ID?
================================
https://dannyelectronics.wordpress.com/
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #63 on: October 04, 2016, 10:03:06 am »
Quote
It would certainly be cheaper to add a suitable camera.
What is "state of the art" for bar-code or QR code scanning via hi-def camera?  The smallest possible QR code apparently encodes 5 numeric digits...
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4531
  • Country: au
    • send complaints here
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #64 on: October 04, 2016, 11:54:13 pm »
Quote
It would certainly be cheaper to add a suitable camera.
What is "state of the art" for bar-code or QR code scanning via hi-def camera?  The smallest possible QR code apparently encodes 5 numeric digits...
Its not simple to define, you are limited in the resolution of cameras for a given field of view which places a lower limit on the resolvable detail. IR ink on a dice would be an improvement over just measuring the existing pattern, but its a cost trade off between the volume of consumables and the number of measuring devices needed. Solutions for customers measuring a few units with their numerous phones is radically different to a solution for a single location measuring millions of things.
 

Online Wiljan

  • Regular Contributor
  • *
  • Posts: 226
  • Country: dk
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #65 on: October 14, 2016, 10:51:20 am »
Interesting article on Binking Led the LSI way
http://hackaday.com/2016/10/13/blinking-an-led-extreme-edition/
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #66 on: October 14, 2016, 11:21:03 am »
that's too extreme.

so far, no one has presented a cheaper alternative than my swiping-leds-through-copper-stripes approach.
================================
https://dannyelectronics.wordpress.com/
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 700
  • Country: no
  • Musician, developer and EE hobbyist
    • alexanderbrevig.com
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #67 on: October 14, 2016, 02:03:50 pm »
[...]so far, no one has presented a cheaper alternative than my swiping-leds-through-copper-stripes approach.

I'd like to know how much it would cost to hire 40 people (given they manage to use one hand to swipe), have them in green suits and put in the time to make sure their intervals are OK to get detected by the CV algorithm.
To be cheap is not the same as being fuctional. The title says blink a specific pattern after all.  :-//
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7390
  • Country: nl
  • Current job: ATEX product design
Re: Cheapest way to make 3 LEDs blink a specific pattern ID
« Reply #68 on: October 14, 2016, 03:14:54 pm »
[...]so far, no one has presented a cheaper alternative than my swiping-leds-through-copper-stripes approach.

I'd like to know how much it would cost to hire 40 people (given they manage to use one hand to swipe), have them in green suits and put in the time to make sure their intervals are OK to get detected by the CV algorithm.
To be cheap is not the same as being fuctional. The title says blink a specific pattern after all.  :-//
Dont feed the troll.
 
The following users thanked this post: Frank, alexanderbrevig


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf