1067 Quick Start Guide: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
[[Category:UserGuide]]
[[Category:UserGuide]]
==Part 1: Setup==
==Part 1: Setup==
<tabber>
<div class="phd-deck-sequence">
Windows=
{{PT1_1067_CHOOSE}}
Before you begin using your Phidgets, you will need to install the Phidget Library.
{{PT1_1067_WIN}}{{PT1_1067_MAC}}{{PT1_1067_LNX}}
</div>


1. Download the installer for your system:
* [https://www.phidgets.com/downloads/phidget22/libraries/windows/Phidget22-x86.exe 32-bit Installer Download]
* [https://www.phidgets.com/downloads/phidget22/libraries/windows/Phidget22-x64.exe 64-bit Installer Download]
If you're unsure which one you should get, press <kbd>⊞ WIN</kbd> + Pause/Break:
Before installing our libraries, be sure to read our [https://www.phidgets.com/docs/Software_License Software License]
2. Open the download. If it asks you for permission, select '''Run''' and '''Next'''
3. Read the Licence Agreement and click '''Next'''. Choose the Installation Location and click '''Next'''.
Wait for Installation to complete. This should only take a few moments.
|-|
MacOS=
Before you begin using your Phidgets, you will need to install the Phidget Library.
* macOS 10.11+: [https://www.phidgets.com/downloads/phidget22/libraries/macos/Phidget22.dmg Installer Download]
* macOS 10.7 - macOS 10.10:[https://www.phidgets.com/downloads/phidget22/libraries/macos/Phidget22_OS_X_10_7.dmg Installer Download]
* macOS 10.5 - macOS 10.6:[https://www.phidgets.com/downloads/phidget22/libraries/macos/Phidget22_OS_X_10_5.dmg Installer Download]
Before installing our libraries, be sure to read our [https://www.phidgets.com/docs/Software_License Software License]
Open the download and double click on '''Phidgets.pkg'''
Select '''Continue''' and Read the License and click '''Agree'''. Select the installation locationand click '''Install''' to continue. MacOS may ask for permission to install. Enter your username and password and '''Install Software'''.
You may see a message that the extension has been blocked. Select '''Open Security Preferences'''. Beside the message for Phidgets Inc, Click '''Allow'''. The installation is now complete.
|-|
Linux=
First, you need to install the libusb-1.0 development libraries. For example, in Debian based distributions:
<syntaxhighlight lang=bash>apt-get install libusb-1.0-0-dev</syntaxhighlight>
You’ll also need a C compiler and builder, if you don’t already have one installed.
<syntaxhighlight lang=bash>apt-get install gcc</syntaxhighlight>
<syntaxhighlight lang=bash>apt-get install make</syntaxhighlight>
Next, download and unpack the Phidgets library:
* [https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22.tar.gz libphidget22]
Use the following commands in the location you unpacked to install the library:
<syntaxhighlight lang=bash>
./configure
make
sudo make install
</syntaxhighlight>
(Optional) You can also download and unpack the following optional packages:
* [https://www.phidgets.com/downloads/phidget22/servers/linux/phidget22networkserver.tar.gz phidget22networkserver] - Phidget Network Server, which
enables the use of Phidgets over your network
* [https://www.phidgets.com/downloads/phidget22/tools/linux/phidget22admin.tar.gz phidget22admin] - Admin tool to track who is connected to your
Phidgets when using the network server
* [https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22extra.tar.gz libphidget22extra] - Required for phidget22networkserver
and phidget22admin
* [https://www.phidgets.com/downloads/phidget22/libraries/linux/libphidget22java.tar.gz libphidget22java] - The Java libraries for Phidget22
For installation instructions for these packages, see the README file included with each one.
</tabber>
==Part 2: Using Your Phidget==
==Part 2: Using Your Phidget==


Line 85: Line 20:
| '''Power Supply''' || An external power supply is required for this device (10-30VDC).
| '''Power Supply''' || An external power supply is required for this device (10-30VDC).
|-
|-
| '''Stepper Motor''' || Connect a Stepper motor to these inputs. The typical wiring convention pairs blue with red and green with black, and swapping one of the pairs will reverse the default rotation direction.
| '''Stepper Motor''' || Connect a bipolar stepper motor to these inputs.
|-
|-
| ||
| ||
Line 98: Line 33:
{{UGC-Start}}
{{UGC-Start}}


{{UGC-Entry|Bipolar Stepper Controller HC: |Control the stepper position and other motor properties
{{UGC-Entry|Bipolar Stepper Controller HC ||
|
[[Image:1067-Stepper2.jpg|thumb|500px|link=https://cdn.phidgets.com/docs/images/a/a9/1067-Stepper2.jpg|<center>''Stepper Controller application - Phidget Control Panel (Windows)''</center>]]
[[Image:1067-Stepper2.jpg|thumb|500px|link=|<center>''Stepper Controller application - Phidget Control Panel (Windows)''</center>]]
* This channel allows you to control motor position, speed, current, and more.
* This channel allows you to control motor position, speed, current, and more.
* View the [[Stepper API Guide]] for detailed information.
* View the [[Stepper API Guide]] for detailed information.
Line 143: Line 77:
You can wire an 8-wire stepper in series or parallel. Series wiring will result in higher torque when the motor is stopped or at low speeds. Parallel wiring will provide better torque at higher speeds, but less torque overall. Since the current in parallel mode is split between two paths, the current rating is doubled.
You can wire an 8-wire stepper in series or parallel. Series wiring will result in higher torque when the motor is stopped or at low speeds. Parallel wiring will provide better torque at higher speeds, but less torque overall. Since the current in parallel mode is split between two paths, the current rating is doubled.
}}
}}
{{UGC-Addressing}}
{{UGC-Firmware}}
{{UGC-Firmware}}
{{UGC-Entry|Rescale Factor|
|
{{#ev:youtube|NngB-OR7Ga8|||||rel=0}}
}}
{{UGC-Entry|Setting Current Limit||
The 1067 allows the current applied to the motor to be programmatically set.  This is important - if the current limit is set too high, the motor’s internal resistance will cause the sine-wave approximations used to implement microstepping to clip at the maximum current possible, given your motor/supply voltage.  This clipping will cause rough operation, or prevent the motor from turning. If the limit is set too low, the motor may not be able to handle it’s load, by missing steps, or not turning at all at high accelerations.
[[File:1063_1_Current_Limiting.jpg|600px|link=]]
For more information about setting the current limit, check the [[Stepper Motor and Controller Guide#Controlling the Stepper Motor|Stepper Motor Guide]].
}}
{{UGC-Entry|High Precision Applications||
Stepper motor precision is limited by the manufacturing process used to build them.  Errors in the rotor and coils will cause some degree of inaccuracy.  In our experience, inexpensive stepper motors will often have positioning errors approaching a half-step. Gearing a stepper motor down with a gearbox will reduce this error proportional to the reduction ratio of the gearbox.
}}
{{UGC-End}}
{{UGC-End}}

Latest revision as of 21:18, 14 March 2025


Part 1: Setup

PhidgetStepper Bipolar HC - Select OS

PhidgetStepper Bipolar HC

Welcome to the PhidgetStepper Bipolar HC quick start guide. To get started, make sure you have the following hardware on hand:

  • PhidgetStepper Bipolar HC
  • USB cable and computer
  • Bipolar stepper motor

Select your Operating System:

«
»

PhidgetStepper Bipolar HC - Windows

Step 1: Install Phidgets Library

Step 2: Connect Devices

Step 3: Verify Connection

Step 1: Install Phidgets Library

Before you begin using your Phidgets, you will need to install the Phidget Library.

1. Download the installer for your system:

● 32-bit Installer Download

● 64-bit Installer Download

If you're unsure which one you should get, press ⊞ WIN + Pause/Break:

Before installing our libraries, be sure to read our Software License.

Step 1: Install Phidgets Library

2. Open the download. If it asks you for permission, select Run

Step 1: Install Phidgets Library

3a. Select Next

Step 1: Install Phidgets Library

3b. Read the Licence Agreement. Select Next.

Step 1: Install Phidgets Library

3c. Choose Installation Location. Select Next.

Step 1: Install Phidgets Library

3d. Confirm Install

Step 1: Install Phidgets Library

3e. Wait for Installation to complete. This should only take a few moments.

Step 1: Install Phidgets Library

3f. Installation Complete. Close installation Window.

Step 2: Connect Devices

● Connect USB Cable to your computer and PhidgetStepper

● Connect the Stepper Motor to the green terminal block

● Connect the Power Supply to the power terminal or barrel jack

Step 3: Verify Connection

1. Open the Phidgets Control Panel:

If your Control Panel does not open, look in your taskbar. Double click the Phidget Icon.

Step 3: Verify Connection

2. If connected, your Phidgets will appear in the Phidget Control Panel.

Done!

If you're able to see and interact with your devices in the Phidget Control Panel, you're done with the Setup part of this guide.

Scroll down to Part 2: Using Your Phidget for the next step.


For more help installing in Windows (e.g. manual install, using a VM, etc.), visit this page:

Windows Advanced Information

«
»

PhidgetStepper Bipolar HC - MacOS

Step 1: Install Phidgets Library

Step 2: Connect Devices

Step 3: Verify Connection

Step 1: Install Phidgets Library

Before you begin using your Phidgets, you will need to install the Phidget Library.

1. Download the installer for your system:

● macOS 10.11+: Installer Download

● macOS 10.7 - macOS 10.10: Installer Download

● macOS 10.5 - macOS 10.6: Installer Download


Before installing our libraries, be sure to read our Software License.

Step 1: Install Phidgets Library

2. Open the download and double click on Phidgets.pkg

Step 1: Install Phidgets Library

3a. Select Continue

Step 1: Install Phidgets Library

3b. Read and continue. Read the License and click Agree.

Step 1: Install Phidgets Library

3c. Here, you have the option to select the installation location. Select Install to continue.

Step 1: Install Phidgets Library

3d. MacOS may ask for permission to install. Enter your username and password and Install Software.

Step 1: Install Phidgets Library

3e. Wait for Installation to complete. This should only take a few moments.

Step 1: Install Phidgets Library

3f. You may see a message that the extension has been blocked. Select Open Security Preferences.

Step 1: Install Phidgets Library

3g. Beside the message for Phidgets Inc, Click Allow.

Step 1: Install Phidgets Library

3h. Installation Complete, Click Close.

Step 1: Install Phidgets Library

3i. To delete the installer, click Move to Trash.

Step 2: Connect Devices

● Connect USB Cable to your computer and PhidgetStepper

● Connect the Stepper Motor to the green terminal block

● Connect the Power Supply to the power terminal or barrel jack

Step 3: Verify Connection

Open the Phidgets Control Panel:

If connected, your Phidgets will appear in the Phidget Control Panel.

Done!

If you're able to see and interact with your devices in the Phidget Control Panel, you're done with the Setup part of this guide.

Scroll down to Part 2: Using Your Phidget for the next step.


For more info installing in MacOS (e.g. developer tools, driver extension, etc.), visit this page:

MacOS Advanced Information

«
»

PhidgetStepper Bipolar HC - Linux

Step 1: Install Phidgets Library

Step 2: Connect Devices

Step 3: Verify Connection

Step 1: Install Phidgets Library

1. First, you need to install the libusb-1.0 development libraries. For example, in Debian based distributions:

apt-get install libusb-1.0-0-dev


You’ll also need a C compiler and builder, if you don’t already have one installed.

apt-get install gcc
apt-get install make

Step 1: Install Phidgets Library

2. Next, download and unpack the Phidgets library:

libphidget22

Step 1: Install Phidgets Library

3. Use the following commands in the location you unpacked to install the library:

./configure
make
sudo make install

Step 1: Install Phidgets Library

4. (Optional) You can also download and unpack the following optional packages:

phidget22networkserver - Phidget Network Server, which enables the use of Phidgets over your network

phidget22admin - Admin tool to track who is connected to your Phidgets when using the network server

libphidget22extra - Required for phidget22networkserver and phidget22admin

libphidget22java - The Java libraries for Phidget22


For installation instructions for these packages, see the README file included with each one.

Step 2: Connect Devices

● Connect USB Cable to your computer and PhidgetStepper

● Connect the Stepper Motor to the green terminal block

● Connect the Power Supply to the power terminal or barrel jack

Step 3: Verify Connection

1. The easiest way to verify that your libraries are working properly is to compile and run an example program. Download and unpack this C example that will detect any Phidget:

HelloWorld C Example

Step 3: Verify Connection

2. Next, open the terminal in the location where you unpacked the example. Compile and run using:

gcc HelloWorld.c -o HelloWorld -lphidget22
sudo ./HelloWorld

ou should receive a “Hello” line for each Phidget channel that is discovered:

I don’t see any Phidgets show up in the HelloWorld example

You need to run it with sudo in order to be able to access USB devices. In order to use Phidgets without sudo, you need to set your udev rules. See the Advanced Information page on the final slide of this guide for details.

Done!

If you're able to see your devices in the Hello World example, you're done with the Setup part of this guide.

Scroll down to Part 2: Using Your Phidget for the next step.


For more info installing in Linux (e.g. Udev rules, old versions, etc.), visit this page:

Linux Advanced Information

«
»

Part 2: Using Your Phidget

Connections Overview

1067 1 Pinout.jpg

USB This device connects directly to your computer, laptop or single-board computer.
Power Supply An external power supply is required for this device (10-30VDC).
Stepper Motor Connect a bipolar stepper motor to these inputs.

Phidget Control Panel

Use the Phidget Control Panel to explore your device's functionality. Each channel is described below.

1067 Panel.jpg
Expand All
Bipolar Stepper Controller HC
Stepper Controller application - Phidget Control Panel (Windows)
  • This channel allows you to control motor position, speed, current, and more.
  • View the Stepper API Guide for detailed information.

Part 3: Create your Program

Part 4: Other Considerations

Expand All
Connecting a 4-Wire Motor
1063 1 Motor Types 4wire.jpg

For the motors sold at Phidgets, you can simply wire the motor as follows:

  • A - Blue
  • B - Red
  • C - Black
  • D - Green

If your motor has an unknown pinout, you can find out which wires share a coil by using a multimeter in resistance or conductivity mode.

If you want the default direction of rotation to be reversed, switch either the A and B or the C and D wires.

Connecting a 6-Wire Motor
1062 1 Motor Types 6wire.jpg

In a 6–wire bipolar motor, there are two + wires, one for each coil, which are the center taps for each coil. You will need to isolate which are the center tap wires and the corresponding wires for their coil.

These center taps are left unconnected when using the 1067. Check the datasheet for your motor to find out which wires are the center taps and connect the remaining wires as if it were a 4-wire motor.

If you don't know the pinout of your motor, you can use a multimeter to determine which wires belong to the same coil and which ones are the center taps. Use conductivity mode to determine which wires are connected to the same coil. Then, use resistance mode to check the values between each of the wires in the same coil. The center tap is the wire that has a lower resistance between the other wires.


Connecting an 8-Wire Motor
1062 1 Motor Types 8wire.jpg
Series Wiring
Parallel Wiring

Check the datasheet for your motor to determine which wires belong the the same coil, and which coils are paired.

8 Wire Motors are very difficult to wire up if you do not have a schematic showing how the wires are connected to the internal coils. You can use a multimeter to determine which wires pair to the same coil, but you'll need to run the motor trial-and-error to determine which coil pairs with the other.

You can wire an 8-wire stepper in series or parallel. Series wiring will result in higher torque when the motor is stopped or at low speeds. Parallel wiring will provide better torque at higher speeds, but less torque overall. Since the current in parallel mode is split between two paths, the current rating is doubled.

Upgrading or Downgrading Device Firmware

Firmware Upgrade

MacOS users can upgrade device firmware by double-clicking the device row in the Phidget Control Panel.

Linux users can upgrade via the phidget22admin tool (see included readme for instructions).

Windows users can upgrade the firmware for this device using the Phidget Control Panel as shown below.

ControlpanelFWup.jpg

Firmware Downgrade

Firmware upgrades include important bug fixes and performance improvements, but there are some situations where you may want to revert to an old version of the firmware (for instance, when an application you're using is compiled using an older version of phidget22 that doesn't recognize the new firmware).

MacOS and Linux users can downgrade using the phidget22admin tool in the terminal (see included readme for instructions).

Windows users can downgrade directly from the Phidget Control Panel if they have driver version 1.9.20220112 or newer:

ControlpanelFWdown.jpg

Firmware Version Numbering Schema

Phidgets device firmware is represented by a 3-digit number. For firmware patch notes, see the device history section on the Specifications tab on your device's product page.

FWversion.jpg

  • If the digit in the 'ones' spot changes, it means there have been bug fixes or optimizations. Sometimes these changes can drastically improve the performance of the device, so you should still upgrade whenever possible. These upgrades are backwards compatible, meaning you can still use this Phidget on a computer that has Phidget22 drivers from before this firmware upgrade was released.
  • If the digit in the 'tens' spot changes, it means some features were added (e.g. new API commands or events). These upgrades are also backwards compatible, in the sense that computers running old Phidget22 drivers will still be able to use the device, but they will not be able to use any of the new features this version added.
  • If the digit in the 'hundreds' spot changes, it means a major change has occurred (e.g. a complete rewrite of the firmware or moving to a new architecture). These changes are not backwards compatible, so if you try to use the upgraded board on a computer with old Phidget22 drivers, it will show up as unsupported in the Control Panel and any applications build using the old libraries won't recognize it either. Sometimes, when a Phidget has a new hardware revision (e.g. 1018_2 -> 1018_3), the firmware version's hundreds digit will change because entirely new firmware was needed (usually because a change in the processor). In this case, older hardware revisions won't be able to be upgraded to the higher version number and instead continue to get bug fixes within the same major revision.