After some issues with the firmware release v3.0 I had to do some major rework on the serial communications for the AMC1280USB new firmware. This rework also included changes in the motion software side. The new v3.5 firmware changes, now prevent non motion data packets to enter the AMC entirely and it uses a combination of counting and checks for presence of LF/CR bytes in the end to prevent wrong ID detection.
The data packet string now is 20 bytes long and includes additional spare motion data slots for up to 8axis ( applicable to newer Servomotor controllers variations only ).
The ID is byte values 0xFF + 0xFF
Each Axis is 16bit wide.
LF+CR is required in the end (0x0A + 0x0D)
ID AXIS1 AXIS2 AXIS3 AXIS4 AXIS5 AXIS6 AXIS7 AXIS8 LF/CR
There was already verification from many beta testers verifying the stability of the new firmware, but as always, if there is anything that was missed, let me know to fix asap.
Here are some instructions for the software fixes:
1. Ian's BFF 6DOF:
Copy the "BFF_6DOF_Background_v102.exe" into the BFF motion driver folder
and remove the existing "BFF_6DOF_Background_v100.exe"
Make sure to enter these settings in the ".bff" profile file you use:
Port=COM7 (or any other COM port number your AMC has, MUST be COM1 to COM9)
Baud=250000
Mode=BIN2TH
2. Simtools:
Simply drag and drop the "AMC1280USB_InterfacePlugin.dll" into the Simtools PluginUpdater
Start Simtools, you should see 8axis available now for the AMC1280USB interface plugin.
3. Hexpod Driver:
Copy and paste over the "6DOF.exe" into the Hexpod driver directory.
Drag and drop the "AMCHexpod_InterfacePlugin.dll" into the Simtools PluginUpdater.
Start Simtools, you should see the Axis7 and Axis8 to also appear in the interface page.
We all dream of using those powerful industrial linear servomotors we keep seeing around being used on 6dof motion platforms. Their prices are dropping and are getting more and more wide available. But they can be hard to use as they do not provide any easy way of reading the position feedback from them...
Some of the solutions the past years for adding position sensors to the control loop needed for the AMC1280USB included Linear Potentiometers or String potentiometers. The linear potentiometers a great stable solution that can be placed in parallel to the actuator but may cost too much at times with prices range from $90 to $300 depending on the length they can extent! The String Potentiometers on the other hand, although are in the same cost range as the linear ones, you can easily make your own using inexpensive 10-turn or 5-turn potentiometers and 3dprint your own case for it.
After many requests I indulged to create my own solution of reading instead the actual servomotor encoder signals (quadrature pulses) and convert them to normal analog 0-5v position signal that the AMC1280USB can read easily. The culprit is that Encoder2Position it needs more than just reading the quadradure signals as they only provide reference information. It needs to know the limits of the actuator to now where is the low position of the rod (fully retracted) and the high position of the rod (fully extended) to be able to assign correctly the 0-5v output to the full stroke of the actuator. This is done using magnetic reed switches attached on the actuator cylinder that inform the Encoder2Position module that the actuator reached low or high position and it can set these readings of the quadrature signal counter to 0% or 100%. Some automatic calibration is also needed during power up so the Encoder2Position can get familial with the actuator that is attached to. This allows the use of the Encoder2Position module to any length of actuator or type of encoder that the servomotor may have (from 32 CPR to 2500CPR).
After a few iterations of the Encoder2position module board, I made some tests on actual linear servomotor set that was lent to me by a customer.
That unit included brake function which I didn't activate properly on my first videos so excuse any loud screeching noises you may hear... In the first two videos I do some manual movement of actuator, to observe the counter values of the quadrature encoder of the servomotor, displayed on a small OLED attached on the Encoder2Position.
Manual testing at 25% speed
PID loop motion testing at 75% speed
More servomotor testing... wiring fixed and all functions enabled
Fast acceleration setting for servomotor - 20ms to full speed
How well it works when connected to motion software? See this video:
Test on motion software
~
Setting up the Servo drive was easy, only a few parameters needed to be adjusted in its operation panel. One setting that enables external commands on the CN2 connector, one to set the servo in analog input speed mode, one setting to enable the external CWL and CCWL limit inputs, and last set the acceleration ramp up/down timing to 20ms (can be lower but 20ms gives a good space for safe braking). Extra settings I'll be using is the automatic enable of the external electromagnetic brake when the motor is in zero speed to hold position without the load back-driving it down.
Simplified representation of the position control loop
The wiring before the CN2 connector however might look a little intimidating, but its not so bad. The AMC1280USB provides only 3 outputs, Analog speed control (-11v to +11v using the Signal Conditioner), Sink output Servo Enable signal and Zero Speed signal to completely stop the motors when the "Kill motors" emergency switch is pressed.
This is a different servo example that uses C-mode to select analog input
Generic schematic of connections between servomotor and the AMC1280USB controller
The Encoder2Position module however has lots of connection to the CN2 connector like the four connections to the Differential Encoder Outputs and two more Sink outputs that connect to the CWL and CCWL (Forward or Backward rotation prohibited inputs of the CN2). Also the Encoder2Position encoder is interfaced to the two magnetic reed limit switches that needed for the automatic calibration of the actuator during power up. The sink inputs are reversed logic that means they need to be HIGH to detect that the limit switch was activated.
Simplified schematic of the Encoder2Position inputs-outputs
The R1 potentiometer checks and sets the calibration speed once on power up.
The Encoder2Position module features a STM32 F1 processor running at 72Mhz, allowing capture of the fast quadrature encoder pulses, and handles automatically the limit switches of the actuator so you don't have to worry for much except just use the 12-bit analog position signal it outputs (0-5v). On the current linear servomotor I have it measures about 30000 positions for the 200mm stroke, and with the actuator having 500mm/s speed, it means it can capture about 60000 pulses in 500ms time with no problem,
The Encoder2Position module will be available soon on Tindie as soon I finalize the firmware on the test unit. Working on getting the 12-bit (or 16bit) SSI output faster without blocking the quadrature encoder counter interrupts.
You could also contact me by email, although you may have to wait sometimes for days for reply (depending on my spare time and the backlog of messages). If you keep it short to one or two questions I might be able to answer right away: