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

    jackel5252 New Member

    Joined:
    Jan 16, 2008
    Messages:
    9
    Occupation:
    Locomotive Mechanic, IT Tech for the Civil Air Pat
    Location:
    Fremont Nebraska USA
    Balance:
    389Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Here is an updated list with the H-Bridge from mouser.com and newark.com

    let me know if I forgot something

    Thanks
    Matt

    Attached Files:

  2. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input


    Hi Matt

    These parts are not suitable for PCB thru hole mounting:

    DSMhb (Hbridge):
    MM74HC08MX (SMD...) PDIP type is needed
    70543-0038 (WRONG type...)


    AVR motion controller:
    MAX232IDW (SOIC-16 Wide...) PDIP type is needed
    695-HCM49-102-U (SMD...)

    I checked my hbridge part list and found that I was made a typo error. The 2.5Kohm resistor is actually 1.5Kohm!!! On the silk layer is displayed the correct value! Sorry...

    And its better to use 1N5819 as I did, that can handle even bigger voltage (40Volt!!)

    If its possible you should order all the resistors to be with 1% presicion (not 5%) especially for the H-bridge that is an analog part and much depends from the resistors values!!


    Another thing, is about Molex parts, I've seen that they sell the metal pin parts of them too high price on your list, you have 210 of this metal pin part that from a quick calculation I got the result 29,4$ !!! They are expensive! I suggest you to just use simple male SIP rows on the PCB (cut them to the size you want) and make the connection cables using their female SIP connectors soldered on a normal flat stripe ribbon cable! See photos:

    Ribbon_cable_SIP_1.JPG
    Ribbon_cable_SIP_2.JPG

    And you choosed a different P-channel mosfet? I'll have to see if its compatible with IRF4905!

    Regards, Thanos
  3. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    I'll use them in future firmwares to let the user set various settings. :schreiben:

    Not used yet, but better set them to value 0 to prevent them interfere with ISP ponyprog firmware programming...

    Regards,
    Thanos
  4. jackel5252

    jackel5252 New Member

    Joined:
    Jan 16, 2008
    Messages:
    9
    Occupation:
    Locomotive Mechanic, IT Tech for the Civil Air Pat
    Location:
    Fremont Nebraska USA
    Balance:
    389Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    I have made the changes to the avr and switched distributors and let me know what you think some of the manufactures I didnt change but the same part

    Attached Files:

  5. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input


    Hi Matt,

    It looks good.

    Just search for another part in place of 13J1657, as it is SMD type and not usable to us.

    Regards, Thanos
  6. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi Matt,

    You seem to forgot to add the 100nF/100volts Capacitors (they write on them 104) on both part lists! :!:

    Regards, Thanos
  7. jackel5252

    jackel5252 New Member

    Joined:
    Jan 16, 2008
    Messages:
    9
    Occupation:
    Locomotive Mechanic, IT Tech for the Civil Air Pat
    Location:
    Fremont Nebraska USA
    Balance:
    389Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    I have made the changes to the list

    Thanks for everyone's input
    Thanks Tronic for all you do

    Attached Files:

  8. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi,

    I also updated the partlist here on the first post. Added some missing parts, and the Photo partlist is updated with new correct pics now.

    I will add some new firmware soon based on lower crystal clocks and possibly with 3 DOF support. I measured the code cycle of the PWMBeta001 firmware to be 307hz (307 times per second!!!!!)
    According to this site (http://www.sengpielaudio.com/calculator-period.htm) the period is 3.257ms !!!

    Already implemented a 6DOF firmware that outputs in 6 simple RC servos (fully tested) in a code cycle rate of 46Khz!!!!! (or in plain words 46000 times per second)!!! The period here is the extraordinary value of 0.0217ms or else 21.7us!!!

    Can't wait to see the code cycle rate of a PWM 6DOF firmware on a Atmega644... ;-)

    Regards, Thanos
  9. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi,

    I got several complains that there was problem with communication of the AMC (Avr Motion controller 1.5) with USO. So I made a one by one compare of my prototype AMC with the plans I gave... Guess what... I found that I gave wrong value to one resistor... It supposed to be 270 Ohm, while I gave a 220 Ohm value for it on the PDF plans and the Part list...

    Here is the resistor that causes the problems and need to be changed with a 270 Ohm!

    avrpcb15_serial_problems_fix.gif


    I wish I had seen it before, but I when I used this resistor on my prototype PCB I had it in bag marked as 220 Ohm... So during checking it again now I noticed the different color stripes on it and measuring it with a multimeter ended up to be a 270 Ohm :-( I still can't believe that this 50 Ohm difference is so critical!

    I Updated the PDF plans on the first post and I'll fix the part list too later.

    Sorry for the inconvenience! Its under beta yet after all!

    Regards, Thanos
  10. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Its a pity that I've sent you my interface yesterday.
    Dont mind. Now I've waited so long to move my sim, now some days more wont make a difference anymore :)

    I just have been wondering how I could have made a mistake. Just some res and caps, and all critical parts socketed and I was not able to establish an USO connection :jinx:

    regards
    Chrisitan
  11. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi, Christian,

    Yes, I hope that this was the last bug ... I want to move on to the 6 DOF AVR ultimate motion controller and these kind of problems just keep me back, trying to find solutions...
    :sos:


    Anyway, I have ready the 6DOF firmware for six simple RC servos in case Sirnoname interested to built a small prototype rig for testing his new Profiler2... The same firmware is now using John (planmix) for his 6DOF motion software for FSX!
    :yippiee:

    http://www.youtube.com/watch?v=XascejIH62s

    The 6DOF RC servo firmware can be used with the last AVR motion controller v1.5 but with a smaller crystal of 22,1184 Mhz (22.118.400 hz). No mixing is done in it and every axis motion is independent from the others.

    115KRC6DOF001.zip

    As I have said before the coderound cycle is 46Khz (checks the USO 46000 times per second) with period of 0.0217ms or else 21.7us, uses 115Kbps serial speed and the USO string that commands it could be:

    AB~1~~2~~3~~4~~5~~6~

    where the 1,2,3,4,5 and 6 numbers represent the six axis.

    For the test that each axis was reading ok with the current Profiler 1.6.9 , I used this string: AB~x~~y~~x~~y~~x~~y~

    EDIT: To connect the six servos I used the four servo ports of the AVR montion controller v1.5 for servos 1-4 and the ADC ports 7 & 8 for the 5-6 servos!

    Regards, Thanos
  12. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi,

    As I had many requests that it was not easy find all the info I gave about my electronics, I decided to collect them all in a single zip file that is easy to download... :thbup:

    http://ptyxiouxos.net//greekbotics/user_projects/Flight_Simulator/AMC1_5_DSMhb1_2.zip

    I hope that will help many people... Later I might compile a Html guide thru all these files to also use on my website.

    Regards, Thanos
  13. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi,

    It will be not much time before we will see some motion sim cockpits fully working and interfaced with my AVR electronics!
    I almost feel shy that I had not much time to put all the parts together and use them on my joyrider first. :blush: Any time I wanted to focus and finish it, something new was getting in the way...

    One of them, that have all ready, is Erich, that he kindly send me some photos of his boards!

    4AMC1_5_FullyWired.JPG

    8

    9

    His motion sim is a 2DOF joyrider-like cockpit but with all-metal welded frame! I hope that we will have video from it in action soon! At least sooner from mine... :)

    Thanks Erich! :cheers:

    Regards, Thanos

    Attached Files:

  14. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi,

    After general request for PDF PCB layouts that are placed in single page, I made single pdf layouts for some of my boards:

    avr_motion_sim_PCB_single_1_5.pdf
    avr_motion_sim_PCB_bottom_single_1_5.pdf
    avr_motion_sim_PCB_bottom_single_1_5_filled_ground.pdf

    And the PWM signal to simple h-bridge inputs converter:
    Dual_PWM_to_simple_hbridge_v1.pdf
    Dual_PWM_to_simple_hbridge_v1_bottom.pdf

    Also included Top and Silk layer for reference reasons only. Use only the PDF that is marked as bottom to send to the etching service.

    Thanks,

    Regards, Thanos
  15. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi

    I had the chance to test personally Egoexpress's AVR motion controller and DSMhb boards and here are some photos and video:

    http://www.youtube.com/watch?v=v3hJ30ixN0s


    PICT1680.JPG
    PICT1683.JPG

    PICT1662.JPG
    PICT1665.JPG
    PICT1670.JPG
    PICT1671.JPG
    PICT1672.JPG
    PICT1678.JPG

    Enjoy :cheers:

    Regards, Thanos
  16. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hi Thanos,

    your parcel arrived yesterday. I have been able to pick it up today. I'll try my best to set up the sim until tomorrow evening.

    Thanks alot!
    :skoal:

    Regards
    Christian
  17. 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
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Es geht los....
  18. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Just an uptdate.

    I had a little drawback. Today I noticed that the GND of the actuators pots have connection to the case. This causes some trouble. Now, I have to find a way to isolate the pots from the case.

    Just wanted to tell you guys that it is nothing caused by Thanos' brilliant interface. Its just my acutators! :jinx:

    Regards
    Christian
  19. Ferrari_Man

    Ferrari_Man Member Gold Contributor

    Joined:
    Jul 17, 2007
    Messages:
    107
    Location:
    Copenhagen
    Balance:
    - 5Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    SCN5, SimforceGT
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    Hey..

    Any news on the projekt, I am very interrested in hearing about it. Here are some picture of mine, its not finished but I hope to get the last parts monday or tursday.

    DSC_0242-1.JPG

    I also bought 3 motors and some pots... ( only need some gears for the pots )
  20. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Re: Tronic's PWM/servo control Interface with encoder/pot input

    HEY!!! Is this a mirrored photo or you have etched WRONG your PCB boards?????????? :eek:

    Thanos