If you follow mark's recommendation and have to hack the light switch or/and the lamp socket, then I recommend the current configuration: PC to Xbee USB adaptor ----(wireless)---- arduino + Xbee shield + Power Switch tail
They are also several cheaper relay shields for arduino.
If you can use a high power LED (instead of a light bulb, no relay required), you may want to look at
> From:
[email protected]> To:
[email protected];
[email protected]> Subject: RE: Simple wireless light controlled through EPICS?
> Date: Thu, 11 Jul 2013 23:24:55 +0000
> CC:
[email protected]>
> Here is a wireless light socket control. Control up to 150W bulb from up to 100 feet away. $23 at Home Depot.
>
> http://www.homedepot.com/p/Heath-Zenith-Lamp-Socket-and-Switch-Kit-BL-6138-WH/100654953
>
> You would need to replace the mechanical switch part with a relay device like the one I mentioned earlier.
>
> Mark
>
> -----Original Message-----
> From: Gomella, Andrew (NIH/NHLBI) [F] [mailto:
[email protected]]
> Sent: Thursday, July 11, 2013 6:06 PM
> To: Mark Rivers;
[email protected]> Cc:
[email protected]> Subject: RE: Simple wireless light controlled through EPICS?
>
> Yes there are definitely 120V outlets to work with. I should have specified this in my original email.
>
> -Andrew
> ________________________________________
> From: Mark Rivers [
[email protected]]
> Sent: Thursday, July 11, 2013 7:04 PM
> To: Gomella, Andrew (NIH/NHLBI) [F]; Maren Purves
> Subject: RE: Simple wireless light controlled through EPICS?
>
> Do the locations where you want to mount the lights have 120V power available. Or will you need to run a wire for that at least?
>
> Mark
>
>
> -----Original Message-----
> From:
[email protected] [mailto:
[email protected]] On Behalf Of Gomella, Andrew (NIH/NHLBI) [F]
> Sent: Thursday, July 11, 2013 6:03 PM
> To: Maren Purves
> Cc:
[email protected]> Subject: RE: Simple wireless light controlled through EPICS?
>
> Not really, it is an x-ray controller box that is under warranty so I can't open it. Maybe I shouldn't say interlock. it is basically a box with a key sticking out of it. It already has an led in it. The thing is EPICS knows the status of the key so I was hoping to use that..
> ________________________________________
> From: Maren Purves [
[email protected]]
> Sent: Thursday, July 11, 2013 6:57 PM
> To: Gomella, Andrew (NIH/NHLBI) [F]
> Cc:
[email protected]> Subject: Re: Simple wireless light controlled through EPICS?
>
> Wondering: can you power a LED from whatever powers the interlock?
> (Maybe 'power' isn't the right word here, 'control' would
> probably be better)
>
> Gomella, Andrew (NIH/NHLBI) [F] wrote:
> > Yes you are right. I guess I'm trying to find something along the lines of a wireless switch that can be easily integrated with EPICS. This is probably trivial for most, the issue here is I cant really run wires room to room (needs to be somewhat temporary solution) and I have multiple doors that need covering (and little experience with EPICS and hardware engineering)
> >
> > If it were one door, to be honest I'd probably just put an old laptop on a table next to it and just have it on our local wifi network reading out the PV value to a fullscreen display...
> >
> > Mark's suggestion seems the easiest to implement, but I'm not sure I can run the wires. The less elegant option is for me to purchase something like this http://www.amazon.com/dp/B000G80V28 and press it every time I turn the x-ray on or off.
> >
> > Thanks,
> > Andrew
> > ________________________________________
> > From: Maren Purves [
[email protected]]
> > Sent: Thursday, July 11, 2013 6:29 PM
> > To: Gomella, Andrew (NIH/NHLBI) [F]
> > Cc: Mark Rivers;
[email protected]> > Subject: Re: Simple wireless light controlled through EPICS?
> >
> > Maybe I'm off, but IMHO you need a switch (that you plug the light
> > into) with a (serial or otherwise) control rather than the light
> > being controlled itself?
> >
> > Maren
> >
> > Gomella, Andrew (NIH/NHLBI) [F] wrote:
> >> The interlock came hardwired into our x-ray controller box. It's value can be read with the asyn stream driver and is a BO variable that reads whether the key is in the armed position or not. I was hoping to use this value to trigger lights on or off. Unfortunately I can't modify anything with the x-ray controller, so I figure there has to be some sort of USB light on the market that runs on serial commands? Or maybe such a specific thing does not exist and requires a micro-controller and some work to make.
> >> ________________________________________
> >> From: Mark Rivers [
[email protected]]
> >> Sent: Thursday, July 11, 2013 6:02 PM
> >> To: Gomella, Andrew (NIH/NHLBI) [F];
[email protected]> >> Subject: RE: Simple wireless light controlled through EPICS?
> >>
> >> How is your interlock done? Simple relays or with a PLC? Our laser interlocks here at APS use inexpensive PLCs, and they directly operate the warning lights outside the enclosure.
> >>
> >> Mark
> >>
> >>
> >> -----Original Message-----
> >> From:
[email protected] [mailto:
[email protected]] On Behalf Of Gomella, Andrew (NIH/NHLBI) [F]
> >> Sent: Thursday, July 11, 2013 4:57 PM
> >> To:
[email protected]> >> Subject: Simple wireless light controlled through EPICS?
> >>
> >> Anyone have any suggestions for a simple way to control a light with EPICS? It does not need to be bright, even a small LED will do. Basically I'm trying to have indicators on several doorways to show the current status of the interlock on our x-ray source (which is already a PV).
> >>
> >> In the ideal scenario it would be connected to wifi so that ethernet/usb cables do not need to be run everywhere. I was thinking of maybe trying to get the "Belkin WeMo Home Automation Switch" to work with EPICS, it is basically a power plug that connects to WiFi. But it is probably easier to find some USB LEDs and run cables.
> >>
> >> I know some beamlines at APS have EPICS controlled lights, so wondering if anyone has ideas?
> >>
> >>
> >> Thanks!
> >> Andrew
> >>
> >
> >
>
>
>