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

link Arduino to MM ?

Discussion in 'Electronic and hardware generally' started by Andrea 1968, Jul 14, 2015.

  1. Andrea 1968

    Andrea 1968 Member

    Joined:
    Jul 1, 2015
    Messages:
    65
    Location:
    italia
    Balance:
    193Coins
    Ratings:
    +40 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    hi, could you tell me with this file :
    Arduino code: 2DOF and 2 pins direction Hbridge 1.2 with presets
    RacingMat , November 8, 2013 , for Firmware Interfaces
    source code
    what kind of connection made between Arduino and MM for two engines ?
    Thanks.
  2. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,064Coins
    Ratings:
    +622 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
  3. Andrea 1968

    Andrea 1968 Member

    Joined:
    Jul 1, 2015
    Messages:
    65
    Location:
    italia
    Balance:
    193Coins
    Ratings:
    +40 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    found , thanks for connection
    Arduino /..Motomonster1
    ....GND <-> GND pin
    .........5V <-> 5V
    .....pin 4 <-> pin 4 inA motor1
    .....pin 5 <-> pin 5 pwm1
    .....pin 6 <-> pin 6 pwm2
    .....pin 7 <-> pin 7 inA motor2
    .....pin 8 <-> pin 8 inB motor1
    .....pin 9 <-> pin 9 inB motor2

    .....pinA0 <-> center pin of pot 1
    .....pinA1 <-> center pin of pot 2
    .....pinGND <-> 0 ohm's pin potentiometer 1 & 2
    .....pin 5V <-> 10k ohm's pin potentiometer 1 & 2
    upload_2015-7-14_11-31-41.png
    • Like Like x 2
  4. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,237
    Location:
    Marseille - FRANCE
    Balance:
    21,006Coins
    Ratings:
    +2,092 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello
    Glad you find the answer
    :)
    Please put a link instead of copy/paste
    It's easier to update or correct if the information is not spread in many places...
    Yours
    Mat
  5. Andrea 1968

    Andrea 1968 Member

    Joined:
    Jul 1, 2015
    Messages:
    65
    Location:
    italia
    Balance:
    193Coins
    Ratings:
    +40 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
  6. Andrea 1968

    Andrea 1968 Member

    Joined:
    Jul 1, 2015
    Messages:
    65
    Location:
    italia
    Balance:
    193Coins
    Ratings:
    +40 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    excuse my insistence , I can not understand the list of pins with the photo.
    in the picture there are pins on MM that on the list there are not , why ?
    and ' can do a bit of clarity , I not would burn some component ,
    await response to start connections between Arduino and MM ,
    Thank You

    Attached Files:

    • MM.jpg
      MM.jpg
      File size:
      68.5 KB
      Views:
      575
  7. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,237
    Location:
    Marseille - FRANCE
    Balance:
    21,006Coins
    Ratings:
    +2,092 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    there is no need to connect all the pins... only these :
    10182-04.jpg
    • Useful Useful x 1
  8. Andrea 1968

    Andrea 1968 Member

    Joined:
    Jul 1, 2015
    Messages:
    65
    Location:
    italia
    Balance:
    193Coins
    Ratings:
    +40 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    hi , thanks for reply , I still have Doubts about A1 and A0 , but do not go on Arduino ?
    Please could you take the attached picture and complete the connections of the potentiometers simply with the p a i n t .
    I'd appreciate it , thanks again and sorry insistence .

    Attached Files:

  9. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,237
    Location:
    Marseille - FRANCE
    Balance:
    21,006Coins
    Ratings:
    +2,092 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I don't really understand your sentence
    Pot1 on A0 (Analog 0)
    Pot2 on A1
  10. Andrea 1968

    Andrea 1968 Member

    Joined:
    Jul 1, 2015
    Messages:
    65
    Location:
    italia
    Balance:
    193Coins
    Ratings:
    +40 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    And so ' right?
    mm piu arduino completo.PNG
  11. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,237
    Location:
    Marseille - FRANCE
    Balance:
    21,006Coins
    Ratings:
    +2,092 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
  12. Andrea 1968

    Andrea 1968 Member

    Joined:
    Jul 1, 2015
    Messages:
    65
    Location:
    italia
    Balance:
    193Coins
    Ratings:
    +40 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    hi, the tests carried out and watching the files of Arduino inputs are A4-A5
    as illustrated and everything works perfectly, thanks MAT

    Attached Files:

  13. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,237
    Location:
    Marseille - FRANCE
    Balance:
    21,006Coins
    Ratings:
    +2,092 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I wrote A4 and A5 in the code? I should correct the pinout
    but it's nice to have a look a the code anyway, and to understand what is done
    • Informative Informative x 1