Thanos AMC1.6 USB Motion Controller.
------------------------------------------------------------------------------------------------------------------------------------
The AMC1.5 AVR controller supports 2 full H-bridge PWM channels to drive the motors. The connections will be made in the same ports and its function will be selectable by dip switches.
The major features are:
- 10bit (1024) motor speed resolution
-2 actuators/motors support (in latest firmware 1.0)
-2 full PWM channels, 2 - 8bit pwm channels (Not implemented yet the extra channels lack of timers).
-4 potentiometer inputs (that sets the max travel angle and the proportional speed.)
-LCD support
MANUAL FOR AMC / DSMHb with X-simulator software
https://rapidshare.com/files/1960710485/AMC_DSMhb_Manual_Word_97-2003.pdf
(EDIT: I HAVE NEW IMPROVED PCB PLANS FOR THE AMC1.5 HERE: post7978.html#p7978 )
Below you can see the layout I made to be able to follow the RN-VN2 connection standards. PCB plans are included to built this board if you want. Over this layout I’ll add the rest software features to make it able to fit to every type of motion simulator. Other PWM motor controller can be used too since they use the same basic connections (PWM, Enable1, Enable2) just different layout of the connection stripe.
And here is only the bottom side layout:
avrmotionsimPCBbottom_only_1_5_a.pdf (100.25 KB)Here is the new part list for version 1.5 of the AVR controller PCB:
And here in text format only:
Notice: If you can't find the molex connectors or you found them in too high prize, you can use pairs of simple DIP pin headers in place of the base connector or to create the data cable between avr controller and RN-VN2 motor controller. But you have to be carefull about the orientation of the connection if you plug - unplug them often. One full set of molex connectors for an AVR controller PCB, costs around 3.30 euro (14 connectors, male/female)... at least, this prize I buy them localy in Greece...
--------------------------------------------------------------------------------
Some technical details about the AVR motion controller:
Motor 1,2 run on 9bit PWM on 23,47Khz (9bit = 512)
Motor 3,4 run on 8bit PWM on 23,47Khz (8bit =256) (not implemented)
Has 8 ADC channels with 10bit resolution (10bit=1024)
Actually I drive the motor on 10-bit resolution! 0-511 for one direction of the motor and 512-1023 for the other direction!!! Same double resolution is used for motors 3,4 (9-bit)!
--------------------------------------------------------------------------------
Here is a schematic on how to do wirings for two RN-VN2 controllers to support 4 motors in the future... Only the first header in used for now.
--------------------------------------------------------------------------------
FIRMWARE 1.0
This is the first official release v1.0. It replaces all the previous beta versions!
For this reason I included the code for the two motion styles (Joyrider & SimforceGT) in it, and made it selectable between them with a jumper.
But his isn't the only feature. I also decided to give to the users the ability to change the servo motor KP proportiality values thru simple terminal connection:
Anyway you can read all about it in the manual I made for it:
And of course the firmware that cames in four files, each one for the crystal speed you are using:
(20.38 KiB) Downloaded 4611 times
You can try using this interesting alternative firmware for AMC1.5:
Alternative software and firmware for the controller board AMC1.5
I connected a simple pot on directly on the motor axis and had enough precision on positioning without much ringing. So using multiturn pots is not always necessary.
You can connect two dual h-bridge motor controllers on it and control four motors but with a small restriction. The last two motor channels will run on 8bit PWM. This is a restriction of the Atmega8535, as it has only one 16bit timer that is shared on the channels for the two first motors. Anyway 8bit PWM isn’t that bad and can be used in heave or rotation that precision isn’t so critical.
Some description of the features of that Firmware v1.0 has:
-It uses only the first two motors for now: The pin header on the bottom (named rn-vn2) that can be connected to the JP1 header of an dual h-bridge motor controller.
-It uses only two the first two pots. Pot1 is position feedback for the motor1 and Pot2 is position feedback for the motor2.
-Don’t forget to align the position pots with the motor or the motion travel route to successfully have position feedback.
-When powered both motors should move to center position. If not immediately disconnect the power and reverse the motor +,- connections to turn to the opposite.
-It runs on serial speed of 115200 and you have to enter the setting of the following photo in the profiler USO to get it connected right:
The format of the output string is “AB~255~~y~~x~”
The ~255~ is there for compatibility reasons to be able to also test with Ian’s BFF 3DOF driver!!
Since the AVR controller has its own serial programmer included (ISP) you can use ponyprog to easily program the flash firmware on it and set the proper fuses for the crystal speed. You can see on the bottom of this post how you can use ponyprog.
I also developed the SimforceGT (frex-like) motion included in this version for Egoexpess and everyone else with simular motion cockpit!!!
Notice: This is a coupled motion version for two motors. Meaning the two motors are cooperate to lean to sides and back-forward.
Motor assignments are as follow:
Motor1 connection (on first DSMhb) is the right motor on the simulator.
Motor2 connection (also on first DSMhb) is the left motor on the simulator.
Again potentiometers are used for feedback on the motors: Motor1 --> Pot1 , Motor2 --> Pot2
The motion is limited in half for left-right as I reserved the rest motion capability for front-back motion!
--------------------------------------------------------------------------------
NOTICE TO ALL: This is still a BETA version and I’m not held responsible of any damage happens to your motors, simulator structure, you, etc. Use it on your own Risk!! You should know that motion simulators can be very dangerous if not handled with care!
--------------------------------------------------------------------------------
In case you don't know how to program the firmware on it, here is a small guide on how to use Ponyprog2000 to program the board:
Thanos_ponyprog_guide1_1.pdf (500.13 KB)--------------------------------------------------------------------------------
If you are looking for a suitable alternative of RN-VN2 you can use this:
"Part#0708, Dual VNH2SP30 motor driver carrier"
http://www.pololu.com/products/pololu/0707/
And here is a schematic of the wirings you need to do to use the Polulu motor driver:
Its Yobuddy's design with a minor fixes on the pots connection.
--------------------------------------------------------------------------------
Another solution instead of buying a ready commercial motor controller is to make yourself the H-bridges to fit them on the amp/voltage rate of your motors. Then you can build this DIY Dual simple H-bridge motor controller!
You can learn more about it here:
http://www.x-simulator.de/forum/tronic-s-diy-dual-mosfet-h-bridge-t820.html
--------------------------------------------------------------------------------
I decided to make some video guides to help people understand the basics about my AVR motion controller.
I have made four video parts so far, that shows the cable connections, the ponyprog programming procedure, and the connection with x-sim software.
Here is the link to download all these videos:
http://rapidshare.com/files/106829488/AMC_video_guides_parts1_to_4.zip
---------------------------------------------------------------------------------------------------------------
Take a look a the following thread!!!!
Here is a some help for people that already have the old now AMC1.5 board and face problems with programming it or have serial communication problems: amc-1-5-missing-device-or-unknown-device-24-t1390-30.html#p38437
Thanos
----------------------------------------------------------------------------------------------------------------
some useful links:
http://www.x-simulator.de/forum/viewtopic.php?f=25&t=559&p=6138&hilit=multiturn+pot#p6138
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-620.html#p14488
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-630.html
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-510.html#p11967
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-510.html#p12154
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-430.html#p9780
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-420.html#p9129
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-420.html#p9258
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-410.html#p9045
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-370.html#p8922
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-360.html#p8644
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-330.html#p8163
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-320.html#p7978
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-290.html#p7350
http://www.x-simulator.de/forum/tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559-170.html#p6138
http://www.x-simulator.de/forum/tronic-s-full-motion-car-racing-simulator-using-x-sim-t471-20.html#p10318

)
Germany - Frankfurt/M

