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

Question Arduino Sketch for Sabertooth Fan control

Discussion in 'Miscellaneous' started by _cOdaC_, Jan 29, 2024.

  1. _cOdaC_

    _cOdaC_ New Member

    Joined:
    Dec 20, 2023
    Messages:
    10
    Balance:
    46Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    I have printed this Fan holder for a 2x32 Sabertooth and mounted a 120 fan on top of it.
    The idea is to measure the temperature of the two motor channels and if one of the two reaches 40°C, turn the fan on.
    I am no Coder, so if anyone could help me to add this feature in the SPS sketch that would be fantastic.
    Here is the response of Dimension Engineering I've got so far:

    The actual Arduino USB Sabertooth "ReadBack" sketch shows how to read temperature with an Arduino.

    Download and install our "Arduino Libraries for SyRen/Sabertooth Serial (includes examples)" at the link I provided in the previous reply.

    Then in the Arduino IDE, go to File > Examples > USB Sabertooth Motor Driver > Basics > ReadBack. Then open it. It literally shows how to "getTemperature" in the sketch.

    If you need even more detail, go here:

    https://www.dimensionengineering.co...Library/html/_u_s_b_sabertooth_8h_source.html


    Sabertooth can only read the temperature of the motor channels. Which is in most cases, sufficient for satisfactory operating temperature, as motor temperature is the only meaningful value in determining overall unit operating temperature. There is no temperature reading for the unit as a whole. The thermal shutdown feature is tied to motor output specifically.

    If the ambient temperature is unusually high, then that will affect the output channel temperatures. So thermal shutdown is in effect if necessary.

    Per the 2x32 documentation page 6, "Maximum continuous output current derates linearly above 40C ambient. At 70C ambient the maximum continuous output current is 10 amps
    per channel." So having your fan turn on when Sabertooth M1 or M2 reaches 40C would be prudent.

    https://www.dimensionengineering.com/datasheets/Sabertooth2x32.pdf
  2. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,897
    Location:
    London
    Balance:
    11,610Coins
    Ratings:
    +458 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    You could also use a themoswitch