1. This Software is no longer supported by us. Please download the new motion control software SimTools.
    Dismiss Notice
  2. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  3. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  4. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  5. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

pololu TRex Jr - Force profiler output

Discussion in 'Force-Profiler Simulator Control' started by frenzy10, Oct 16, 2011.

  1. frenzy10

    frenzy10 New Member

    Joined:
    Oct 16, 2011
    Messages:
    2
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Hi

    I have a Pololu Trex Jr board and have force profiler 2 outputing to it. I can see the data LED flashing so know that data is being transferred. However I am stuck when trying to get the output to scale correctly.

    The Pololu can take 7 bits of data as a value (after the control byte) but no matter how I try and change the data in the FP2 output section the LED stays on (indicating a high value).

    If I add the following line to the output string I can make the LED intensity change to indicate that the board is operating correctly:

    ~240~~00~ -> all the way up to ~240~~127~

    However as soon as I use ~240~~a01~ the LED jams on.

    I am using the Test tablet to create a nice oscillating input from Force Sender.

    Obviously the Maths section and the scaling feature on the Output page are confusing me.

    Can anyone help with scaling the output?

    Many thx
  2. frenzy10

    frenzy10 New Member

    Joined:
    Oct 16, 2011
    Messages:
    2
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Just to close this off - got there in the end myself after re-reading this post:
    arduino-and-x-sim-t2773-20.html

    Still not sure I understand the scaling used by the testtablet but setting the lower end to 200 and the upper to 0 helped. I guess 0 to 200 would be ok if I inverted the G force plugin on the Maths section of the profiler. I also set the max and minimum values on the graph to 0-127 within the math section. So now the testtablet outputs values that start at 0 and pass through 127 at the mid point (somehow!)

    I then modified my Force profiler to send out binary even though the Trex documentation mentions decimal and hex.

    So now I can use the testtablet to incrementally increase the motor speed on the board.

    One problem down, many more to come no doubt.