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

New build, arduino, motomonster, 2dof

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by substatica, Jan 2, 2015.

  1. substatica

    substatica Member

    Joined:
    Jan 1, 2015
    Messages:
    63
    Balance:
    882Coins
    Ratings:
    +11 / 1 / -0
    Coming along. Have boxes for the Arduino, Motor Monster and Raspberry Pi B+ which will run version 1.0 of this thing. Using a 12v case fan and a chunk of an old mac heat sink to cool the Motor Monster, a 12v -> 5v USB car adapter to power the RasPi which will in turn power the Arduino. Slowly but surely.

    IMG_0837.JPG
  2. Blame73

    Blame73 Well-Known Member

    Joined:
    Nov 6, 2014
    Messages:
    1,210
    Location:
    Italy
    Balance:
    8,255Coins
    Ratings:
    +1,103 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Sorry, I surely missed something. What will you use Raspberry Pi for? Apart from powering the Arduino
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  4. substatica

    substatica Member

    Joined:
    Jan 1, 2015
    Messages:
    63
    Balance:
    882Coins
    Ratings:
    +11 / 1 / -0
    The RaspPi will power the Ardunio, program the Arduino, allow serial communication with the Arduino for motor control as well as provide WiFi connectivity potentially a web interface, etc. As @noorbeast mentions version 1.0 of this rig won't run SimTools but a combination of custom Arduino and Python code.
  5. substatica

    substatica Member

    Joined:
    Jan 1, 2015
    Messages:
    63
    Balance:
    882Coins
    Ratings:
    +11 / 1 / -0
    Wiring complete, fired it up with some test code and thankfully no mistakes -- though one pot is taking a beating I think ;)

  6. Nick Moxley

    Nick Moxley Well-Known Member

    Joined:
    Dec 13, 2013
    Messages:
    2,779
    Occupation:
    Owner/Operator- Moxleys Rantals
    Location:
    Winnipeg Manitoba Canada
    Balance:
    17,054Coins
    Ratings:
    +2,504 / 30 / -2
    My Motion Simulator:
    2DOF, 3DOF, DC motor, JRK
    Appears both pots are doing a little jiggle.....I would investigate that a little further.
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The 'Cribulator'...a whole new genre of motion simulators!
    • Like Like x 2
    • Funny Funny x 1
  8. prodigy

    prodigy Burning revs

    Joined:
    Oct 27, 2013
    Messages:
    459
    Location:
    Croatia
    Balance:
    6,698Coins
    Ratings:
    +399 / 4 / -0
    My Motion Simulator:
    2DOF, 3DOF, AC motor, SCN5, JRK
    • Agree Agree x 1
  9. substatica

    substatica Member

    Joined:
    Jan 1, 2015
    Messages:
    63
    Balance:
    882Coins
    Ratings:
    +11 / 1 / -0
    Barg, I think I blew a channel on my Motor Monster, I was changing some code and one motor just stopped, upon the second try I thought I heard a pop now that channel of the Motor Monster doesn't seem to function.

    At first the direction indicator lights were both on, but having removed the heat sink and checking for damage (which there doesn't seem to be any on any components aside from the "something's burnt" smell) that channel still doesn't work, and the direction lights are off. Don't these things have protection?
    • Dislike Dislike x 1
  10. Nick Moxley

    Nick Moxley Well-Known Member

    Joined:
    Dec 13, 2013
    Messages:
    2,779
    Occupation:
    Owner/Operator- Moxleys Rantals
    Location:
    Winnipeg Manitoba Canada
    Balance:
    17,054Coins
    Ratings:
    +2,504 / 30 / -2
    My Motion Simulator:
    2DOF, 3DOF, DC motor, JRK
    o boy, "that" smell is Never a good thing.
    • Agree Agree x 1
  11. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    smell = blown
    • Agree Agree x 1
    • Winner Winner x 1
  12. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Why are you changing some code? If you change the code you have to change the wiring as well. Did you run into any problems?
  13. substatica

    substatica Member

    Joined:
    Jan 1, 2015
    Messages:
    63
    Balance:
    882Coins
    Ratings:
    +11 / 1 / -0
    Not changing any of the wiring code, I'm writing my own controller code for the Arduino, I was working on some acceleration/deceleration code not sure why it would've blown anything I guess it can't handle 255 PWM with my setup as that's the maximum it would ever receive.

    What would cause this and how do I prevent it from happening again?
  14. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    I am not a programmer, but there exist 3 very good and working codes, so why you write an other code...:) The code of @RufusDufus (SMC3) has some security routines included, which (should) prevent the motors from any damage if something goes very wrong...
  15. substatica

    substatica Member

    Joined:
    Jan 1, 2015
    Messages:
    63
    Balance:
    882Coins
    Ratings:
    +11 / 1 / -0
    I won't be using this code with SimTools to start, plus I would like to understand from the ground up how everything is working. How is one suppose to know the upper limits unless they're tested? I'll impose a lower max PWM now, but still don't know what the actual max is or what it would've blown in this instance.
  16. substatica

    substatica Member

    Joined:
    Jan 1, 2015
    Messages:
    63
    Balance:
    882Coins
    Ratings:
    +11 / 1 / -0
    So let me ask this, what's the max PWM the Monster Motor can handle with these crab pot motors using ultrasonic PWM code?

    I see @RufusDufus code has 100 as a limit,

    int PWMmax1 = 100;
    int PWMmax2 = 100;
    int PWMmax3 = 100;

    Is that generally what folks are using as an upped limit? I really don't want to burn another MM.
    Last edited: Feb 8, 2015
  17. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
  18. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,602Coins
    Ratings:
    +1,008 / 8 / -1
    Hi substatica,

    Those settings in the SMC3 code are just the default values for first time use. They can be changed using the Windows SMC3 Utils setup program and the new values are stored in EEPROM and used from there.

    The PWM sets the duty cycle, 100% (255 if you are using 8bit PWM) means that the H-Bridge is permanently on. In other words the Power Supply remains connected directly to the motor until the PWM changes.

    Whether the H-Bridge can support a continuous 100% duty cycle or not depends largely on whether the current drawn from the motor in this state is within the H-Bridge limits.

    In reality though as it is a max PWM value, for motion sims using PID feedback, the output wouldn't normally remain in this state for long - only ms at a time.

    100% duty cycle should only be necessary to get the motors moving then it would typically drop and be very dynamic.

    Make sure the H-Bridge has good cooling, it is usually overheating due to excessive current that causes them to fail.
  19. substatica

    substatica Member

    Joined:
    Jan 1, 2015
    Messages:
    63
    Balance:
    882Coins
    Ratings:
    +11 / 1 / -0
    The H-Bridge, the Monster Motor Shield from Sparkfun in this case, has thermal paste, a large heat sink across both chips and a PC case fan on the enclosure (pictured below). I was working on some code to accelerate (raise the PWM) when beginning a travel and decelerate back down when approaching the target, something was off and I suspect the motor got 255 PWM for potentially a couple of seconds. When I get a new H-Bridge I'm going to set a hard PWM limit to 100 I think.

    The power supply is a converted HP server which many folks seem to use.

    IMG_0878.JPG

    IMG_0882.JPG
    • Like Like x 1
  20. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    are you sure there is no possible short circuit?
    smell.jpg