PhidgetBoard with Raspberry Pi and Tripwire

I very luckily got landed with a:

I wired the Tripwire sensor to the Phidget board as described in the wiring diagram and as shown in the video:


I connected the USB cable from the Phidgets Board to the USB port on a Raspberry Pi 3 and proceeded to compile the Phidget libraries on the Pi (info):

Compile Phidget LibrariesI then tested some C code examples:

That successfully showed the Phidgets Board serial number so I moved on to the Python libraries:

Selection_002

With the python libraries installed I downloaded and tested a sample Python script:

Selection_001Next I ran:

Selection_004This showed details of the Phidget Board including sensors connected to the Input/Output pins. When I activated and tripped the tripwire I could see the True/False outputs as follows:

Selection_003Next I amended the InterfaceKit-simple.py script to print out a message when the sensor was tripped and to play a sound file. This could obviously be improved but is a starting point for what we are aiming to do.

 

 

 

 

 

 

 

 

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">