Open the X-Sim notifier or download it!
motion simulator DIY community Follow us on  Twitter Add to iGoogle
motion simulator DIY community

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

Aufbau, Betrieb, Reparatur und der Entwicklung von Kontrollern oder sonstiger externer Hardware - Assembly, handling, repair and construction of controllers or external hardware.

Moderator: egoexpress

on 12.01.2010, 23:39

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

New postby Frakk on 12.01.2010, 23:39

About the servos, it doesn't matter what kind of servo you get, as long as it fits your needs (speed, torque). X-Sim doesn't control the servos directly, there is a plugin that uses the soundcard to control them with extra circuitry. Search in the forums. The AMC can control the servos as well, you will have to look into the manual/firmware, I haven't used it before. Signal voltage can be 4-6V I think, even more, depending on the servo. Note that you cannot measure the pulse peak voltage with a voltage meter.

Johan, for now your best bet is to use a potentiometer if you can't do it with the hall sensor. To the best of my knowledge the hall sensor senses the magnetic flux and outputs an analog voltage depending on it's strength, which depends on the angle. Since the magnet has 2 poles, you will have a sine-wave output from the sensor as the magnet rotates. There will be 2 peaks of voltage in every rotation (if the sensor measures only absolute magnetic flux and not + and - ) This leads to the result that 180degs of movement will be your maximum range if you use the ADC directly.

I have two optical encoders hacked from an old ball mouse that I have been experimenting with. I cannot seem to have clean edges from the transistor outputs, only if I use a schmitt trigger, and even then I have to be very picky about my resistors. Without clean edges the whole thing just goes crazy and the firmware just gives me random results. Thanos is working on it as well but he has other things to take care of for now, so don't expect any updates. I will try to make these encoders work without additional IC's just some resistors and 2 transistors. After that the programming can begin to interpret the grey-code.

Adam.
User avatar
Frakk
X-SIMER
 
Posts: 607
Joined: 15.04.2009, 19:57
Local time: 06.09.2010, 22:49
Obtained thanks: 100
The following user would like to thank Frakk for this post
ne02005


on 13.01.2010, 11:26

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

New postby watkykjy on 13.01.2010, 11:26

Thank you very much for the reply Adam, at least this gives me enough information to make an informed decision as to where we need to go to for now. I am however very much looking forward to hearing any updates if and when you come right with the optical encoders, as I think that this will be the way of the future for our AMC :)

But for now I will fall back to the pots and get the proper gear ratio's etc to use them in that fashion.

Thank you very much again, I appreciate your help mate!

Cherio

Johan
watkykjy
full member
 
Posts: 30
Joined: 29.11.2009, 18:02
Local time: 07.09.2010, 03:49
Obtained thanks: 1 time


on 14.01.2010, 00:20

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

New postby Fuzzz on 14.01.2010, 00:20

Hello,
I discover this website and i will try to build a 2DOF motion
I see that thanos wants to propose pre-programmed kits ready to use
I'm very interested if it's possible.
I need to find a company that could make the card for me, i have an idea for this.
Regards
Guillaume
Fuzzz
new member
 
Posts: 1
Joined: 13.01.2010, 19:12
Local time: 07.09.2010, 02:49
Obtained thanks: 0 time


on 14.01.2010, 11:01

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

New postby dutch_anykey on 14.01.2010, 11:01

Hi,

To Tronicgr:

Regarding the 24 mhz mistery. Can it be that a wrong xtal is used? I got this problem in another projekt where a xtal had to drive a pic i.c.w. usb chip for a DMX ligtning controller. When using a "oberton" xtal, it uses harmonics 3-5-7. When using a "grundton" xtal is will have the proper freq. Translated from german to english,"grundton" would be fundemental and "oberton" would be overtone.
So I think that you would have to look for fundamental or "grundton" Quarz. For the DMX projekt only smd quarz was availlable at reichelt, but worked like a charm. At that time I know there was a lot of fuss in the projekt from people using the wrong xtal.

But now for my problem lol. I want to order a atmega 644 from reichelt. But I have the choice between these models:

Would any of these work? I have to be honest and tell you that I really didnt invetigate the differences of these chips.

ATMEGA 644-20 PU ATMega AVR-RISC-Controller
ATMEGA 644-20 AU ATMega AVR-RISC-Controller
ATMEGA 644V-10AU ATMega AVR-RISC-Controller
ATMEGA 644V-10PU ATMega AVR-RISC-Controller
ATMEGA 644P-20PU ATMega AVR-RISC-Controller
ATMEGA 644V-10MU ATMega AVR-RISC-Controller


kind regards,
Maurice


edit: for reference, i'm talking about this quarz:
http://www.reichelt.de/?ACTION=3;ARTICL ... ROVID=2402
dutch_anykey
new member
 
Posts: 6
Joined: 22.11.2009, 15:53
Local time: 07.09.2010, 03:49
Obtained thanks: 0 time


on 18.01.2010, 03:47

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

New postby monast on 18.01.2010, 03:47

Hi Guys and Master Thanos, good year!!
Thanos, I had a lot of work and now I have time for my Bike simulator,
Its circuit 0-10V proportional valve works well but the output voltage range is 1,03-9,8 V and 5.95 V in the center for this reason the valve does not work well in positioning, how could we improve for get in the middle 5V (+ -0.1) and in the end 0V instead of 1.03?
I Food with 19V signal because I have 2 valves, one at each output
Attach file

If you can help me and fix this, soon I will send video with 2 AVR Thanos and 4 proportional valves running simultaneously in my SIM BIKE, spectacular, we are having good progress!

Thanks a lot from Barcelona!!
Monast :(
User avatar
monast
full member
 
Posts: 35
Joined: 24.01.2008, 19:40
Location:Spain Barcelona (Spain)
Local time: 07.09.2010, 03:49
Obtained thanks: 9


on 21.01.2010, 12:10

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

New postby tronicgr on 21.01.2010, 12:10

Hi Monast,

I dont have my lab available at the moment to fix that for you. All my equipment is packed up right now. I'm trying to get a place with more space... among other issues... :-(

One way to overcome your problem is to use a negative voltage on the ground connection of the valve driving circuit (perhaps something like -1.03v ). PC power supplies can provide a negative power source like that which is either -5v or -11v.

Regards, Thanos
User avatar
tronicgr
X-SIM developer
 
Posts: 1241
Joined: 11.05.2007, 17:33
Location:Greece Greece, Athens
Local time: 07.09.2010, 05:49
Obtained thanks: 274


on 24.01.2010, 17:40

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

New postby rappa on 24.01.2010, 17:40

hello thanos,

I was wondering if this module (http://cgi.ebay.es/PC-USB-Port-RS232-TT ... 2304f67208) gives to replace the max 232 and connect it directly to the atmega?

thanks
Rappa
rappa
full member
 
Posts: 17
Joined: 09.06.2009, 16:46
Location:Portugal Portugal
Local time: 07.09.2010, 04:49
Obtained thanks: 3


on 24.01.2010, 17:54

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

New postby Frakk on 24.01.2010, 17:54

Yes, it will work. You will need drivers for the virtual COM port.
User avatar
Frakk
X-SIMER
 
Posts: 607
Joined: 15.04.2009, 19:57
Local time: 06.09.2010, 22:49
Obtained thanks: 100
The following user would like to thank Frakk for this post
rappa


on 24.01.2010, 18:50

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

New postby rappa on 24.01.2010, 18:50

but can i connect it directly on the atmega? where i can find the driver?

thanks
Rappa
rappa
full member
 
Posts: 17
Joined: 09.06.2009, 16:46
Location:Portugal Portugal
Local time: 07.09.2010, 04:49
Obtained thanks: 3


on 24.01.2010, 22:34

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

New postby tetesim on 24.01.2010, 22:34

Hi Thano

I have your controller with the old micro 8535 , I desire to put the 644 ; You have talk about a kit with 644 preprogrammed ! Is ready to buy ? how much ?

regards stefano
tetesim
full member
 
Posts: 37
Joined: 07.01.2009, 15:36
Local time: 07.09.2010, 03:49
Obtained thanks: 0 time


PreviousNext

Similar topics

Return to X-Sim compatible hardware


Social Bookmarking
Bookmark bei: Mr. Wong Bookmark bei: Del.icio.us Bookmark bei: Webnews Bookmark bei: Icio Bookmark bei: Oneview Bookmark bei: Linkarena Bookmark bei: Newskick Bookmark bei: Folkd Bookmark bei: Yigg Bookmark bei: Digg Bookmark bei: Reddit Bookmark bei: Simpy Bookmark bei: StumbleUpon Bookmark bei: Slashdot Bookmark bei: Netscape Bookmark bei: Furl Bookmark bei: Yahoo Bookmark bei: Spurl Bookmark bei: Google Bookmark bei: Blinklist Bookmark bei: Blogmarks Bookmark bei: Diigo Bookmark bei: Technorati Bookmark bei: Newsvine Bookmark bei: Blinkbits Bookmark bei: Ma.Gnolia Bookmark bei: Smarking Bookmark bei: Netvouz

Who is online

Users browsing this forum: No registered users and 0 guests