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

    tronicgr

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

    Unfortunately they are not cheap... They said the can order them. For one piece they ask 35 euro, for six pieces 25 euro and as much pieces you order the prize is falling.

    I guess we have to arrange another order the get them from farnell.de ... :-(

    Regards, Thanos
  2. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,656
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,862Coins
    Ratings:
    +1,998 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    Hey Thanos,

    which one of the both IC´s you want? -32 or -22

    Two pieces? I will order them for you.

    regards René
  3. tronicgr

    tronicgr

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

    Thanks for the offer, but I decided to just use a Attiny2313 (that costs 1.5euro) to do the same job!!!

    Already builded the code for it in C and it has the exact same operation and resolution of 32bit!! Now building its layout... :D

    Regards, Thanos
  4. RoVoR

    RoVoR New Member

    Joined:
    Sep 12, 2007
    Messages:
    19
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    :( :( :( :nein: :nein: :nein: :( :( :(

    I've tested my pcb and my Power Led is dead.

    After investigating my board I noticed I soldered the leds the wrong way. After testing the leds, they are still working, I soldered them in the correct way but unfortunately the power led is still dead.

    Any suggestions............

    I'm so sad about this

    :( :( :(
  5. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    Have you checked your pcb while holding it against a strong light source? That way shortcuts can be seen best. Most time it it just a shortcut between the lines or soldering spots.
  6. RoVoR

    RoVoR New Member

    Joined:
    Sep 12, 2007
    Messages:
    19
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Thanx Ego,

    I will check it. I hope that's the problem.

    RoVoR
  7. RoVoR

    RoVoR New Member

    Joined:
    Sep 12, 2007
    Messages:
    19
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    :D :D :D :D :D :D :D :D :D

    Yeeeehhhhhoooooooo

    My pcb is working. Thanx To Ego. I double and triple and checked it again and again and checked it again and then i saw my lines were etched to much in some places.

    Now i will try to program it

    I'm so happy to see that power led burning

    :p :p :p :p
  8. tronicgr

    tronicgr

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

    Hi,

    I wanted to mention something about the overclocking I did on the Atmega8535...

    Atmel says that the ATMega8535 can be clocked with crystals up to 16Mhz safely. But I could not find then crystals to cooperate fine with RS232 serial operation near that value. The next best value to use is 18.4320MHz or 22,1184MHz. At the time I was developing it I choose to use the even bigger (but easier to find) 24MHz crystal.

    I made a little research around the Internet and found little projects that did so big overclocking up to 24Mhz! And I found out that a new batch of ATMega8535 that I purchased sometimes failed to be programmed with ponyprog in 24Mhz. The solution to this is to put a lower value crystal for the programming (for example a 10Mhz crystal) and then place the final 24Mhz crystal.

    I'm considering the possibility to compile some firmwares with lower crystal value of 18.4320MHz or 22,1184MHz in case some batches of the ATMega8535 cannot work properly on the extraordinary value of 24Mhz.

    Regards, Thanos
  9. tronicgr

    tronicgr

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

    Hi,

    I found some time during weekend to attach the AVR motion controller on the joyrider using the RNVN2 motor controller:

    joyrider_RNVN2_wiring_1.JPG joyrider_RNVN2_wiring_2.JPG

    But I noticed some strange behavior on the wiper motors, that I explain in Bug-Tracker:

    bugtracker/viewbug.php?b=12

    Regards, Thanos
  10. tronicgr

    tronicgr

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

    Hi,

    I received my new graphics LCD (128x64) with touchscreen and backlight! See how large it is:

    GLCD_128_64_model_YM12864C.jpg

    It can be great add on for the simulator as I could implement a graphical interface to control all the parameters of my AVR motion controller while playing! And since it has touchscreen no extra buttons needed! The way I see it I could use a second atmega that drives the GUI and reads the touchscreen, connected to the main avr motion controller with I2C...

    I could even use it to display other stuff like Gear number, Speed, or RPM maybe ;-)

    Any ideas?

    Regards, Thanos
  11. 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

    Would be cool to interface it with the profiler, in order to be possible to display DIY gauges.
    But imho virtual gauges have a low priority currently

    Your screen looks way more square than 128x64 !??

    regards
    Christian
  12. tronicgr

    tronicgr

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

    Yes, but If I fix it, that way, that retrieves the gauge data from AVR motion controller, it will be much faster! With profiler2 this would be piece of cake! :schreiben:

    Yes, its more quare than others that I've seen around...! Have a look on it, in operation:
    http://www.youtube.com/watch?v=Try15A7B-HE



    A friend ordered it for me, from here:
    http://cgi.ebay.es/Graphic-Touch-screen ... dZViewItem


    Regards, Thanos
  13. 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

    Thanks Tronic for all you do.

    I'm from the states and am ready to build your interface. I have a parts list from mouser.com and hopes its all their and correct. If any one else from the US has found a better source please, let me know. Sorry I couldn't figure out how to do an attatchment.

    Mouser #: 595-MAX232IDW
    Mfr. #: MAX232IDW
    Desc.: RS-232 Interface ICs Dual EIA-232 Driver
    $0.90 $1.80

    Mouser #: 526-NTE1951
    Mfr. #: NTE1951
    Desc.: replacement Voltage Regulators TO-220 +5V 1A VREG
    esc.: Hmer Part number.
    $4.31 $8.62

    Mouser #: 512-BC547BTAR
    Mfr. #: BC547BTAR
    Desc.: Small Signal Transistors NPN Si Transistor Epitaxial
    $0.04 $0.24

    Mouser #: 520-HCU2400-16X
    Mfr. #: ECS-240-16-4X
    Desc.: HC-49/U-S Microprocessor Crystals 24.0-MHz 16pF
    $0.53 $1.06

    Mouser #: 695-HCM49-102-U
    Mfr. #: HCM49 10.240MABJ-UT
    DCM49 SMD Crystals 10.240MHz 18pF HC49S SMD
    $0.83 $1.66

    Mouser #: 580-18103C
    Mfr. #: 18103C
    Desc.: Inductors Ax.LeadInduct.10
    $1.42 $4.26

    Mouser #: 81-PV37W103C01B00
    Mfr. #: PV37W103C01B00
    Desc.: Multi-Turn Potentiometer 10Kohms Sealed 6mm Square 12turn
    $1.84 $3.68

    Mouser #: 140-XRL16V1000-RC
    Mfr. #: 140-XRL16V1000-RC
    Desc.: Radial Electrolytic Capacitors 16V 1000uF 20%
    $0.23 $1.38

    Mouser #: 140-MLRL16V10-RC
    Mfr. #: 140-MLRL16V10-RC
    Desc.: 7mm Height Radial Electrolytic Capacitors 4X7MM 16V 10uF 20%
    $0.08 $0.16

    Mouser #: 140-L16V10-RC
    Mfr. #: 140-L16V10-RC
    Desc.: Ultra Miniature Radial Electrolytic Capacitors 4X5mm 16V 10
    $0.12 $0.24

    Mouser #: 140-XRL16V10-RC
    Mfr. #: 140-XRL16V10-RC
    Desc.: Radial Electrolytic Capacitors 16V 10uF 20%
    $0.06 $0.24

    Mouser #: 647-USA1C100MDD
    Mfr. #: USA1C100MDD
    Desc.: 7mm Radial Aluminum Electrolytic Capacitors 16V 10uF 4X7 20%Tol 1.5LS 85Deg
    $0.10 $0.40

    Mouser #: 80-C315C220K1G
    Mfr. #: C315C220K1G5TA
    Desc.: Conformally Coated Radial Ceramic Capacitors C315 22pF 100volts C0G 10%
    $0.18 $2.16

    Mouser #: 80-C322C122J5G
    Mfr. #: C322C122J5G5TA
    Desc.: Conformally Coated Radial Ceramic Capacitors 50volts 1200pF 5% C0G
    $0.33 $1.98

    Mouser #: 538-10-89-7121
    Mfr. #: 10-89-7121
    Desc.: C-Grid Connectors VERT BRKAWAY HDR 12P dual row, tin
    $0.88 $2.64

    Mouser #: 538-15-38-1024
    Mfr. #: 15-38-1024
    Desc.: SL Connectors SHUNT OPEN TOP 2P
    $0.16 $1.92

    Mouser #: 538-22-23-2031
    Mfr. #: 22-23-2031
    Desc.: .100 K.K. Connectors VERT PCB HDR 3P TIN FRICTION LOCK
    $0.33 $2.64

    Mouser #: 538-22-23-2081
    Mfr. #: 22-23-2081
    Desc.: .100 K.K. Connectors VERT PCB HDR 8P TIN FRICTION LOCK
    $0.74 $2.96

    Mouser #: 538-22-23-2101
    Mfr. #: 22-23-2101
    Desc.: .100 K.K. Connectors VERT PCB HDR 10P TIN FRICTION LOCK
    $0.82 $3.28

    Mouser #: 538-10-11-2033
    Mfr. #: 10-11-2033
    Desc.: .100 K.K. Connectors 3 POS TERM HOUSING
    $0.33 $2.64

    Mouser #: 538-10-11-2083
    Mfr. #: 10-11-2083
    Desc.: .100 K.K. Connectors 8CKT HOUSING
    $0.56 $2.24

    Mouser #: 538-10-11-2103
    Mfr. #: 10-11-2103
    Desc.: .100 K.K. Connectors 10P TERM HOUSING
    $0.71 $2.84

    Mouser #: 538-08-50-0005
    Mfr. #: 08-50-0005
    Desc.: .100 K.K. Connectors SOCKET 22-30AWG BULK high pressure
    $0.14 $29.40

    Mouser #: 590-512
    Mfr. #: 512
    Desc.: Copper Clad Boards SINGLE SIDED 6X9 COPPER CLAD 1/16
    $7.13 $14.26

    Mouser #: 611-BD04
    Mfr. #: BD04
    Desc.: DIP Switches STD PROFILE, 4 POS
    $1.27 $2.54

    Mouser #: 556-ATMEGA8535-16PU
    Mfr. #: ATMEGA8535-16PU
    Desc.: Microcontrollers - RISC 8kB Flash 0.5kB EEPROM 32 I/O Pins
    $4.64

    Mouser #: 78-1N5231B
    Mfr. #: 1N5231B-TR
    Desc.: Zener Diodes 5.1 Volt 0.5 Watt
    $0.04 $0.24

    Mouser #: 855-D2840-21
    Mfr. #: D2840-21
    Desc.: IC Sockets 40 PIN DIL IC SOCKET VERT PC TAIL
    $1.28 $2.56

    Mouser #: 30BJ250-4.7K
    Mfr. #: 30BJ250-4.7K
    Desc.: 1/4W 5% Carbon Composition Resistors 1/4W YW,PR,RD,GD
    $0.22 $1.32

    Mouser #: 30BJ250-39K
    Mfr. #: 30BJ250-39K
    Desc.: 1/4W 5% Carbon Composition Resistors 1/4W OR,WH,OR,GD
    $0.22 $0.44

    Mouser #: 30BJ250-15K
    Mfr. #: 30BJ250-15K
    Desc.: 1/4W 5% Carbon Composition Resistors 1/4W BR,GN,OR,GD
    $0.22 $0.44

    Mouser #: 30BJ250-10K
    Mfr. #: 30BJ250-10K
    Desc.: 1/4W 5% Carbon Composition Resistors 1/4W BR,BK,OR,GD
    $0.08 $8.00

    Mouser #: 30BJ250-1.0K
    Mfr. #: 30BJ250-1.0K
    Desc.: 1/4W 5% Carbon Composition Resistors 1/4W BR,BK,RD,GD
    $0.22 $0.44

    Mouser #: 30BJ250-470
    Mfr. #: 30BJ250-470
    Desc.: 1/4W 5% Carbon Composition Resistors 1/4W YW,PR,BR,GD
    $0.22 $0.44

    Mouser #: 30BJ250-220
    Mfr. #: 30BJ250-220
    Desc.: 1/4W 5% Carbon Composition Resistors 1/4W RD,RD,BR,GD
    100 Ships Now
    $0.08 $8.00

    Mouser #: 30BJ250-10
    Mfr. #: 30BJ250-10
    Desc.: 1/4W 5% Carbon Composition Resistors 1/4W BR,BK,BK,GD
    $0.22 $0.44

    Mouser #: 152-3409
    Mfr. #: 152-3409
    Desc.: D-Sub Connectors 9C R/A PCB RECPT
  14. 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 Jackel,

    Thanks for the part list. Would be great if you could make an excel sheet out of it? Quantity/Part/Supplier/Order#

    At the bottom of the posting form there are two tabs. An option tab, and besides an uploading tab. After uploading you can place the curser where you want the attachement to be placed in the text and press place in post. Thats all ;)

    regards
    Christian
  15. tronicgr

    tronicgr

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

    Hi Jackel,

    Thanks for the list, I will put it on a excel file later to be able to read it better.

    Regards, Thanos
  16. 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 will do that I love spread sheets
  17. 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 that list

    partslist.xls

    Please add to it. Its better to have one big order that have to wait for small ones
  18. tronicgr

    tronicgr

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

    Hi,

    I wanted to mention something important about the wiring between RNVN2 and my AVR motion controller.

    From the version 1.5 , I changed the pin outs of the molex headers by swaping the pins 7 and 8 to be easy to attach an IDC connector on the RNVN2 side using a flat ribbon cable.

    RNVN2_IDC_to_molex1.JPG
    RNVN2_IDC_to_molex2.JPG
    RNVN2_IDC_to_molex3.JPG

    Here is the pin definitions from the RNVN2 manual:

    CTRL (10PIN socket IDC)

    Pin 1 engine 1 IN 1
    Pin 2 engine 1 IN 2
    Pin 3 engine 2 IN 1
    Pin 4 engine 2 IN 2
    Pin 5 return signal of 0 to 2,5V Current measurement for engine 1
    Pin 6 Enable Motor1 (PWM)
    *Pin 7 return signal of 0 to 2,5V Current measurement for engine 2
    *Pin 8 Enable Motor2 (PWM)
    Pin 9 GND
    Pin 10 logic voltage 5V


    JP1 (10PIN socket SIP stripe)

    Pin1 motor1 IN1
    Pin2 motor1 IN2
    Pin3 motor2 IN1
    Pin4 motor2 IN2
    pin 5 Return signal of 0 to 2,5V current measurement for engine 1
    pin 6 engine 1 Enable (PWM)
    *pin 7 engine 2 Enable (PWM)
    *pin 8 return signal of 0 to 2,5V current measurement for engine 2
    pin 9 GND
    pin 10 logic voltage 5V

    I marked with * the swapped pins for each connector on the RNVN2!

    So be careful to swap the correct pins if you are going to connect it using the JP1 connector on the RNVN2 or else you will get no motion on the second motor!

    Regards, Thanos
  19. 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

    If I had known this before. I've soldered each wire manually to a male molex connector :)

    DSCF1974.jpg

    But I will solder your h-bridge anyway, as the RNVN2 does not seem to be good at all.

    regards
    Christian
  20. 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

    Which purpose have those DIP switches and which position should they have by default?

    regards
    Christian