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

Tronic's AMC motor motion-controller with pwm/servo output

Discussion in 'SimTools compatible interfaces' started by tronicgr, Aug 30, 2007.

  1. adgun

    adgun Active Member

    Joined:
    Jan 28, 2008
    Messages:
    518
    Occupation:
    mechanic
    Location:
    Netherlands
    Balance:
    5,684Coins
    Ratings:
    +131 / 4 / -0
    Hi Thanos
    Thanks fore your anwser.
    Now i can work out one,i intend to use brushed servo,s
    I am able to get ballscrews 16/10 with nut c7 class 600mm,machined to my specs and 4 shafts with m8 screwholes one 2 sides 500mm for 150,00euro
    now i only need to make plates
    its gone take time but you are gone hear from it.
    regards Ad
  2. Jeroen

    Jeroen DoctorXeno

    Joined:
    Oct 3, 2007
    Messages:
    120
    Location:
    Holland
    Balance:
    - 55Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hi,

    My computer does not have a serial-port. So I bought a serial to USB cable. Can I connect the AMC this way without any problems or
    do I need some hard/software?

    Attached Files:

  3. wannabeaflyer

    wannabeaflyer Active Member

    Joined:
    Jul 31, 2008
    Messages:
    248
    Location:
    UK - London area
    Balance:
    971Coins
    Ratings:
    +34 / 0 / -0
  4. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0

    Hi


    The only USB to serial adapters that I guarantee to work with my AMC are those that contain FTDI chip (FT232R or similar). And again you have to modify the settings of the com port that the adapter creates, to fix the timings and set the serial printer option.




    Regards, Thanos
  5. Jeroen

    Jeroen DoctorXeno

    Joined:
    Oct 3, 2007
    Messages:
    120
    Location:
    Holland
    Balance:
    - 55Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
  6. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
  7. Jeroen

    Jeroen DoctorXeno

    Joined:
    Oct 3, 2007
    Messages:
    120
    Location:
    Holland
    Balance:
    - 55Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Ok great thanks... I've ordered 1. Tomorrow I have all the components complete incl. pcb's. I'm going to etch them my self.
    Can't wait to have things running and how it works out.

    Thanks so far... everybody!
  8. HAVOG

    HAVOG New Member

    Joined:
    Jan 2, 2009
    Messages:
    34
    Occupation:
    High and Low voltage technician, production automa
    Location:
    Denmark
    Balance:
    299Coins
    Ratings:
    +0 / 0 / -0
    Hello

    How do I messure if the AVR is giving out the right output? I'm not sure i get enough power to open the BC546->Mosfets


    I got no speed and torque - But when I test the H-bridge the way Thanos describes it's okay.

    Henrik
  9. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0

    I'll try to make a table of measurements and their results if that helps.

    From my point of view I can see that you have problem with the crystal that maybe producing wrong frequencies. Also there is possibility this to be caused by the potentiometers in case you decreased a lot their range with the auxiliary tunning pot (the blue multi-turn one...)

    Regards, Thanos
  10. HAVOG

    HAVOG New Member

    Joined:
    Jan 2, 2009
    Messages:
    34
    Occupation:
    High and Low voltage technician, production automa
    Location:
    Denmark
    Balance:
    299Coins
    Ratings:
    +0 / 0 / -0
    Hi

    Maybe I turned the finetuning pot. down to much?? That's whatr you meen?

    I should be able to measure on the wires between the AVR and the driver to see if it provides the right signals, right?

    Should i start by measuring the BC546's?


    Henrik
  11. Jeroen

    Jeroen DoctorXeno

    Joined:
    Oct 3, 2007
    Messages:
    120
    Location:
    Holland
    Balance:
    - 55Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hi,

    Instead of 16v capacitors i've got 63v capacitors for the avr-controller. Does this matter?
  12. stringer85

    stringer85 New Member

    Joined:
    Jul 24, 2008
    Messages:
    7
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Tronic
    Just built both the AMC 1.5 & DSMb1.2b, except for a few teething problems there working great! (Thanks)

    Just a quick question, Is it possible to connect two servos directly to the AMC1.5 board and use them to make a model motion platform?
    I connected a servo and had a jumper in J1 but the servo did'nt move.
    I know the board is working because it works fine with the DSMb1.2 and a couple of DC motors.
    Any ideas?

    Great work by the way!!
  13. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi stringer85,

    You need to use different firmware for simple servos:

    http://www.x-simulator.de/forum/post7350.html#p7350


    With this firmware you have to use 22,1184 Mhz crystal to work and possibly rewire the power to the servos using external battery (no more than 6volts) to avoid overheating of the LM2940 on the board.

    The USO string is also different: AB~1~~2~~3~~4~~5~~6~
    where the 1,2,3,4,5 and 6 numbers represent the six axis. Yes you can use up to 6 servos!!

    To connect all the six servos, use four standard servo ports of the AVR motion controller v1.5 for servos 1-4 and the ADC ports 7 & 8 for the servos 5-6!!

    I wasn't able yet to figure a way of combining together PWM and Servo signals in same firmware...

    Regards, Thanos
  14. stringer85

    stringer85 New Member

    Joined:
    Jul 24, 2008
    Messages:
    7
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Tronic,

    I changed my crystal to a 22.1184Mhz and installed the other firmware.
    changed the USO string to: AB~1~~2~~3~~4~~5~~6~ :clap:

    (The interface LCD displays the USO String and 115K 6DOF 001) :thbup:

    When I turn the interface on the servo goes all the way to one side and I can hear a tapping sound.
    Is that normal?

    Are the switches used in this firmware?
    Should the comport stay at 115200?

    I still cant get X-sim to control the sevos; How can I get em to work?
  15. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi stringer85

    My bad... I didn't mean to use the string as I given it... :lol:

    And what profiler do you use?

    In profiler 1.8 you have to use this string:
    AB~x~~y~
    (only two servos can be moved)

    And in profiler 2.0 you have to use this string to move 6 servos:
    AB~a01~~a02~~a03~~a04~~a05~~a06~
    (as described in http://www.x-simulator.de/beta/uso.html )

    The clicking sound you hear from the servo means that its reaching its physical stop. I programmed the firmware for 180degree servos, so maybe yours are only 90degree capable!

    The speed is 115200, 8-bit binary output (as one byte each)

    Regards, Thanos
  16. stringer85

    stringer85 New Member

    Joined:
    Jul 24, 2008
    Messages:
    7
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Thanos,

    Really sorry to keep bothering you :blush:

    Im using the 1.8 Profiler, I changed the string to AB~x~~y~, and tried testing the servo by moving the X Y sliders and clicking move simulator, but nothing happens.

    These are the servos Im using :
    <a class=postlink href=http://cgi.ebay.co.uk/9g-Mini-Micro-Servo-x-2-RESIN-gears-Futaba-JR-Hitec-NEW_W0QQitemZ370149282671QQcmdZViewItemQQptZUK_ToysGames_RadioControlled_JN?hash=item370149282671&_trksid=p3286.c0.m14&_trkparms=72%3A1688|66%3A2|65%3A12|39%3A1|240%3A1318 onclick=window.open(this.href);
    return false;>http://cgi.ebay.co.uk/9g-Mini-Micro-Ser ... 240%3A1318</a>

    Im pretty sure the 180.

    Any suggestions?

    Thanks Again for you help! :thbup:
  17. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi,

    No bother... :hi:

    You have to press the start button on the profiler to start sending data to the servos...

    ... and just to be sure, press the reset button on the AMC1.5 , wait a few seconds, and then press the start button.

    Also try to use this string if all else fail:
    AB~x~~y~~x~~y~~x~~y~
    (the rest four servo channel will repeat what the first two are doing... ;) )


    Have you loaded any profile yet? You can try this for LFS:
    http://www.x-simulator.de/forum/re-lfs-profile-for-dc-motor-s-by-tronicgr-t572.html


    Regards, Thanos
  18. stringer85

    stringer85 New Member

    Joined:
    Jul 24, 2008
    Messages:
    7
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Hi,

    Still Nothing; I think this crystal Im using may be faulty. I've ordered a replacment to see if that will solve the problem.
    But then I think the circuit wouldnt work at all If the crystal was faulty, I dunno! :?

    I let you know if it sorts it.

    Thanks again for you help.
  19. Jeroen

    Jeroen DoctorXeno

    Joined:
    Oct 3, 2007
    Messages:
    120
    Location:
    Holland
    Balance:
    - 55Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hi,

    I just blew the first capacitator on the avr-controller. I plugged in the 9v adaptor and no leds went on. Plugged out the adaptor and a few seconds later it blew.
    Does anybody have an idea of what this might be?

    Gr. Jeroen
  20. Mambo

    Mambo New Member

    Joined:
    Aug 5, 2008
    Messages:
    168
    Location:
    Czech Republic
    Balance:
    288Coins
    Ratings:
    +1 / 0 / -0
    Have you capacitator right (polarity)? Or adaptor have switch + and - ?