Search Results

by drumminhands
Wed Apr 16, 2025 11:07 am
Forum: InterfaceKits
Topic: PhidgetInterfaceKit 0/16/16 and Unity
Replies: 3
Views: 3384

Re: PhidgetInterfaceKit 0/16/16 and Unity

It looks like Unity 6000.0.43f1 does not play nice with phidgets.dll. Either .Close(), Phidget.ResetLibrary(), or Phidget.FinalizeLibrary(0) is not properly closing out when the application quits, resulting in all the errors when trying to launch again. I rebuilt in Unity 2021.3.25f1 and it works ju...
by drumminhands
Tue Apr 15, 2025 10:36 am
Forum: InterfaceKits
Topic: PhidgetInterfaceKit 0/16/16 and Unity
Replies: 3
Views: 3384

Re: PhidgetInterfaceKit 0/16/16 and Unity

A followup. I can get this to work great on a Mac, but can't get it to work on a Windows machine. I always get an error when loading the scene "open failed because device is in use. Check that the Phidget is not already open in another program, such as the Phidget Control Panel, or another prog...
by drumminhands
Fri Apr 11, 2025 1:24 pm
Forum: InterfaceKits
Topic: PhidgetInterfaceKit 0/16/16 and Unity
Replies: 3
Views: 3384

Re: PhidgetInterfaceKit 0/16/16 and Unity

I think I had the wrong version of the .net dll. And this works. For all those future folks looking at this post--enjoy. using UnityEngine; using Phidget22; using System.Collections; // https://www.phidgets.com/education/learn/projects/unity/buttons/ // https://www.phidgets.com/?prodid=1226#Tab_Code...
by drumminhands
Fri Apr 11, 2025 9:55 am
Forum: InterfaceKits
Topic: PhidgetInterfaceKit 0/16/16 and Unity
Replies: 3
Views: 3384

PhidgetInterfaceKit 0/16/16 and Unity

I'm trying to get the Interface Kit to be controlled by Unity. Right now I have a series of arcade buttons wired up. Input 0 properly triggers and output 0 properly lights an LED in the Phidgets Control Panel. Same for all the other outputs (12 total buttons). I'm using the 5v power from the input c...
by drumminhands
Thu Aug 10, 2023 9:30 pm
Forum: All Other Phidgets
Topic: On Shake event for Accelerometer or Gyroscope
Replies: 0
Views: 199335

On Shake event for Accelerometer or Gyroscope

I'm using the MOT0110_0 PhidgetSpatial Precision 3/3/3. I already have code working to use the spatial to change a game object's orientation in Unity. But I want to trigger something if the sensor is in a state of constant shaking. I could use either the accelerometer or gyroscope. Any advice to get...
by drumminhands
Thu May 18, 2023 2:47 pm
Forum: C#
Topic: Unity Code Samples for PhidgetSpatial Precision 3/3/3
Replies: 1
Views: 65059

Re: Unity Code Samples for PhidgetSpatial Precision 3/3/3

So I got some results but need some help. I followed the accelerometer tutorials and am trying to convert it to a Spatial sensor. My goal is to have a ball on screen in Unity, and use the spatial sensor to move the position of the ball relative to the sensor. Imagine mounting the sensor on a stick, ...
by drumminhands
Wed May 17, 2023 2:57 pm
Forum: C#
Topic: Unity Code Samples for PhidgetSpatial Precision 3/3/3
Replies: 1
Views: 65059

Unity Code Samples for PhidgetSpatial Precision 3/3/3

Are there available code samples for use in Unity for the PhidgetSpatial Precision 3/3/3? ID: MOT0110_0

https://www.phidgets.com/?&prodid=1205

With other sensors I'm able to download Unity specific code samples. Will this sensor work with Unity and C#?

Thanks.