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. fredspeed

    fredspeed New Member

    Joined:
    Sep 1, 2009
    Messages:
    263
    Location:
    Northern Norway
    Balance:
    418Coins
    Ratings:
    +3 / 0 / -0
    ok I was not really shure what he ment...Thankyou! Will try this now!
  2. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Are you having problems with the programming? Or getting the Axis information?

    If you are not getting the Axis data then the problem is not the crystal capacitors, it is the crystal and serial port frequency. USART only works reliably with 1.8432MHz crystals, and perfect multiples of this. The greater the drift the more unreliable the communication gets. Use the 18.432MHz, 20.2752MHz or 22.1184MHz crystals with 17-22pF capacitors.

    Oh and don't connect XTAL pins to Ground. You will fry the oscillator in the microcontroller. :D
  3. fredspeed

    fredspeed New Member

    Joined:
    Sep 1, 2009
    Messages:
    263
    Location:
    Northern Norway
    Balance:
    418Coins
    Ratings:
    +3 / 0 / -0
    Tried without caps,,,same problem. Do you think my atmega could be broken? I am trying to check all the soldering also. I feel like i am close to make this work, and that would really be a great christmas-present to myself!!!
  4. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    If you can't program it then try to look in your programmer circuit and the serial port setting of your computer.
  5. fredspeed

    fredspeed New Member

    Joined:
    Sep 1, 2009
    Messages:
    263
    Location:
    Northern Norway
    Balance:
    418Coins
    Ratings:
    +3 / 0 / -0
    What do you mean with programmer circuit?
  6. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    On your AMC board, beside the upper DB9 connector where you connect MOSI MISO SCK RES. That's the part that will convert RS232 voltage levels from the PC to 0-5V levels that won't hurt the uC. Make sure your serial port work and select the right COM port in ponyprog. Are you using a USB-RS232 adapter?

    Attached Files:

  7. fredspeed

    fredspeed New Member

    Joined:
    Sep 1, 2009
    Messages:
    263
    Location:
    Northern Norway
    Balance:
    418Coins
    Ratings:
    +3 / 0 / -0
    OK I will have a close look at this area. I am using a serial modem cable on a old pentium-pc with win98pro with two serial com ports. I am usin com1. the programming led is flashing when i try to read and write from ponyprog, and probe says OK. thanks for helping me folks!
  8. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    There you have it. You said serial MODEM cable? Thanos designed his circuit to work with a serial EXTENDER cable.

    The difference is, modem cables are meant to connect 2 devices and the TX and RX lines are switched up (TX goes into RX both ways) PIN 2->PIN 3 and PIN 3->PIN 2. Extender cable just extends the line, so PIN 2->PIN 2 and PIN3->PIN3.

    If you can, try to change PIN 2 and PIN 3 on your board (cut and resolder the traces) and try again.
  9. fredspeed

    fredspeed New Member

    Joined:
    Sep 1, 2009
    Messages:
    263
    Location:
    Northern Norway
    Balance:
    418Coins
    Ratings:
    +3 / 0 / -0
    My cable is not a Null modem cable, and I think it is an extender cable. Is this what you refered to? The packing says: db9 to db9 M/F
  10. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Yes that's what I was referring to. I would double check to make sure. If you have a multimeter you can measure the resistance between the ends and make sure pin2/3 are not exchanged.
  11. fredspeed

    fredspeed New Member

    Joined:
    Sep 1, 2009
    Messages:
    263
    Location:
    Northern Norway
    Balance:
    418Coins
    Ratings:
    +3 / 0 / -0
    I will do that. Its -15 celsius cold outside, and this is a great indoor hobby, so I will continue trying this weekend. Hope some of you good helpers are online then :) EDIT: My cable is ok says the multimeter, no crossed wires! Something else must be wrong hm... :?
  12. pathetic

    pathetic Member

    Joined:
    Jul 5, 2009
    Messages:
    62
    Balance:
    - 38Coins
    Ratings:
    +0 / 0 / -0
  13. Nicko355

    Nicko355 New Member

    Joined:
    Oct 17, 2009
    Messages:
    27
    Occupation:
    Automotive Tech
    Location:
    Sydney , Australia
    Balance:
    483Coins
    Ratings:
    +15 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi does anyone know why when I access Hyperterminal i enter a kp value and press enter but i get no response .When i press reset i get the same refreshed screen . My wiper motor is functioning with a 10k pot successfully Any clues ?
    CHEERS Nick
  14. 914tom

    914tom Member

    Joined:
    Nov 19, 2009
    Messages:
    37
    Balance:
    - 30Coins
    Ratings:
    +0 / 0 / -0
    hi fredspeed,

    your christmast wil be save.
    look at the 5 jumperwires.
    the first 5 connectors should be bridged, you bridge the first 4 an the 6th.
    jumper the first 5 an you are good to go.

    fredspeed1.jpg

    TOM
  15. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Tom is right. If you connect Ground to the Vcc pin at the AVR, it is not going to work (and that is the best scenario). Connect the 5th (bottom wire) to the 6th by the AVR. It goes: (Mosi, Miso, Sck, Res, Vcc, Gnd)
  16. fredspeed

    fredspeed New Member

    Joined:
    Sep 1, 2009
    Messages:
    263
    Location:
    Northern Norway
    Balance:
    418Coins
    Ratings:
    +3 / 0 / -0
    OK thanks! I will test this tomorrow. In Thanos Amc video guide, it looks like the first 4 and 6th jumperwires are connectet, so that is why I did so. In Ponyprog-guide only the 4 first jumpwires are shown connected, but I did not see at first that it was not v1.5! I will solder the caps again, and try this tomorrow. do you think I destroyed something using the 6th ? (and that is the best scenario).

    Fred
  17. 914tom

    914tom Member

    Joined:
    Nov 19, 2009
    Messages:
    37
    Balance:
    - 30Coins
    Ratings:
    +0 / 0 / -0
    is there anywhere a guide who descripes the configuration of x-sim to operate with the tronix AVR board ?
    the video guid is not avail. for me because i am not a rapidshare member.

    TOM
  18. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Fred, connecting Vcc to Gnd is never a good idea :) In the original design Thanos doesn't have a connection for Vcc (there is no solder point for the 5th pin socket), but I don't know if you solderet it or not. Do you have that hole drilled on the PCB? Do you have that wire soldered on the other side? If you electrically connected Gnd and Vcc on your board, the voltage regulator on the top with a heatsink would probably be blown. If your power led lights up then I guess your all good. Check your Voltage on the Vcc pin respect to Gnd.
  19. fredspeed

    fredspeed New Member

    Joined:
    Sep 1, 2009
    Messages:
    263
    Location:
    Northern Norway
    Balance:
    418Coins
    Ratings:
    +3 / 0 / -0
    The 5th was not a soldered connection. trying now
  20. 914tom

    914tom Member

    Joined:
    Nov 19, 2009
    Messages:
    37
    Balance:
    - 30Coins
    Ratings:
    +0 / 0 / -0
    Damm, your are right. *g*
    anyway, should work. (fingercrossing ...)