Subject:
|
Building a peripheral bus from motor output
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 24 Aug 2001 20:58:51 GMT
|
Original-From:
|
Mark Crosbie <mcrosbie@happy.xkeyAVOIDSPAM.com>
|
Viewed:
|
762 times
|
| |
| |
Hi all,
I recently read an excellent paper by Fred Martin (of MIT fame) on building
toys in a modular fashion. His microcontroller was similar to the RCX but had
one key addition - a two wire serial bus so that active peripherals could be
attached and controlled.
I want to use a motor output to be the signal line - the 7 different motors
power levels would correspond to different PWM waveforms, which would be
decoded by the active peripherals and interpreted as values. A simple protocol
would be used on the wire: (command,value) pairs are sent at (say) 2400 baud,
with only the RCX as a master and all others as slaves, and each peripheral is
assigned a unique "bus id" between 1 and 7.
Has anyone attempted this before? I'm thinking of hooking my scope up to the
motor output to see the output waveforms and then building something on a PIC
to time the waveforms to compute a value in the range 1-7.
Ideas? Comments? Am I off the wall?
Mark.
PS: LEGO, if you're listening, please build a bus attachment into the RCX for
infinite expandability :-)
--
Mark Crosbie mark@mastincrosbie.com
Linux, Electronics and LEGO all at http://www.mastincrosbie.com/mark
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|