Maker Pro
Maker Pro

IR Switch Trigger in Specific Setup

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
Hello everyone! I'm an artist and I want to make a lightbox that turns on only when you get near it. I have a shelf which is part of the installation where I will to place all the electronics. I want the lightbox to turn on when you are around 40 cm away from the shelf or closer. As soon as you step away from that distance the lightbox turns off. Thus it can only be activated when someone is near it. I want the system to be really robust and incredibly simple, which is why I am shying away from ardruino. There may potentially be hundreds of people who throughout the piece's time being displayed could trigger it, so reliability, consistency, and ease of repair/part replacement is really important.

Thanks for all your help and happy holidays!

Lightbox%20Sensor_zpshve1n33r.jpg

As you can see, my sketchup friend is totally not interested in the artwork, but hopefully you all can help!
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
A passive infra-red (PIR) motion sensor driving a timer to set the "ON" time after it is triggered should work. You might even be able to buy one off the shelf. The tricky part is setting the sensitivity and the field of view so passers by who don't stop to view the art won't trigger the light box on. Perhaps add a capacitive proximity sensor to the shelf that enables the light box after the PIR turns it on and then turns the light box off when the person triggering it walks away. Or ditch the PIR sensor and just use the capacitive proximity sensor.

PIR sensors only respond to motion, so you do need either a fixed time on after triggering, or some way to detect when someone walks away from the display. Don't you just hate it when a public toilet with a PIR sensor flushes prematurely?

I am sure others here will chime in with other ideas. If you see something you like, maybe we (the forum) can develop a circuit or solution. Good description of the problem by the way.
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
A little background - maybe it'll make things clearer -- I shot these images behind the counter of stores. So I'd like to recreate that environment in a gallery. Just like there is an exchange at the counter, I want there to be an exchange between the viewer and the image - hence it only turns on when someone is in front it.

I'd like to avoid any timers, and just have it be really responsive.

Thanks for all the input!
 

AnalogKid

Jun 10, 2015
2,884
Joined
Jun 10, 2015
Messages
2,884
ebay has plenty of low-cost PIR and ultrasonic people detectors that will work reliably in the 15" range you cite. What power source is available for the control electronics, and what are the voltage and total wattage of the lights?

ak
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
20160324_153409_zpsr51ir78a.jpg


That's the power supply.

The specs are 110-240V 50/60hz ; 1.5 Amp

Output 12.0V - 5.0 A


Should I put the sensor controller in the connection from the lightbox to power supply or power supply outlet?

Any assistance will be greatly appreciated!
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
The lights are 12V LED's. I'm not sure how much wattage they are consuming but I wildly guessing something in the range of 10 - 50 watts.
 

cjdelphi

Oct 26, 2011
1,166
Joined
Oct 26, 2011
Messages
1,166
The problem with pir/infra red is that

1. It will trigger when it senses motion not really distance there is an adjust but even low it might be too sensitive as it has a wide view field (so neighbors might trigger it)

2. Regardless of how close you are it will turn off until you move again

The ultrasonic sensor will give you a range of distance and you can make sure it stays on until the person steps away backwards or side to side

But it requires a mc/arduino
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
I'm ok with working with MC/Arduino - can arduino control a power supply like the one shown above?
 

cjdelphi

Oct 26, 2011
1,166
Joined
Oct 26, 2011
Messages
1,166
10 - 50w is a lot, i mean a LOT, 10w is about as much light as you need before you start blinding people..

If you can find out how much current draw will be, you can pick a mosfet best suited for the job, a 50amp mosfet might be over kill if all you need is 1amp at 12v (10w)

So yeah, arduino can no problem, you just need a bit of extra circuitry
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
I just got the exact amount in wattage for the leds - its 24 watts total (they are sidelight, not backlight). Any guidance on how to design the circuitry for this? Also where should it be positioned? Between DC inverter --> leds or between the power source --> dc inverter
 

AnalogKid

Jun 10, 2015
2,884
Joined
Jun 10, 2015
Messages
2,884
The inverter already has power switching parts; better to let them do the work than to add more power switching parts between the inverter and the LEDs. If possible, it would be good to use the output from the body sensor to turn the inverter on and off with its shutdown control pin - if it has one. Also, what powers the body sensor when the inverter is off?

ak
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
I'm assuming a standard socket (we have 240v here) could supply the power body sensor. I'm guessing there would have to be something to provide the body sensors the proper power.

Not sure where the shutdown control pin would be - I'm guessing I'd have to open it up to find it.
 

AnalogKid

Jun 10, 2015
2,884
Joined
Jun 10, 2015
Messages
2,884
Sorry, I drifted into building the inverter from scratch. Are you looking to build a circuit, or connect together pre-made modules? IOW what is your electronics skill set?

ak
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
My electronics skill set is pretty basic. I've hacked my xbox, replaced op amps in my sound card. I can solder things together if I have a good set of instructions. The best case for me would be putting together something that is mostly built and needs minimal programming etc.
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
As you can see, my sketchup friend is totally not interested in the artwork, but hopefully you all can help!
Hey, your sketchup guy looks a lot like me (when my hair is not dyed as in my Gomez picture). I've been digitized!

Bob
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
maxresdefault.jpg


How would the HC-SR04 connect to the ardruino 12Volt board?
Because the beam angle is very narrow is there a way I can array 2-3 of these together?
 

wfarid

Dec 20, 2015
17
Joined
Dec 20, 2015
Messages
17
I also noted that the spread of the beam is 30 degrees -- the shelf will be 900MM wide. Below is a rough spread (its more than 30 degrees but just a rough idea).
Ultrasonic%20Sensor%20Arrangement_zpsgthy8gbm.jpg
 
Top