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

    knob2001 Member

    Joined:
    Dec 3, 2008
    Messages:
    56
    Location:
    Madrid, Spain
    Balance:
    24Coins
    Ratings:
    +0 / 0 / -0
    Hi...

    After a lot time doing so many things, i've returned to my project :D (see: step-by-step-approaching-to-thanos-work-t1218.html) I will post some updates this days.

    I spent one week trying to resolve a problem with my hard disk (delayed write) but finally it died. So... reinstall everything again, and again...

    After that, another problem appeared: The LCD only shows the data for the first pot (sensor hall in my case) The other data is missing!!! :eek:

    I've measured the v around it, and it seems to be working on all the pots but the second. I've erased the firmware, used another cristal speed, saw the V of the trimmer (is working). So i think there's something wrong inside the 8535. Two of them are travelling to my house right now, but meanwhile i'm using the firmware thanos did for calibration, just to be sure all the pots but the second are working.

    The question is meanwhile the new 8535 comes to my home: i need the firmware for the 1 and 3 pots instead of the 1 and 2. I don't know if thanos left the source code to let us change that.

    Thank you!!!
    Regards
  2. rappa

    rappa New Member

    Joined:
    Jun 9, 2009
    Messages:
    15
    Location:
    Portugal
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    hello!
    I'll start to make this pcb (AMC1.5) but wanted the schematic complete, because I want to draw a new pcb with specific Dimensions.
    I was wondering if someone could post here that schematic.

    thanks! Rappa
  3. Senetor

    Senetor Member

    Joined:
    Oct 23, 2008
    Messages:
    90
    Location:
    Australia
    Balance:
    594Coins
    Ratings:
    +1 / 0 / -0
  4. rappa

    rappa New Member

    Joined:
    Jun 9, 2009
    Messages:
    15
    Location:
    Portugal
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    hi! Senetor

    thanks, but i already have this.
    I found an error on this schematic and is very confusing. if someone has another plan I would appreciate. the error in schematic is in the sw1/sw2/sw3/sw4 that lack the ground.

    thanks! Rappa
  5. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Just connect one side of the switch to ground, the other to the inputs and resistors.
  6. rappa

    rappa New Member

    Joined:
    Jun 9, 2009
    Messages:
    15
    Location:
    Portugal
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    hi!
    yes, i know it s a pul-up resistor. but i need a schematic less confusing.

    thanks!
    Rappa
  7. frouenque

    frouenque New Member

    Joined:
    Oct 18, 2009
    Messages:
    12
    Occupation:
    Embedded software engineer
    Location:
    Paris
    Balance:
    236Coins
    Ratings:
    +0 / 0 / -0
    Hi all !

    My AMC card is now mounted, and I have already write the firmware on the Atmega. The value of the potar is correctly printed on the LCD.

    But I have a problem on the RS232 part. When I put the 2nd DIP on, I don't have any information on the HyoerTerminal whereas the LCD print TIP : Use Terminal. But after few seconds, when I press any character, the HyperTerminal print a to the power 3 (it's like ² but with a 3). These characters print 3 time, and it's the number of question that the firmware ask.

    Does someone have any idea about my problem ? The green led near the RX connector is always on.

    Thanks a lot for your answer :)

    PS : the picture of my card :

    [​IMG]
  8. watkykjy

    watkykjy Member

    Joined:
    Nov 29, 2009
    Messages:
    30
    Balance:
    - 10Coins
    Ratings:
    +0 / 0 / -0
    Hi Knob2001,

    Are you in contact with Thanos at all? It would be GREAT if he can give us the source code for the atmega, or possibly add something to it. I am looking for some code that will tilt my simulator to the side when I press a button. You see, our frames are a little longer, wider and higher than the original joyrider frame, and getting in and out of them would be much easier if you can press a button or a switch that will cause it to tilt sideways, and when you are in, you undo the button or switch, and it then becomes ready to play.

    @ frouenque,

    I had almost the same problems initially with my AMC's, and even now when I connect it to the PC, it doesn't display a lot of stuff (like nice readable text), but I know the sequence it wants the data in..

    Do this. Connect it to the PC, have hyperterminal running, enable dip switch number 2, and then turn on the AMC. Once powered on, look at the display of your LCD. When it says TIP: use terminal), type in 5 followed by <ENTER>, then 5 again, followed by <ENTER>, and then y and press <ENTER>.

    The screen on your LCD should then change to say something like disable DIP 2 or something like that. If that happens, then you know it's working properly, as it first asks you for the KPX value, then KPY value, and then to confirm if it can save those new values. Let us know what happens then ;)

    Thanks mates, have a goodie!
  9. Michael N.

    Michael N. Member

    Joined:
    Dec 27, 2007
    Messages:
    274
    Location:
    Germany, NRW, Düren
    Balance:
    611Coins
    Ratings:
    +5 / 0 / -0
    Hi,
    i want to upgrade the ATmega Chip but i can`t program the ATMEGA644 Chip with ponyprog, there comes a message Device missing or unknown device (-24). If i install the ATMEGA8535 Chip on the AMC board, i can program the Chip. Why not the ATMEGA644, any hints?.
    In Ponyprog i choose at the pulldown menu AVR Micro and ATmega644.
  10. watkykjy

    watkykjy Member

    Joined:
    Nov 29, 2009
    Messages:
    30
    Balance:
    - 10Coins
    Ratings:
    +0 / 0 / -0
    maybe a dumb question, but why would you want to upgrade to the 644 chip if the normal 8535 is working fine?
  11. Michael N.

    Michael N. Member

    Joined:
    Dec 27, 2007
    Messages:
    274
    Location:
    Germany, NRW, Düren
    Balance:
    611Coins
    Ratings:
    +5 / 0 / -0
    Hi watkykjv,
    that wrote Thanos

  12. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Using the same firmware, the only benefit you will have is the 20Mhz nominal speed. It more powerful than the 8535, but you need a firmware that utilizes it :)

    Michael, can you read the fuses with the ponyprog? Could you read them before and did you change them?
  13. Michael N.

    Michael N. Member

    Joined:
    Dec 27, 2007
    Messages:
    274
    Location:
    Germany, NRW, Düren
    Balance:
    611Coins
    Ratings:
    +5 / 0 / -0
    No i can not read the fuses and did not read or change them before. With the ATmega644 installed i got the missing device error message.
    With the 8535 installed all is fine. I can read, write and program.
  14. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Double check if you have the Atmega644 or the Atmega644p. They are two different controllers, they even have separate datasheets. Ponyprog can program only the 644.
  15. frouenque

    frouenque New Member

    Joined:
    Oct 18, 2009
    Messages:
    12
    Occupation:
    Embedded software engineer
    Location:
    Paris
    Balance:
    236Coins
    Ratings:
    +0 / 0 / -0
    I have try this and KP don't change, the lcd doesn't say disable DIP 2 ... I think there is a soldering problm. I will check with multimeter.

    Thanks
  16. Michael N.

    Michael N. Member

    Joined:
    Dec 27, 2007
    Messages:
    274
    Location:
    Germany, NRW, Düren
    Balance:
    611Coins
    Ratings:
    +5 / 0 / -0
    Hi Frakk,
    Bingo :alki:
    I have a ATmega644P :uups: . What can i do now?, must i buy a new ATmega644 or do i have a chance to program the Chip?.
  17. Michael N.

    Michael N. Member

    Joined:
    Dec 27, 2007
    Messages:
    274
    Location:
    Germany, NRW, Düren
    Balance:
    611Coins
    Ratings:
    +5 / 0 / -0
    Hi again,
    i found a Ponyprog Version who includes the ATmega644P. I will test it and report :yes:
  18. frouenque

    frouenque New Member

    Joined:
    Oct 18, 2009
    Messages:
    12
    Occupation:
    Embedded software engineer
    Location:
    Paris
    Balance:
    236Coins
    Ratings:
    +0 / 0 / -0
    Hi !

    I think I've found my probleme. The MAX232 seems to be broken.

    When I connect pin 7 and 8, I can see the character I write on the hyperterminal (it prouves that the char is send and receive) but this operation doesn't work when I connect pin 9 and 10 (I've disconnect the RX cable before). So the MAX232 doesn't do its job.

    I've bought a new one. I'm waiting for it...
  19. Michael N.

    Michael N. Member

    Joined:
    Dec 27, 2007
    Messages:
    274
    Location:
    Germany, NRW, Düren
    Balance:
    611Coins
    Ratings:
    +5 / 0 / -0
    Yes :clap: ,
    it works. I could program the ATmega644P with a another Version of Ponyprog that support the Atmega644P Chip.
    You can find that Version here. http://www.mikrocontroller.net/topic/94482 Look at the third last Post from DirkG (16.11.2008 22:05) ;)
  20. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    Thanks Michael for sharing! I'm glad we found the solution! :D