Open latest posts
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.
on 05.08.2008, 09:30

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

Postby egoexpress on 05.08.2008, 09:30

I would be best to upload the video to youtube, and posting the link here in your project thread.

thanks
Christian

Edit:
What would the max file size be if set here?

250kb
Bigger files should be uploaded to online file-hosters like rapidshare, or similar for example.
Videos in general to a video-streaming service like youtube or similar. Preferable youtube, as youtube videos can be embedded in the posts.

Regards
Christian
User avatar
egoexpress
X-Sim Community Admin
 
Posts: 3851
Joined: 13.12.2006, 14:26
Location:Germany Germany - Frankfurt/M
Local time: 20.06.2013, 14:23
Obtained thanks: 287


on 05.08.2008, 11:43
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby tronicgr on 05.08.2008, 11:43

zaphod42 wrote:Thanos, I'm going to use the "receive complete interupt" generated from the first character 0x41 (A) , then check 0x42 (B) and 0xFF (255) then load 0xYY and 0xXX into somewhere usefull.

The force sender information says the data is sent every 32ms so I can't see any point of polling for data any quicker. It should only take 0.5ms for reception of 5 bytes @ 115kbps.

Can you see any problem useing interupts for data reception, the PWM's will be output compares and independant of program run speed?

Also how do you get more than 2 DOF (X/Y) data??

Zap.


Yes, you need interrupts for the serial port as well as a decent buffer to store them until you read them. I'm using 30bytes buffer just in case...

Well, the old profiler does send data every 32ms, but in the new X-Sim² Profiler you can define this 32ms pause to a lower one yourself:


In this screen you can also see that you can use as many DOF axis as you like!! (X,Y,Z,rX,rY,rZ etc...)

The UART is using interrupts to work but it won't affect the PWM as they use different clock source. And PWM will not stop running whatever is the load of the program code... Just be sure to update the PWM values as soon is possible!!

Regards, Thanos
User avatar
tronicgr
X-SIMER
 
Posts: 1482
Joined: 11.05.2007, 17:33
Local time: 20.06.2013, 04:23
Obtained thanks: 337


on 05.08.2008, 12:10
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby tronicgr on 05.08.2008, 12:10

R-eng wrote:@ Thanos...you the man!

Your firmware worked like a charm. I used the 18.432Mhz crystal to program, and it ran right away after flashing. I then did the pot-calibration to set for full read of 1023 at ~90'. It all functions correctly.

Thanks for your rapid response!

I will now test the DSMhb with a motor attached to see how well it performs, hopefully with no issues. Instead of the IRF4905LPBF Mosfet, I am using the supposedly equivalent STMicroelectronis STP80PF55 because it was the only version as a match from my source supplier Mouser Electronics. All specs seem ok, although your thoughts on this are welcome.

I also have the 22.1184Mhz and 24.0Mhz crystals to try, and would like to finalize on the 24. This is only a 20% overclock so it should be fine I would think. Additional firmware for them would be appreciated.

You may notice my controllers are slightly different. That is because I have used ExpressPCB before to design and manufacture pcb's, and since I had to draw the circuit anyhow, I "tweaked" the design, mainly visible on the DSMhb.

I will look forward to when you release firmware to support more axis. I want to implement a 3DOF design similar to the FD401. Although, my thoughts on the "yaw" motion will be a little different. For now, I will tap into the banking (lateral-g) axis and send it to a 3rd DSMhb. My vision is; I want to limit the "yaw" to rapid ~10cm movements (pivoting near the nose), per significant lateral-g increments, this to be followed by a washout. A total of 3 successive movements to the same direction would be allowed until maximum deflection of the platform is attained and no further movement to that direction would be allowed until one or more washouts (or opposite direction) create movement "space". I still am not set on how this will be controlled, but I am working on it. Any suggestions?

From this description you can surmise that my highly modified joyrider design, which for now I will refer to as thrillrider, is designed for racing simulation, and primarily my choice of Rfactor.

Regards, R-eng



Hi R-eng,

I'm happy that it works for you!

Here are the other firmware for 22.1184Mhz and 24.0Mhz crystal speeds:
ATMEGA644_PWM_AMC15_2DOF_V1_CRYSTAL22.zip
(5.23 KiB) Downloaded 385 times

ATMEGA644_PWM_AMC15_2DOF_V1_CRYSTAL24.zip
(5.23 KiB) Downloaded 336 times

Try them and tell me if you can reach 24Mhz speed without troubles...

I don't know if its wise to use STP80PF55 mosfets instead of IRF4905... In their datasheet I seen that IRF4905 can handle -74A (negative) while the STP80PF55 +80A (Positive) .... It might not work... In worst case you may blow up the mosfets... Testing will show you if it can be used after all. LOL

I already had my PCB's in ExpressPCB format, if you asked me I would give them to you and avoid the trouble of re-draw them yourself. The quality of your PCB's is awesome! Are they made from ExpressPCB etching service?

Also your Thrillrider looks awesome! Cool! You must relay on software to make those washout moves you mention. My electronics are used only for DC motor servo positioning at the moment! I'd like to see a video of it in motion!


Best Regards, Thanos
User avatar
tronicgr
X-SIMER
 
Posts: 1482
Joined: 11.05.2007, 17:33
Local time: 20.06.2013, 04:23
Obtained thanks: 337
The following user would like to thank tronicgr for this post
Briut


on 05.08.2008, 18:41
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby R-eng on 05.08.2008, 18:41

@ Thanos

I inserted the 24.0Mhz crystal and everything is functioning. I redid fuses, read/write hex files, and changed settings with HyperTerminal. No problems at all.

Changes on the pots were consistent and smooth. I'm a happy camper for now. Thanks!

Yes, the boards were made by ExpressPCB and the quality is great.

Ready for 3DOF, 3-motors, and paralleled DSMhb.

Regards, R-eng
Attachments
Last edited by R-eng on 07.08.2008, 07:22, edited 1 time in total.
R-eng
X-SIMER
 
Posts: 141
Joined: 04.08.2008, 12:19
Location:United States San Diego, CA, USA
Local time: 20.06.2013, 05:23
Obtained thanks: 97


on 06.08.2008, 00:30
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby tronicgr on 06.08.2008, 00:30

R-eng wrote:Yes, the boards were made by ExpressPCB and the quality is great.

Ready for 3DOF, 3-motors, and paralleled DSMhb.



Wow, nice boards indeed! :thbup: This is before you sliced it up?

Hey, can you share here the ExpressPCB files you made, so everyone that can affort to use this etching service, can order them from there? My expresspcb design seem too amateur, compared to yours, to post it here...!

Best Regards, Thanos
User avatar
tronicgr
X-SIMER
 
Posts: 1482
Joined: 11.05.2007, 17:33
Local time: 20.06.2013, 04:23
Obtained thanks: 337


on 06.08.2008, 05:15
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby zaphod42 on 06.08.2008, 05:15

Thanos, Thanks for the info , I've been useing x-simulator and never knew of the udate to x-Sim2. I learn something new every day. :bulboff:

In your controller do you use full PID control?? I am looking at only useing PD control algorythm as "intergral" is mainly used for steady state machines trying to maintain a constant output (sims don't do that by nature).

Your Thoughts?

Zap.
zaphod42
full member
 
Posts: 17
Joined: 21.09.2007, 11:36
Local time: 20.06.2013, 22:23
Obtained thanks: 1 time


on 06.08.2008, 14:08
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby lotada on 06.08.2008, 14:08

Hi please should you send me anybody picture of pcm in SPRINT, .lay i need it for one company which will make pcm for me.. ( controller v1.5) and (V1.2 for motor) and for lcd?BYE Mila
User avatar
lotada
full member
 
Posts: 41
Joined: 31.07.2008, 23:31
Location:Czech Republic Kralupy nad Vltavou
Local time: 20.06.2013, 14:23
Obtained thanks: 0 time


on 07.08.2008, 12:44
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby zaphod42 on 07.08.2008, 12:44

Thanos, Lotada ect: I've noticed some posts about feedback potentiometers.

What I've used on my first model motion sim ( made from lego) was potentiometers from an old PC game port joystick. Remember the old (In the days of XT & AT pc's) two button analog joysticks with the D15 conector.
They have two 60 deg potentiometers and can be used directly coupled to the sim pivot axle.
If your sim moves more than +/- 30 degrees then your in for one hell of a ride.

You can pick them up for next to no cost ( free most times) , from junk yards or swap meets / second hand shops.

Zap :cheers:
zaphod42
full member
 
Posts: 17
Joined: 21.09.2007, 11:36
Local time: 20.06.2013, 22:23
Obtained thanks: 1 time


on 07.08.2008, 15:17
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby lotada on 07.08.2008, 15:17

ÿeah of course you can give us any pcm layouts to upgrade all knew about motion simulators.. i need the pcm in Sprint .lay format. my controller is not working when cnnect it red LED anf green is still lighting only when i press alps button thered shut off but on lcd is nothink.. also my lcd donw want to light itis lcd with under light when i give the battery direct on contacts + - it lights bu form pcm nothink,, :-( i think i have to make the board again... :-(
User avatar
lotada
full member
 
Posts: 41
Joined: 31.07.2008, 23:31
Location:Czech Republic Kralupy nad Vltavou
Local time: 20.06.2013, 14:23
Obtained thanks: 0 time


on 07.08.2008, 18:49
Re: Tronic's AMC motor motion-controller with pwm/servo output

Postby R-eng on 07.08.2008, 18:49

lotada wrote:ÿeah of course you can give us any pcm layouts to upgrade all knew about motion simulators.. i need the pcm in Sprint .lay format...


@ lotada, If you need it so badly then just do it yourself like I did with ExpressPCB, or in your demand, Sprint.

lotada wrote:...my controller is not working when cnnect it red LED anf green is still lighting only when i press alps button thered shut off but on lcd is nothink.. also my lcd donw want to light itis lcd with under light when i give the battery direct on contacts + - it lights bu form pcm nothink,, :-( i think i have to make the board again... :-(


And you apparently did not read my first post on page.40 where I specifically mention your problem seems just like mine was...I inspected you board image and you can easily fix it, just like I did.

Go back, read, and learn!

R-eng
Last edited by R-eng on 07.08.2008, 19:08, edited 2 times in total.
R-eng
X-SIMER
 
Posts: 141
Joined: 04.08.2008, 12:19
Location:United States San Diego, CA, USA
Local time: 20.06.2013, 05:23
Obtained thanks: 97



PreviousNext

Similar topics

Return to X-Simulator compatible hardware


Add this Thread to:
Add this page to Mr. Wong Add this page to Del.icio.us Add this page to Webnews Add this page to Icio Add this page to Oneview Add this page to Linkarena Add this page to Newskick Add this page to Folkd Add this page to Yigg Add this page to Digg Add this page to Reddit Add this page to Simpy Add this page to StumbleUpon Add this page to Slashdot Add this page to Netscape Add this page to Furl Add this page to Yahoo Add this page to Spurl Add this page to Google Add this page to Blinklist Add this page to Blogmarks Add this page to Diigo Add this page to Technorati Add this page to Newsvine Add this page to Blinkbits Add this page to Ma.Gnolia Add this page to Smarking Add this page to Netvouz

Who is online

Users browsing this forum: No registered users and 2 guests

cron