There are 4 interesting instances in the chain of responsibility while controlling a single motor in a robot:
- Decision level. For example: "Go to the kitchen".
- Movement level. For example: "Move motor #5 to position 39.4%".
- Feedback level. For example: "Generate voltage equivalent to the distance between where I am and where I was told to be".
- Power level. For example: "Send lots of power to the motor when i get a tiny signal".
Different robots will disperse these 4 instances in different locations in the controlling logic. The most common way is to put decision and movement level stuff in the software and hardware of the main controller board, a.k.a. "main board", while leaving feedback and power to the internal circuitry of a servo motor.
Since DC motors and electrical components such as transistors and PIC controllers usually are much cheaper than integrated servo motors, especially for the larger ones, you can end up with a much cheaper and more flexible configuration by doing some work on your own. This might not be necessary if you just need a servo or two, but in my case, with a need for 18 or more large servos, there is merit to figuring out this on my own.
|Integrated servos both handle the feedback and the power instances.
So what is my approach? The decision and movement part will be handled by my RB-100 main board through software and the GPIO/I2C/SPI pins ( i havend decided which yet), while I will create my own circuitry for the feedback and power parts. This is my plan:
- 131:1 Metal Gearmotor 37Dx57L mm with 64 CPR Encoder running on 12VDC from pololu.com gives me both a strong motor with built in gear box, and the means to detect its position accurately using the built-in rotary encoder. I am not sure the gear ratio is sufficient, but it was the best they had.
- PCB photo etching kit
- PCB Schematics from a combination of sources such as openservo.com. Some useful links for a complete solution, making one on your own using a PIC, playing with H-bridges, info on PID algorithm, and some more H-bridge fun.
More on this once I get all the gear I just ordered...