Reference
Components
Phidgets Motor Control
Description
This primitive allows you to interface to the two Phidgets Motor Control boards (both 2 motor HC and 4 motor LC).
Once you have the board connected to your PC you need to start the component by sending a trigger to the first input. The 'On' output will
return True if a connection has been established (False otherwise).
If you have multiple boards connected to your PC then you should provide the unique serial number of the board you want to connect to at
the 'Conn' (connection string) input. If you want to connect to a device on a remote server provide the device serial, IP and port or server
name and also a password if necessary separated by commas. Use -1 as the serial if you want to connect to the first device found.
Example connection strings:
“196491” or “635824,myserver” or “-1,myserver,password” or “142567,192.168.1.1,800,password”
Specify the index of the motor you want to control using the Motor input. This should be a value from 0 to 1 if using the two motor board and
0-3 for the 4 motor.
You can set the velocity and acceleration for the motor using the Vel and Accel inputs.
Current velocity is given at the Vel output as well as minimum and maximum acceleration capabilities.
You can set the braking from zero to 100% and switch back EMF sensing on or off. If the motor you're using has an encoder then you can
set this using the Encoder input.
If the board has digital inputs then the status of these is reflected by the four boolean outputs labeled 0-3.
If the board has analog inputs then the status of these is reflected by the two integer outputs labeled A0 and A1.
Encoder and back EMF values can also be read if applicable.
317 of 494