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 uno wiring diagram

Discussion in 'SimTools compatible interfaces' started by hooshang, Nov 9, 2013.

  1. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    :thumbs@eaorobbie
    nicely done
    but let me ask you that have you ever tested this cofiguration before?
    and let say i tested this today and may somthing goes wrong
    with it!?although you did this diagram based on Arduino code: 2DOF and 2 pins direction Hbridge, but it didnt work properly and then when i
    changed no:4 pin with no:7 ,it just seems get allright!
    thank you
    Hooshang
  2. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,402Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    No I havent tried this code because I use jrks, dont want to step backwards.
    But if this is true then the pin out @RacingMat has posted is in correct, thinking back when I was using the Monster Moto Driver from Sparkfun there was a error in the silkscreen, I had to change the pins from memory to get it to actually work with the K8055 but dont remember what I did - 2 years ago.
    @RacingMat can you confirm the pin out is correct, verified and works.
    Either that or there is a error in the actual code. Not sure.

    Again I only created the diagram from @RacingMat text. Sorry if this is confirmed to be right Im happy to change the diagram for you guys. Only posted to help people like yourself understand where to pin everything in. Thanks for finding the error.
    • Like Like x 1
  3. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    cause we can see the name Arduino all over the community ,its not bad
    to have confirmed code and diagram or any alternative code and diag.
    all together here...for this board
    regards
    Hooshang
    • Like Like x 1
  4. prilad

    prilad Well-Known Member SimAxe Beta Tester SimTools Developer

    Joined:
    Apr 29, 2012
    Messages:
    380
    Location:
    Dubna, Russia
    Balance:
    9,616Coins
    Ratings:
    +512 / 1 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 4DOF
    You can find my Ard firmware AND wiring diagram here:
    http://www.xsimulator.net/community/threads/arduino-uno-duemilanove-2dof-firmware.4564/
    And other firmware authors, as I know, posts wiring diagrams. Where do you see the problem?
    • Like Like x 3
  5. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,402Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    I would recommend using @prilad code as I have actually tested this with both the Monster Moto and Pololu driver and was surprisingly impressed with it , plus his little app makes it so much nicer for the end user to setup, bonus thanks @prilad.
    They might post wiring diagrams but from @hooshang test they seem to be incorrect for the driver stated , just would be nice that the correct information is posted, we are only human mistakes do happen. Thanks @RacingMat for fixing it , by the way I had an issue trying to load the code from the download too, had to copy & paste from notebook to Ard IDE in order to compile it, as it would not load from you downloadable file. Anyone else had this issue ? or just me, mmm.
    • Like Like x 1
  6. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,167
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,280Coins
    Ratings:
    +5,032 / 16 / -0
    If your going to use the Ard, I would also recommend using @prilad code!
    I have noting but good feedback from it's users.
  7. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    hi freinds
    i use Prilad code and the initial tests with pot was great and smooth
    but i have problem with transfering data to Arduino ,iam using
    interface presetting of Racingmat for Arduino,i dont know if this is the point
    or i have another problem...???o_O
    thank you
    Hooshang
  8. prilad

    prilad Well-Known Member SimAxe Beta Tester SimTools Developer

    Joined:
    Apr 29, 2012
    Messages:
    380
    Location:
    Dubna, Russia
    Balance:
    9,616Coins
    Ratings:
    +512 / 1 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 4DOF
    data string:
    AB<255><Axis1><Axis2>
    • Like Like x 2
  9. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    @prilad
    thank you friend for the great code
    and how about start up and shutdown output?
    regards
    Hooshang
  10. prilad

    prilad Well-Known Member SimAxe Beta Tester SimTools Developer

    Joined:
    Apr 29, 2012
    Messages:
    380
    Location:
    Dubna, Russia
    Balance:
    9,616Coins
    Ratings:
    +512 / 1 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 4DOF
    Hi, Hooshang. You do not need to use startup and shutdown data

    Setup SimTools.jpg

    Only set correct Baud for used firmware.
    • Like Like x 1
  11. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    @prilad
    thank you
    your zipped file contain 5 differnet code, how should
    choose one?!and why?
    regards
    Hooshang
  12. prilad

    prilad Well-Known Member SimAxe Beta Tester SimTools Developer

    Joined:
    Apr 29, 2012
    Messages:
    380
    Location:
    Dubna, Russia
    Balance:
    9,616Coins
    Ratings:
    +512 / 1 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 4DOF
    All files has the same functionality and has only different Baud Rates. You can try any. If you obtain some troubles with communication - try another...
    • Like Like x 1
  13. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    i have still communication problem
    let say i have 2 Arduino uno board,
    i programmed the first one with Racingmat code and
    no actualy problem with commuinication,using Racingmat
    code and interface preset...then i used Prilad code (19200 and 28800)for second one and preset as he said (AB<255><Axis1><Axis2>)...
    boards led is on,in output testing when i click turn on botton
    Arduino RX led also gets on but...
    still no data:( comming to the driver:sos
    thank you
    Hooshang
  14. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,402Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Have you been able to use it in his app that goes with it, recommend setting it up first before Simtools the above settings should work. Check the interface settings are correct for the code you are running.
  15. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    @eaorobbie
    hi freind
    app? if you mean Xloader,yes i programmed my Arduino(Prilad code) with it.
    if somthing eles,i donno
    and here is my interface settingas Prilad said:
    Untitled.jpg
    thank you
    Hooshang
  16. prilad

    prilad Well-Known Member SimAxe Beta Tester SimTools Developer

    Joined:
    Apr 29, 2012
    Messages:
    380
    Location:
    Dubna, Russia
    Balance:
    9,616Coins
    Ratings:
    +512 / 1 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 4DOF
    Why you set 115200 baud rate? You should set Yours Firmware Baud Rate (28800 or 19200)
    Check it please. Yes, I posted this picture, but I wrote
    • Like Like x 1
  17. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    @prilad
    first,thank you
    then i loaded code 19200 and new interface output setting
    but still no data come to the board :mad:
    Untitled1.jpg

    Untitled.jpg
    pololu drive and wiring nicely work
    cause the motors respond very well to the pots positions
    but they are still waiting for data to act :roll
    thank you
    Hooshang
  18. prilad

    prilad Well-Known Member SimAxe Beta Tester SimTools Developer

    Joined:
    Apr 29, 2012
    Messages:
    380
    Location:
    Dubna, Russia
    Balance:
    9,616Coins
    Ratings:
    +512 / 1 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 4DOF
    I'm not sure, but may be it can be important to write <Axis1> (with a capital letter) instead of the <axis1>.

    Xloader
    have upload firmware with BoudRate 115200 - for UNO its wright. But SimTools should be configured with BaudRate which used in Firmware.
    • Like Like x 1
    Last edited: Nov 16, 2013
  19. hooshang

    hooshang Active Member

    Joined:
    Jul 6, 2011
    Messages:
    272
    Balance:
    289Coins
    Ratings:
    +157 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, 6DOF
    @prilad
    Thank you for quick reply
    Eaorobbie said about the presetting with an app ?!
    Could you please tell What is he talkin about?
    Thank you
    hooshang
  20. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,402Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Extracted from @prilad post on the firmware, not sure where the download is for it anymore.
    • Informative Informative x 1