using a master/slave approach, which is the easiest, then anything goes.
If you want high speed then you can put the second ooPIC on the I2C
bus to access it like a 256 byte EEPROM with the oI2C object. I don't
recommend oDDElink for high speed because it is pretty slow. If you
don't need to worry about an outside link, then you can connect them
together using oSerial and have the master use SCP to talk to/control
the slave unit. This latter way is the fastest and simplest way to go i
think. If you want higher speed then you can define an 8bit "mailbox"
and some control lines to control the flow and direction of data, but
this is IO intensive and uses a lot of IO lines. The serial port way is
the simplest, followed by the oI2C way, then a custom serial driver (I
don't recommend this) then oDDElink, at the bottom of my list.
DLC
red71956 wrote:
> I have 2 Oopic Rs and I want to find out the best way to use both of
> them in an autonomous robot. I'm 'fairly' comfortable with using one,
> but the magic '86 bytes' limits how many sensors, servos etc. can be
> controlled simultaneously.
> I thought that basically using one for motor control and navigation,
> and the other for extra sensors etc. (LCD, lasers, LEDs, compass,
> alcohol sensors) might be the best, but I bow to the combined wisdom
> of this forum.
> I think using I2C for communication between them is the right method
> (as per manual and docs) but I'm kind of hazy on the particulars in
> spite of the examples available.
> Could someone with a larger brain outline, in block format, the
> easiest/most useful methodology for this? I can fill in the code
> specifics (the fun part!) myself, but some direction and advice would
> be greatly appreciated. I don't want to waste hours (days?) on code
> only to find a simpler solution exists somewhere else.
>
> Something like:
> {Oopic 1 code - controls motors/nav}
>
> Interface code between Oopics
>
> {Oopic 2 code - sensors and whatever else can be wedged in}
>
> Am I ANYWHERE near a workable solution?
>
> Thanks in advance!
>
>
>
>
> Yahoo! Groups Links
>
>
>
--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment