Go Back   VEX Forum > Official Technical Support > UNOFFICIAL Tech Support - Ask the Community!

UNOFFICIAL Tech Support - Ask the Community! Community Members can provide UNOFFICIAL answers to Tech Support Questions.

Thread Tools
Old 04-12-2012, 09:23 AM
Quazar's Avatar
Quazar Quazar is offline
Senior Member
Join Date: Aug 2007
Location: SF Bay Area
Posts: 1,233
Images: 16
Re: Question about controlling 9 motors

Originally Posted by jgraber View Post
For using two (or more) PICS, you can connect serial ports.
If you want to do this, here is a diagram for the needed cables.

- Dean
Reply With Quote
Old 04-15-2012, 12:03 AM
Ali Ali is offline
Junior Member
Join Date: Apr 2012
Posts: 3
Re: Question about controlling 9 motors

Thank you everyone for all your help.
I was afraid you were a middle-schooler in way over your head, but it looks like you are well on your way, and new we have a much better idea of your capabilities. Is this for a senior project or something?
Yes itís my universityís final year project. My team mate is working on software simulation and Iím working on hardware.
Which joints are motors and which are servos?
The upper two are servos and the lowest is motor. However I might make the lowest servo because with the code Iíve written, I can increase my servoís speed which can help in a jerk motion of the lowest joint to push the body up, whereas my PID control code of motor might not provide the speed I require.
Any problems with the servos being strong enough?
Since I havenít fitted a battery to the body, the servo can manage the weight. They waver a bit but their performance will improve after I add the knee joint
An alternate idea is to have the second PIC sensor wires jumpered to the first PIC digital outputs, and run your own protocol.
Some distributed systems that need synchronized movements (eg dynamixel servos) use either a low latency trigger signal to launch a previously-setup command, or run a time-synchronized clock on all distributed systems and schedule the motor commands for future times.
Yes I initially thought of that but then I thought it would be better if my main controller was able to control the movement of every motor instead of just controlling protocols.

Do you use http://en.wikipedia.org/wiki/Inverse_kinematics methodology,
with an internal model of the physical balancing point?
Or emperical recorded movements?
Or force-sensors feet to know when one foot is nearly free?
I intend to use inverse kinematics but if I want my robot to walk on uneven terrain then I might need to have a switch attached to the foot to know when it is on the floor.

MPLAB ( if you want ) and mcc18 v2.40 SE is the version you need....

You might want to investigate my contribution to Vex:

Vex On-Line Controller Code v2.x (Available Source Version 0.80 Beta)


Vex Serial Port Reader 0.81Ŗ (VEX On-Line Code Version)
Thanks a lot! I spent a week trying to find a compatible mplab and c18 version. Now my test programming is not giving compiling errors and if mplab works, Iíll translate all my easyc code into mplab code on monday.
If you want to do this, here is a diagram for the needed cables.
Iíll try this in the coming week.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -6. The time now is 09:15 AM.

VEX and VEX Robotics are trademarks or service marks of Innovation First International, Inc.
Copyright © 2002-2015. All Rights Reserved. VEX Robotics, Inc. is a subsidiary of Innovation First International, Inc.
All other product names/marks of others are the property of their respective owners.
Patents and/or Patents Pending: innovationfirst.com/patents