Difference between revisions of "RC08MicroController"
(→Selecting a Micro-controller) |
|||
Line 1: | Line 1: | ||
The heart of the on-robot electrical system is the micro-controller. It is the central point from which commands are received from the wireless system, interpreted, and sent to the peripherals. Just as in 2007, an ARM based micro-controller is used in 2008, but unlike in 2007 the micro-controller will not be the sole device for all of the computational task. This year some tasks such as reading encoders are handled by a Field Programmable Gate Array (FPGA). The micro-controller will still have the task of decoding packets, interpreting them, and executing commands. Since the wireless system will be a two-way protocol the micro-controller will also monitor and report the status information for the robot such as battery health, kicker charge, ball presence, and errors. | The heart of the on-robot electrical system is the micro-controller. It is the central point from which commands are received from the wireless system, interpreted, and sent to the peripherals. Just as in 2007, an ARM based micro-controller is used in 2008, but unlike in 2007 the micro-controller will not be the sole device for all of the computational task. This year some tasks such as reading encoders are handled by a Field Programmable Gate Array (FPGA). The micro-controller will still have the task of decoding packets, interpreting them, and executing commands. Since the wireless system will be a two-way protocol the micro-controller will also monitor and report the status information for the robot such as battery health, kicker charge, ball presence, and errors. | ||
+ | ===Previous Results=== | ||
+ | In 2007 the LPC2138 was chosen due its high computing power for its price. An 8 or 16-bit micro-controller could have been used but since the LPC2138 was about the same price as these chips it was felt that the extra dollar or two in price was well worth double or triple the power. Also, other concerns, such as current draw, were not considered enough to warrant use of a less powerful chip. In terms of overall performance, though no measurements were made, it was generally agreed that the firmware used on the LPC had plenty of headroom in terms of processing power and code space. The only concern came when encoders were considered for the design and it was found that there were not enough I/O pins vectored to interrupts. Also, there was little I/O left when the design was complete as every available pin was used. | ||
===Selecting a Micro-controller=== | ===Selecting a Micro-controller=== | ||
− | Even though the LPC2138 proved to have good performance for a relatively chip price other, similar controllers were | + | Even though the LPC2138 proved to have good performance for a relatively chip price other, similar controllers will be evaluated for 2008. This year there is an even stronger justification for using a 32-bit processor. For one, there will be 4 PID loops for feedback control on the motors. Based on the calculations done [[RC08Brushless here]] the sampling rate of this controller will need to be XX. Since a clock speed of about XX is needed to meet that spec its far better to continue to use a 32-bit processor instead of finding a suitable 8 or 16-bit controller. Other factors such as the overhead of the wireless protocol also play a part in using 32-bit processors over 8 or 16-bit. |
+ | |||
+ | One of there areas were it seemed the LPC lacked was number of I/O. Though the I/O crunch wasn't a problem last year and likely won't be this year it is still comforting to have a good variety of I/O in case specifications change. | ||
==Tasks== | ==Tasks== |
Revision as of 18:28, 26 September 2007
The heart of the on-robot electrical system is the micro-controller. It is the central point from which commands are received from the wireless system, interpreted, and sent to the peripherals. Just as in 2007, an ARM based micro-controller is used in 2008, but unlike in 2007 the micro-controller will not be the sole device for all of the computational task. This year some tasks such as reading encoders are handled by a Field Programmable Gate Array (FPGA). The micro-controller will still have the task of decoding packets, interpreting them, and executing commands. Since the wireless system will be a two-way protocol the micro-controller will also monitor and report the status information for the robot such as battery health, kicker charge, ball presence, and errors.
Contents
Previous Results
In 2007 the LPC2138 was chosen due its high computing power for its price. An 8 or 16-bit micro-controller could have been used but since the LPC2138 was about the same price as these chips it was felt that the extra dollar or two in price was well worth double or triple the power. Also, other concerns, such as current draw, were not considered enough to warrant use of a less powerful chip. In terms of overall performance, though no measurements were made, it was generally agreed that the firmware used on the LPC had plenty of headroom in terms of processing power and code space. The only concern came when encoders were considered for the design and it was found that there were not enough I/O pins vectored to interrupts. Also, there was little I/O left when the design was complete as every available pin was used.
Selecting a Micro-controller
Even though the LPC2138 proved to have good performance for a relatively chip price other, similar controllers will be evaluated for 2008. This year there is an even stronger justification for using a 32-bit processor. For one, there will be 4 PID loops for feedback control on the motors. Based on the calculations done RC08Brushless here the sampling rate of this controller will need to be XX. Since a clock speed of about XX is needed to meet that spec its far better to continue to use a 32-bit processor instead of finding a suitable 8 or 16-bit controller. Other factors such as the overhead of the wireless protocol also play a part in using 32-bit processors over 8 or 16-bit.
One of there areas were it seemed the LPC lacked was number of I/O. Though the I/O crunch wasn't a problem last year and likely won't be this year it is still comforting to have a good variety of I/O in case specifications change.
Tasks
- [ ] Generate an I/O spec
- [ ] This means we have to wait until all the other systems are fully spec'd and ready for design
- [ ] Find a part
- [ ] Evaluate based on number and type of I/O, availability of dev tools in linux, support in general community
package size, current and voltage characteristics, and cost.
- [ ] Purchase and begin development with a dev kit
- [ ] Spec and find the support hardware. (Oscillator, LEDs, switches, etc.)
- [ ] Schematic design
- [ ] Fabricate demo
- [ ] Implement wireless protocol in firmware
- [ ] Build base station using dev kit
- [ ] Build remote control.
- [ ] Implement closed-loop motor control in firmware
Specifications
Micro-Controller
- Serial Programable/Or Mini-JTAG
- 3.3V power
- At least 3 timers
- I/O list
- Matrix of Potential Microcontrollers
Schematics
Schematics
Parts
Micro-Controller
Quick Specs
Data Sheet
Articles
Links