
Produkt-gesamt-300x191.jpg (17.46 KiB) Viewed 41483 times

215622703_jrktowiperwireupfixed_122_120lo.JPG (59.12 KiB) Viewed 41475 times
Hello together,
I did noticed that the usage of the Pololu JRK 12v12 and 21v3 interfaces, with the help of the USO, is not correct. This means there are two points that are not fitting, the first one is the devider by 2 of the 32bit output value and the second one is the half output of the whole value by not changing the $DD (221) first value which includes the lowest resolution values of the 32bit output value.
The JRK can handle
0 to 4095 (=12bit) position datas, the current USO values are limited to
0 to 127 (=7bit).
This means a very low resolution of about 128:4096 =
1/32 of the positions that a pololu can reach.
If you think 127 positions are much then remember: it is for totally left to totally right what leads to 64 position for one direction.
Of course, the USO is a first step solution and it is a little bit difficult to setup the complex pololu serial output with USO.
I have written a first version of an pololu plugin for the interface section. Only the interface section is the PnP way of X-Sim. There the boards will be automatically detected and disconnects are handled with a security stop of the whole simulator.
JRK 12v12 and 21v3 are the same board and are combined in this plugin.
Download:
After you have extracted the plugin into the x-sim sub-directory "/Interfacesplugins" you
have to remove your old pololu USO setup and have a look into the interface section.

dialog2.jpg (344.6 KiB) Viewed 41569 times
If you double click the pololujrk Entry on the right side you will get the rename dialog.

dialog1.jpg (80.55 KiB) Viewed 41569 times
With this dialog you can rename your difficult "JRK on Comport name" to a actuator name. To make it easy for other members you should choose the names out of the drop down box. To enable the rename function you have to set the checkbox, enter or select with the dropdown a name and press the set button. With the pololu button you open the original pololu tool which can run at the same time as x-sim do. But remember: the polling of the tool will slowdown your jrk while the pololu plugin is open.
Setup the direct output:

dialog3.jpg (382.07 KiB) Viewed 41569 times
Enter for each axis a fitting actuator in the synaptrix output like for the SCN5 actuators.
For the repeat speed of your new values you have to setup the artificial break in the program setup of the synaptrix like this:

dialog4.jpg (444.18 KiB) Viewed 41566 times
The math thread can run faster with 1ms artificial break to insure a nearly realtime result that is sended to the output.
The PID period count of the JRK's is about 100 calculations per second (look into the Pololu tool) and it seems to be independend to the serial output speed. This means synaptrix delay values below a artificial break of 10ms (=100 times a second) is not helpfully. Compared to a AMC the pololu is very slow in changing the new target. This means not as good for vibration simulation than the AMC.You have to setup the PID count in your JRK's Configuration Tool fitting to your send speed. A artificial break of the synaptrix (Program setup) with 10ms means you need at least a PID count (display:JRK tool upper middle area, setup: in the Jrk Software under the PID tab) that increases 100 PID cycles a second because you will send all 10ms a new value which are 100 values per second for the JRK PID calculator. A artificial time of 5ms leads to double the PID count to 200 pid calculations per second.
The Center option will insure a middle position on any simulator stop (i.e. Start-Stop Button).
You will get with this plugin a high resolution output of 0 to 4095. The type of PnP setup is like for the SCN5 actuators. If your feedback pot does jitter you will also have a problem to reach the new high resolution. You can watch the pot feedback jitter in the pololu tool, it must be nearly static. To reach this you need to have short pot cables and for the best solution the pololu directly near the pot. Then the 5V of USB must be jitterfree. To reach this you have to insure the mass contact of your motor is not the same as for the GND line of USB and a HUB with a additional powersupply will avoid 5V spikes with his own power supply.
Please test this plugin so we can include this into the next release.
We need also importand a video tutorial.
Best regards,
SirNoName
If a answer is correct or did help you for a solution, please use the solve button.