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

Arduino error with sabertooth

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by jarena, Jun 22, 2024.

  1. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    Hi,

    i have been trying to load a sketch in arduino uno to control my sabertooth for my 2 DOF sim, I get this error message when the sketch tries to load, not sure what I am missing? it says something about A11, not sure why since nothing is connected to A11.

    In file included from C:\Users\PC GAMING\Desktop\sabertooth 2\Arduino IDE\XPID_v1.91_6motors_2x32_Micro\XPID_v1.91_6motors_2x32_Micro.ino:83:0:
    C:\Users\PC GAMING\Desktop\sabertooth 2\Arduino IDE\XPID_v1.91_6motors_2x32_Micro\config.h:9:21: error: 'A11' was not declared in this scope
    #define PIN_POWER A11 // potentiometer to define to global power of motions
    ^
    C:\Users\PC GAMING\Desktop\sabertooth 2\Arduino IDE\XPID_v1.91_6motors_2x32_Micro\XPID_v1.91_6motors_2x32_Micro.ino:119:25: note: in expansion of macro 'PIN_POWER'
    int GlobalPowerPin = PIN_POWER; //use a potentiometer to define the power of the motion simulator on pin A11 (12)
    ^~~~~~~~~
    C:\Users\PC GAMING\Desktop\sabertooth 2\Arduino IDE\XPID_v1.91_6motors_2x32_Micro\config.h:9:21: note: suggested alternative: 'A1'
    #define PIN_POWER A11 // potentiometer to define to global power of motions
    ^
    C:\Users\PC GAMING\Desktop\sabertooth 2\Arduino IDE\XPID_v1.91_6motors_2x32_Micro\XPID_v1.91_6motors_2x32_Micro.ino:119:25: note: in expansion of macro 'PIN_POWER'
    int GlobalPowerPin = PIN_POWER; //use a potentiometer to define the power of the motion simulator on pin A11 (12)
    ^~~~~~~~~


    exit status 1


    Compilation error: 'A11' was not declared in this scope