Phidgets Plugin Discussion

Posted on
Tue Dec 11, 2012 6:59 pm
loafbread offline
Posts: 136
Joined: May 25, 2009

Re: Phidgets Plugin

My Phidgets are supposed to be delivered Thursday. Are there any files I might look at to adapt the plugin to the 1017 relay board?

Posted on
Wed Dec 12, 2012 6:43 pm
berkinet offline
User avatar
Posts: 3421
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin

I am still working on the best way to solve the current problem. I should have something this weekend. In the meantime, you can install the SBC and any sensors, digital inputs, or digital outputs. You may also install any stand-alone phidgets other than the 1017. You can actually try installing the 1017. But, in me testing, the plugin will either see the 1017 (as an interfaceKit 0/0/8) or the SBC 8/8/8/8, but not both.

Posted on
Wed Dec 12, 2012 6:50 pm
loafbread offline
Posts: 136
Joined: May 25, 2009

Re: Phidgets Plugin

OK, sounds good.

Posted on
Thu Dec 13, 2012 4:27 am
loafbread offline
Posts: 136
Joined: May 25, 2009

Re: Phidgets Plugin

I think we are on the same page but just to make sure.... I hope to connect the 1017 USB board to the SBC. Initially, I plan to use three Digital Inputs from the SBC 8/8/8 and use 7 Digital Output Relays on the 1017 that is connected to the SBC.

Posted on
Fri Dec 14, 2012 2:12 pm
loafbread offline
Posts: 136
Joined: May 25, 2009

Re: Phidgets Plugin

I received my Phidgets and the DI and DO on the SBC 8/8/8 work great with the plugin. As you said the 1017 does not work.

Posted on
Sat Dec 15, 2012 1:22 pm
berkinet offline
User avatar
Posts: 3421
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin

:D I found the bug that prevented creating multiple interfaceKit devices. I am testing the fix now and should have an updated release today.

This fix will allow the 1014 & 1017 relay boards to be supported as standard interfaceKits (0/0/4 & 0/0/8 respectively). This also means that, the relays themselves can be instantiated as regular Indigo relay devices.

Posted on
Sat Dec 15, 2012 1:41 pm
berkinet offline
User avatar
Posts: 3421
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin

A new beta (v0.2.4) for the Phidgets plugin is available on dropbox

This release resolves the bug that prevented the creation on multiple Interface Kit devices.

NOTE: After adding a new standalone Phidget or InterfaceKit you need to reload the plugin.

Posted on
Sat Dec 15, 2012 6:57 pm
loafbread offline
Posts: 136
Joined: May 25, 2009

Re: Phidgets Plugin

Fantastic. It works. Now I can start the wiring. I really appreciate your quick work on this. Great plugin.

Posted on
Tue Dec 25, 2012 9:48 pm
ckeyes888 offline
Posts: 2216
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Phidgets Plugin

Finally getting around to hooking up my 2/2/2 with 1127 light sensor.

Having a hard time finding any instructions on how to get it working.
I seem to have the interface and sensor setup ok but have no idea
how to read or make use of it.

Any help?

Thanks,

Carl

Posted on
Tue Dec 25, 2012 10:12 pm
berkinet offline
User avatar
Posts: 3421
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin

ckeyes888 wrote:
...Having a hard time finding any instructions on how to set it all up.
Any help?

Well, that is mostly because there are no instructions. But, here are some steps that should get you going, or at least on the way.

  1. Download the latest (0.2.4) plugin from dropbox
  2. Install the Phidgets Macintosh software.
  3. In the Phidgets preference panel, turn on the Phidgets Web Service.
  4. Install the plugin (just double-click it)
  5. In the device window create a: Phidgets -> Phidget InterfaceKit
  6. Select your model, 1011 2/2/2, enter the serial number and the IP Address of the machine where the 2/2/2 is connected.
  7. Click the Read ifKit Config button
  8. Click Save
  9. In the device window create a: Phidgets -> Phidget InterfaceKit Sensor
  10. Select the device you just created for the 2/2/2 interface kit
  11. Click Click to Continue
  12. Select your 1127 sensor
  13. Select the port the sensor is connected to (note, port numbers start with 0)
  14. Save the device
  15. Reload the Phidgets plugin.

You may need to re-open the 1127 device and go through the configuration steps again, and then restart the plugin once more.

Once that is all done, you should see the brightness value (0-1000) in the Device window State column.

You can then trigger off that value, use the Action Collection plugin to copyv the value to a variable, or whatever...

Post back if you have problems.

Posted on
Tue Dec 25, 2012 10:45 pm
ckeyes888 offline
Posts: 2216
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Phidgets Plugin

Thanks a bunch for all the info. Seems I had it all about right except for the reloading of the plugin.
When I did that I get this in the log:

Reloading plugin "Phidgets 0.2.1"
Stopping plugin "Phidgets 0.2.1" (pid 21214)
Plugin "Phidgets" disconnected
Starting plugin "Phidgets 0.2.1" (pid 21408)
Plugin "Phidgets" connected
Plugin "Phidgets 0.2.1" started
Phidgets Plugin startup.
Phidgets Error You are running v0.2.1. A newer version, v0.2.4 is available.
Phidgets Error exception in deviceStartComm(Phidgets Interface): invalid literal for int() with base 10: '265632 265632 265632 265632'

Also curious how often the sensor is updated and if there's any control over that?

Thanks,

Carl

Posted on
Tue Dec 25, 2012 10:56 pm
ckeyes888 offline
Posts: 2216
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Phidgets Plugin

I upgraded and reloaded and got this:

Starting plugin "Phidgets 0.2.4" (pid 21447)
Plugin "Phidgets" connected
Plugin "Phidgets 0.2.4" started
Phidgets Plugin startup.
Phidgets Your plugin version, v0.2.4, is current
Phidgets Error exception in deviceStartComm(Phidgets Interface): invalid literal for int() with base 10: '265632 265632 265632 265632'

Still no info showing for the sensor in Indigo but I do see the light value in the Phidgets app when loaded from
the system prefs window.

Thanks,

Carl

Posted on
Wed Dec 26, 2012 12:20 am
berkinet offline
User avatar
Posts: 3421
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin

Two things... In the Phidgets Preference pane you must not use the "General" tab to connect to the Phidgets, use the "Bonjour" tab. If you have the Phidget open in the General tab you will lock the plugin out.

Second. Try re-defining the sensor device and then re-load the plugin.

Let me know how that goes.

Posted on
Wed Dec 26, 2012 12:40 am
ckeyes888 offline
Posts: 2216
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Phidgets Plugin

Not sure what you mean by using the Bonjour tab.

I assume the IP address I use to configure the interface is the machine it's running on?

Do I need to have anything filled out in the Web service tab?

Thanks,

Carl

Posted on
Wed Dec 26, 2012 1:02 am
berkinet offline
User avatar
Posts: 3421
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin

Nothing. Don't set a password. For the local machine you can use the address 127.0.0.1 in the plugin.

Who is online

Users browsing this forum: No registered users and 1 guest