1. 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
  2. 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!
  3. 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
  4. 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

RC 6DOF #6 going crazy in negative plane???

Discussion in 'SimTools DIY Version' started by JeepGunner82, Jul 14, 2016.

  1. JeepGunner82

    JeepGunner82 Member Gold Contributor

    Joined:
    May 23, 2016
    Messages:
    41
    Location:
    San Jose, CA
    Balance:
    201Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    2DOF, SCN5
    Hello great sim gurus out there!

    I am still working a pesky bug in my mini RC 6dof practice build.
    Arduino code is a m0dified
    // Original code By EAOROBBIE (Robert Lindsay)
    // Completely mangled by aarondc

    all servos 1-5 work well and proper in testing.
    #6 is fine + side. However throw the slider - and it begins to lower, then immediately shoots to 0* at -22, remains in place till -81, and lowers to ~100* till -92, -93 zips to 0*, -99 at 100*, then -100 at 180*

    The following troubleshooting has been done:
    x3 servos tested, 2 new, 1 tested at store
    pos, neg, and pulse wires were exchanged for known working ones
    swapped pulse pin around with corresponding code
    disconnected all other servos (not enough power??)
    reversed scaling on code, reduced range on code

    Why on earth would it be doing this???
  2. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,573
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    'Why on earth would it be doing this???' Could be lots of things..
    I would ask first this question to the members here - 'Has anyone else on this site successfully modified EAOROBBIE'S code to drive 6 RC servos to simulate a 6DOF.' Also recommend you check the waveforms going to each servo.
  3. JeepGunner82

    JeepGunner82 Member Gold Contributor

    Joined:
    May 23, 2016
    Messages:
    41
    Location:
    San Jose, CA
    Balance:
    201Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    2DOF, SCN5
    SeatTime,
    thank you for the reply.
    This thread shows how to add servos to the original code.
    http://www.xsimulator.net/community/threads/my-project-guide-me.5682/#post-59262
    I also notice CalSim was running into a similar issue with the last servo going crazy. I wonder if perhaps adding in a code for a "ghost" servo could "trick" it into thinking the #6 isn't the last one??

    Waveforms, hmm will have to get software for testing (and learn how to use it) Diligentinc appears to have one for download.

    //

    Thought your build of carbon fiber linear actuators was pure genius! Most platform movers I have seen in that configuration were hydraulic like (InMotion Simulation)
  4. JeepGunner82

    JeepGunner82 Member Gold Contributor

    Joined:
    May 23, 2016
    Messages:
    41
    Location:
    San Jose, CA
    Balance:
    201Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    2DOF, SCN5
    Problem appears to be solved. I added in a nonexistent axis in the interface settings (~Q<Axis9). That solved the issue. If anyone out there having trouble with their last servo going crazy, try that!
    • Informative Informative x 2