1018 User Guide: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
Line 65: Line 65:
{{UGC-End}}
{{UGC-End}}


==Technical Details==
{{UG-Part3}}


If you want to know more about the input/output capabilities of the 1018 InterfaceKit, check the [[Digital Input Primer]], [[InterfaceKit Digital Outputs]] page, and the [[Analog Input Primer]].
== Part 4: Advanced Topics and Troubleshooting ==
{{UGC-Start}}
{{UGC-Addressing}}
{{UGC-Graphing}}
{{UGC-DataInterval}}
{{UGC-Entry|Analog Inputs||
If you want to know more about the capabilities of the analog inputs on this device, check the [[Analog Input Primer]].
}}
{{UGC-Entry|Digital Inputs||
If you want to know more about the capabilities of the digital inputs on this device, check the [[Digital Input Primer]].
}}
{{UGC-Entry|Digital Outputs||
If you want to know more about the capabilities of the digital outputs on this device, check the [[InterfaceKit Digital Outputs]].
}}


{{UGnext|}}
{{UGC-End}}

Revision as of 18:15, 10 March 2021


Getting Started

Welcome to the 1018 user guide! In order to get started, make sure you have the following hardware on hand:


Next, you will need to connect the pieces:

1018 2 Connecting The Hardware.jpg
  1. Connect any sensors to the voltage inputs on the 1018.
  2. Connect the 1018 InterfaceKit to the computer using a USB cable.
  3. Connect a switch or a piece of wire connecting ground to one of the digital input terminals.
  4. Connect an LED to one of the Digital Outputs by inserting the long LED wire into the digital output 0 and the shorter wire into Ground.


Now that you have everything together, let's start using the 1018!

Part 2: Using Your Phidget

About

The 1018 PhidgetInterfaceKit 8/8/8 has:

  • 8 Digital Inputs for reading switches or logic-level sensors
  • 8 Digital Outputs for LEDs or simple logic-level output
  • 8 Analog Inputs for reading 0-5V sensors

Each analog port can be opened as a VoltageInput or a VoltageRatioInput object, depending on what kind of sensor you're connecting to.

Explore Your Phidget Channels Using The Control Panel

You can use your Control Panel to explore your Phidget's channels.

1. Open your Control Panel, and you will find the following channels:

1018 Panel.jpg

2. Double click on a channel to open an example program. Each channel belongs to the Digital Input, Digital Output, Voltage Input or Voltage Ratio Input channel class:

Expand All
Digital Input: Read the state of a switch

In your Control Panel, double click on "Digital Input":

1018-DigitalInput.jpg
Digital Output: Control LEDs, relays, digital circuits, and other simple electronics

In your Control Panel, double click on "Digital Output":

1018-DigitalOutput.jpg
Voltage Input: Non-ratiometric Analog sensors and monitoring 5V digital circuits

In your Control Panel, double click on "Voltage Input":

1018-VoltageInput.jpg
Voltage Ratio Input: Analog ratiometric sensors

In your Control Panel, double click on "Voltage Ratio Input":

1018-VoltageRatioInput.jpg

Part 3: Create your Program

1. Setting up your Programming Environment

2. Phidget Programming Basics

Part 4: Advanced Topics and Troubleshooting

Expand All
How do I know what channel, serial number, or hub port to use in my program?

Before you open a Phidget channel in your program, you can set these properties to specify which channel to open. You can find this information through the Control Panel.

1. Open the Control Panel and double-click on the red map pin icon:

The locate Phidget button is found in the device information box

2. The Addressing Information window will open. Here you will find all the information you need to address your Phidget in your program.

All the information you need to address your Phidget


See the Phidget22 API for your language to determine exact syntax for each property.

How can I plot or record sensor data?

Note: Graphing and logging is currently only supported in the Windows version of the Phidget Control Panel.

In the Phidget Control Panel, open the channel for your device and click on the Plot.jpg icon next to the data type that you want to plot. This will open up a new window:

Plot2.jpg

If you need more complex functionality such as logging multiple sensors to the same sheet or performing calculations on the data, you'll need to write your own program. Generally this will involve addressing the correct channel, opening it, and then creating an Event Handler and adding graphing/logging code to it.

The quickest way to get started is to download some sample code for your desired programming language and then search google for logging or plotting in that language (e.g. "how to log to csv in python") and add the code to the existing change handler.

Filtering

You can perform filtering on the raw data in order to reduce noise in your graph. For more information, see the Control Panel Graphing page.

Graph Type

You can perform a transform on the incoming data to get different graph types that may provide insights into your sensor data. For more information on how to use these graph types, see the Control Panel Graphing page.

Setting the Change Trigger and Data Interval

The Change Trigger is the minimum change in the sensor data needed to trigger a new data event.

The Data Interval is the time (in ms) between data events sent out from your Phidget.

The Data Rate is the reciprocal of Data Interval (measured in Hz), and setting it will set the reciprocal value for Data Interval and vice-versa.

You can modify one or both of these values to achieve different data outputs. You can learn more about these properties here.

Analog Inputs

If you want to know more about the capabilities of the analog inputs on this device, check the Analog Input Primer.

Digital Inputs

If you want to know more about the capabilities of the digital inputs on this device, check the Digital Input Primer.

Digital Outputs

If you want to know more about the capabilities of the digital outputs on this device, check the InterfaceKit Digital Outputs.