Tronic's AMC motor motion-controller with pwm/servo outputBEWARE: This version is obsolete now! You can find the new version of the AMC1.6USB here: http://www.x-sim.de/forum/blog.php?u=101&b=21.
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 softwarehttps://rapidshare.com/files/1960710485/AMC_DSMhb_Manual_Word_97-2003.pdfAVRmotioncontroller1_5_fix_pcb.gif
(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.
AVRmotionsimulatorcontroller1_5_aa.pdf
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:
avrmotioncontrollerparts1_5c.pdf
And here in text format only:
AVRmotioncontrollerpartlist1_5c.txt
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.
avr_controller_2_RVNV2_wiring.gif
--------------------------------------------------------------------------------
FIRMWARE 1.0This 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.
fmv1_joyr.JPG
fmv1_sfgt.JPG
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:
terminal.gif
Anyway you can read all about it in the manual I made for it:
PWM_AMC15_2DOF_v1_manual.pdf
And of course the firmware that cames in four files, each one for the crystal speed you are using:
PWM_AMC15_2DOF_v1 firmware.zip
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. ...
more ...Statistics : 1376 Replies || 423009 Views
Post by
tronicgr