LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

HomeGeneral Q&A

Have non-support related questions? Ask them here!

Control one relay? Messages in this topic - RSS

Black Forest
Black Forest
Posts: 30


2/17/2017
Black Forest
Black Forest
Posts: 30
I want to use a Kinect 2 with CastleOS to control just one relay so when I speak the command the relay will close for 5 seconds and then open again.
I could use a PLC to have a timer on the relay in the PLC. What hardware could I use?
edited by Black Forest on 2/17/2017
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


2/17/2017
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
You could also just write a simple script with that timer in it:

Relay open
5 second delay
Relay close

As far as hardware, there are a lot of options. Check out the z-wave options...
0 link
Black Forest
Black Forest
Posts: 30


2/19/2017
Black Forest
Black Forest
Posts: 30
I have a 24 volt solenoid valve I need to control. I would have a Kinect 2 connected to a PC with CastleOS installed. Does the switch get controlled with Wifi or over an Ethernet cable. For me it makes no difference. There would not be a lot of distance involved. What exactly for hardware would I need. I looked at Z-wave and the more I looked the more confused I got.
0 link
Black Forest
Black Forest
Posts: 30


2/19/2017
Black Forest
Black Forest
Posts: 30
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


2/19/2017
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
You can use global cache devices with a script over either WiFi or ethernet. Many users do this, there's some examples here on the forum, and we can help you get started too. This is a pretty straightforward use.

Alternatively and more easily, I think that device allows you to define URLs to call to activate on/off, in which case you won't need the script, but rather can just create a virtual device in CastleOS.

Either way, that device is exactly what you're looking for to control your solenoid.
0 link
Black Forest
Black Forest
Posts: 30


2/19/2017
Black Forest
Black Forest
Posts: 30
OK I will order one tomorrow.
0 link
Black Forest
Black Forest
Posts: 30


4/8/2017
Black Forest
Black Forest
Posts: 30
I now have the Kinect 2 and the Global Cache IP2CC attached and recognized by the CastleOS. The documentation on the IP2CC is lacking for sure.

I need help with how to configure or script of whatever the terms might be to control two of the relays on the IP2CC. The commands would be something like, "computer forward" "computer reverse" and the relays would then be activated to a closed state for one second only each time the command was spoken.

So how can this be done? That is all the CastleOS has to do. No other devices are being used.
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


4/20/2017
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
Hi Black Forest, sorry for the confusion. We're currently working on implementing a global GlobalCache implementation, so scripts wouldn't be necessary except for IR commands (for now). This would allow you to control the device like you are looking for. It's still possible to do with the script, but we are trying to simply that so you don't need to know how to script. Should be complete next week, and then I'll let you know when you can try it out.

Thanks!!
0 link
Black Forest
Black Forest
Posts: 30


4/20/2017
Black Forest
Black Forest
Posts: 30
Chris Cicchitelli wrote:
Hi Black Forest, sorry for the confusion. We're currently working on implementing a global GlobalCache implementation, so scripts wouldn't be necessary except for IR commands (for now). This would allow you to control the device like you are looking for. It's still possible to do with the script, but we are trying to simply that so you don't need to know how to script. Should be complete next week, and then I'll let you know when you can try it out.

Thanks!!


Please don't forget to include a timer! I need to say, "computer forward" and have the relay activate for only one(1) second and then open again.
0 link
Tommy Long
Tommy Long
Posts: 218


4/20/2017
Tommy Long
Tommy Long
Posts: 218
Chris, here would be a recommendation for Global Cache....much like a virtual device, could add a text box that allows the user to paste in a GC command for turning a device on and another text box for turning it off. For IR user could paste "sendir,2:3,0,37000,1,1,10,68.....\r", for IPCC, could paste: "setstate,1:1,1\r". CastleOS would simply socket send the command. If CastleOS wants to parse the response, that may be tricky other than just log the response.
0 link