This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Sunday, September 30, 2007

Re: [oopic] Multiple while conditions

You can, but it can lead to confusing or unintentional circumstances -
Depending upon what exactly you want to happen.

DLC

jim_three_uk wrote:
> Hi,
>
> Is it possible to have a While loop execute until a number of
> conditions are true? I can't find reference to it in the manual.
>
> While A < 100 and B == 250 and c != 50
> <statements>
> Wend
>
> Thanks.
>
> Jim
>
>
>
>
>
> 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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Multiple while conditions

--- In oopic@yahoogroups.com, "jim_three_uk" <jimthree@...> wrote:
>
> Hi,
>
> Is it possible to have a While loop execute until a number of
> conditions are true? I can't find reference to it in the manual.
>
> While A < 100 and B == 250 and c != 50
> <statements>
> Wend
>
> Thanks.
>
> Jim
>

The expression is from Chapter 11 of the ooPIC Programmer's Guide then
click Operators then click Logical

while ( (A < 100) AND (B = 250) AND (C <> 50) )

...

wend

The enclosing parentheses are probably not required; I like them...

Richard



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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Multiple while conditions

Might be easier to break it into component parts...

If A < 100 Then Z = 1
...
...
If B <> 250 Then Y = 1
...
...
If C = 50 Then X = 1
...
...
If X = 1 Or Y = 1 Or Z = 1 Then ...
etc.

or something along those lines.
I haven't tried any of these, but the idea of breaking up the logic
into its component pieces is a sound one... right?
It will take more programming lines, and maybe a few more variable
bytes (for X, Y, and Z placeholders) but surely something like this
will work. (I hope.) I'm also sure one of the more experienced
programmers out there can suggest a more elegant way of doing the
same thing, but I tend towards the brute force method - clumsy,
inelegant, but in the end workable.
BTW, have you tried it yet? Ya never know... ;)

--- In oopic@yahoogroups.com, "jim_three_uk" <jimthree@...> wrote:
>
> Hi,
>
> Is it possible to have a While loop execute until a number of
> conditions are true? I can't find reference to it in the manual.
>
> While A < 100 and B == 250 and c != 50
> <statements>
> Wend
>
> Thanks.
>
> Jim
>



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:

http://docs.yahoo.com/info/terms/

[oopic] Multiple while conditions

Hi,

Is it possible to have a While loop execute until a number of
conditions are true? I can't find reference to it in the manual.

While A < 100 and B == 250 and c != 50
<statements>
Wend

Thanks.

Jim



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:

http://docs.yahoo.com/info/terms/

Saturday, September 29, 2007

[oopic] Re: Need your advice on BIG robot

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> I have thought a lot about using an x86 processor like one of the
VIA
> boards as a host. I might use PC-DOS as the OS and my old toolchain
> like Turbo Pascal or Turbo C. At GHz speeds, the system would be
> blistering fast. It might be possible to port something like
FreeRTOS
> to get a real time operating system.
>
> But, the x86 chips are microcomputers, not microcontrollers and they
> don't have a lot of specialized gadgets such as PWM, I2C, SPI etc.
>
> There is a lot of work going on with the Intel X-Scale chip over at
> www.gumstix.com.

The gumstix board has the PXA chip and ram/flash
> running Linux and it is coupled to an ATmega128 to handle robot IO.
>
> I have played with this a little bit (the gumstix, not the
> combination) and I also have the Blackfin board as a stepping stool
to
> the Surveyor 'bot. As soon as vision becomes a factor, Linux
becomes
> important for the code base that's already available.
>
> Richard
>
All good ideas! I've looked at rs485 but didn't know enough to get a
good start(even made some rs232 to 485 driver boards and took a stab
at a home grown protocal). As far as the debate of OOPics to X uP, I
hear you, but I have the OOPics on hand and the learning curve is not
as bad as picking up a new processor/tool chain/ect or writing all
the needed assembler code(I've used pics with Microchip's IDE,and
CCS's C compiler). I've been gathering parts for quite a while now,
based on the general outline of the OPA robot model, so before I
redesign the whole project I want to intergrate what I have.
My thinking is keep each sensor node simple, let them collect data
and forward it to the CPU to process. The VIA CPU can then intergrate
the data into an action based on the current world model. With
seprate nodes, sensors can be read concurrently and preprocess the
data to some extent. Using the USB bus as the physical layer for
the 'network', each node can be accessed directly by the CPU. By
using the DSS enviorment in MS Robotics Studio, I think that I can
run any number of VCom ports concurrently, but I guess it's really a
issue for the MSRS/dot.net runtime.
Belive me, over the time I've been thinking about/building this
project, newer and better boards have come down the road, but I just
got to get something rolling before I start improving.
Bill


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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Need your advice on BIG robot

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> I have thought a lot about using an x86 processor like one of the
VIA
> boards as a host. I might use PC-DOS as the OS and my old toolchain
> like Turbo Pascal or Turbo C. At GHz speeds, the system would be
> blistering fast. It might be possible to port something like
FreeRTOS
> to get a real time operating system.
>
> But, the x86 chips are microcomputers, not microcontrollers and they
> don't have a lot of specialized gadgets such as PWM, I2C, SPI etc.
>
> There is a lot of work going on with the Intel X-Scale chip over at
> www.gumstix.com.

The gumstix board has the PXA chip and ram/flash
> running Linux and it is coupled to an ATmega128 to handle robot IO.
>
> I have played with this a little bit (the gumstix, not the
> combination) and I also have the Blackfin board as a stepping stool
to
> the Surveyor 'bot. As soon as vision becomes a factor, Linux
becomes
> important for the code base that's already available.
>
> Richard
>
All good ideas! I've looked at rs485 but didn't know enough to get a
good start(even made some rs232 to 485 driver boards and took a stab
at a home grown protocal). As far as the debate of OOPics to X uP, I
hear you, but I have the OOPics on hand and the learning curve is not
as bad as picking up a new processor/tool chain/ect or writing all
the needed assembler code(I've used pics with Microchip's IDE,and
CCS's C compiler). I've been gathering parts for quite a while now,
based on the general outline of the OPA robot model, so before I
redesign the whole project I want to intergrate what I have.
My thinking is keep each sensor node simple, let them collect data
and forward it to the CPU to process. The VIA CPU can then intergrate
the data into an action based on the current world model. With
seprate nodes, sensors can be read concurrently and preprocess the
data to some extent. Using the USB bus as the physical layer for
the 'network', each node can be accessed directly by the CPU. By
using the DSS enviorment in MS Robotics Studio, I think that I can
run any number of VCom ports concurrently, but I guess it's really a
issue for the MSRS/dot.net runtime.
Belive me, over the time I've been thinking about/building this
project, newer and better boards have come down the road, but I just
got to get something rolling before I start improving.
Bill


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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Need your advice on BIG robot

I have thought a lot about using an x86 processor like one of the VIA
boards as a host. I might use PC-DOS as the OS and my old toolchain
like Turbo Pascal or Turbo C. At GHz speeds, the system would be
blistering fast. It might be possible to port something like FreeRTOS
to get a real time operating system.

But, the x86 chips are microcomputers, not microcontrollers and they
don't have a lot of specialized gadgets such as PWM, I2C, SPI etc.

There is a lot of work going on with the Intel X-Scale chip over at
www.gumstix.com.

The gumstix board has the PXA chip and ram/flash
running Linux and it is coupled to an ATmega128 to handle robot IO.

I have played with this a little bit (the gumstix, not the
combination) and I also have the Blackfin board as a stepping stool to
the Surveyor 'bot. As soon as vision becomes a factor, Linux becomes
important for the code base that's already available.

Richard



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:

http://docs.yahoo.com/info/terms/

Friday, September 28, 2007

[oopic] Re: Need your advice on BIG robot

I like the OOPic for fast prototyping and general experimentation. I
don't think I like it in a networked configuration.

There are so many fast processors around it is hard to know where to
begin. I certainly like the Atmel ATmega128 and many of the NXP ARM
chips like the LPC2106 or LPC2148.

As to networking, I guess any of protocols will work (CAN, I2C, SPI,
etc.) but it is hard to beat the simplicity of RS485 and a general
network like ROBIN http://www.bdmicro.com/code/robin/

The nice thing about ROBIN is that it doesn't depend on any particular
hardware. All the controller needs is a serial port with an RS485
line driver - preferably a serial port with a fairly large queue. The
OOPic wouldn't apply.

Now, I realize that ROBIN won't run at multiples of MHz but given
small commands, 115200 baud may be fast enough. Leave tactics in the
peripheral controller(s) and leave strategy to the host.

Another thought: this Chevy Suburban was driven across the desert by a
single ATmega128 under the overall control of a larger computer.
Still, it's a full size vehicle controlled by a single chip:
http://www.bdmicro.com/darpa-gc/

And you think your bot is large?

If you want to see an interesting project with a 600 MHz controller
running uClinus, go to www.surveyor.com.

This bot streams video as it
is controlled over a wireless link (zigbee or ethernet) from a PC.

Richard



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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Need your advice on BIG robot

--- In oopic@yahoogroups.com, "red71956" <kdwyer@...> wrote:
>


I have to second this suggestion, in the sense that if you're
thinking of networking together 4 oopics, which will cost you
somewhat over $320, you might better spend that amount of cash on a
more powerful microcontroller board which can handle everything the 4
oopics would be handling.

Also, regards networking, you might also consider the CAN buss, if
your VIA board can handle it. Course, this would require getting
microcontroller boards with CAN on them, but you can network multiple
nodes, running up to 1-Mbps, and CAN is made for noisy environments,
with motors, etc.


- dan michaels
www.oricomtech.com
--- OOBOT40 Boards ---
========================


> Hi
> In a case like this (pun intended) I'd recommend using a PCI IO
card
> and completely forget about using Oopics (Sorry!) These are
available
> from vendors like Futurlec (www.futurlec.com) as well as others.
> This would simplify alot - standard x86 programming and peripherals
are
> all over the place. Geez, I'd mount an old 486 or Pentium
motherboard
> (there are even low-voltage versions of same) and go hog wild with
> memory and data storage. It would make everything SO much easier.
We
> use Oopics and other micros for their size and power advantages.
> Something REAL big... just go with a proven platform, x86!!!
>
> --- In oopic@yahoogroups.com, "wevb.rm" <wevb@> wrote:
> >
> > Hi,
> > Just need some input from anyone about this Robot I've been
working
> > on. It's a med to large platform, much like the White box 914 but
a
> > little bigger. I will be using Via M-1000 x86 board for the main
> > controller, talking to the uP(OOPics and a Moto brainstem)
network
> for
> > sensor input and output control. My question is: how would you
> network
> > 4 OOPics and others. I'm thinking that a seprate USB-to-serial
bridge
> > at each sub processor.
> > My plan is to use MSRS to fuse the inputs and control, of course
> I'll
> > need to wright/find a MSRS service to 'talk' SCP to the OOPics.
My
> main
> > concern is would it be more trouble having to service 6 or 7
serial
> > ports independently or have a I2C network with all sensor data?
> >
>



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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Need your advice on BIG robot

--- In oopic@yahoogroups.com, "red71956" <kdwyer@...> wrote:
>
> Hi
> In a case like this (pun intended) I'd recommend using a PCI IO
card
> and completely forget about using Oopics (Sorry!) These are
available
> from vendors like Futurlec (www.futurlec.com) as well as others.
> This would simplify alot - standard x86 programming and peripherals
are
> all over the place. Geez, I'd mount an old 486 or Pentium
motherboard
> (there are even low-voltage versions of same) and go hog wild with
> memory and data storage. It would make everything SO much easier.
We
> use Oopics and other micros for their size and power advantages.
> Something REAL big... just go with a proven platform, x86!!!
>
> --- In oopic@yahoogroups.com, "wevb.rm" <wevb@> wrote:
> >
> > Hi,
> > Just need some input from anyone about this Robot I've been
working
> > on. It's a med to large platform, much like the White box 914 but
a
> > little bigger. I will be using Via M-1000 x86 board for the main
> > controller, talking to the uP(OOPics and a Moto brainstem)
network
> for
> > sensor input and output control. My question is: how would you
> network
> > 4 OOPics and others. I'm thinking that a seprate USB-to-serial
bridge
> > at each sub processor.
> > My plan is to use MSRS to fuse the inputs and control, of course
> I'll
> > need to wright/find a MSRS service to 'talk' SCP to the OOPics.
My
> main
> > concern is would it be more trouble having to service 6 or 7
serial
> > ports independently or have a I2C network with all sensor data?
> >
>
I hear you on the PCI card, but I already have the OOPics in addition
to a ton of reg Pics. The advantage of using the OOpics, to me, is
the prototyping side; it's so much faster coding the OOPic then
compile-prgm-crash-repeat cycle with an assembler. Even with an IO
card, I'm looking at more then a dozen analog channels, running two
channels of PWM, capturing two encoder channels, plus many dIOs.
Even on a 1gig motherboard like the M1000, trying to do slam and
vision is really pushing things, so off loading processes to micros
seems like the way to go. My biggest concern is how well the PC can
process concurrent serial streams.
Bill


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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Need your advice on BIG robot

--- In oopic@yahoogroups.com, "red71956" <kdwyer@...> wrote:
>
> Hi
> In a case like this (pun intended) I'd recommend using a PCI IO
card
> and completely forget about using Oopics (Sorry!) These are
available
> from vendors like Futurlec (www.futurlec.com) as well as others.
> This would simplify alot - standard x86 programming and peripherals
are
> all over the place. Geez, I'd mount an old 486 or Pentium
motherboard
> (there are even low-voltage versions of same) and go hog wild with
> memory and data storage. It would make everything SO much easier.
We
> use Oopics and other micros for their size and power advantages.
> Something REAL big... just go with a proven platform, x86!!!
>
> --- In oopic@yahoogroups.com, "wevb.rm" <wevb@> wrote:
> >
> > Hi,
> > Just need some input from anyone about this Robot I've been
working
> > on. It's a med to large platform, much like the White box 914 but
a
> > little bigger. I will be using Via M-1000 x86 board for the main
> > controller, talking to the uP(OOPics and a Moto brainstem)
network
> for
> > sensor input and output control. My question is: how would you
> network
> > 4 OOPics and others. I'm thinking that a seprate USB-to-serial
bridge
> > at each sub processor.
> > My plan is to use MSRS to fuse the inputs and control, of course
> I'll
> > need to wright/find a MSRS service to 'talk' SCP to the OOPics.
My
> main
> > concern is would it be more trouble having to service 6 or 7
serial
> > ports independently or have a I2C network with all sensor data?
> >
>
I hear you on the PCI card, but I already have the OOPics in addition
to a ton of reg Pics. The advantage of using the OOpics, to me, is
the prototyping side; it's so much faster coding the OOPic then
compile-prgm-crash-repeat cycle with an assembler. Even with an IO
card, I'm looking at more then a dozen analog channels, running two
channels of PWM, capturing two encoder channels, plus many dIOs.
Even on a 1gig motherboard like the M1000, trying to do slam and
vision is really pushing things, so off loading processes to micros
seems like the way to go. My biggest concern is how well the PC can
process concurrent serial streams.
Bill


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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Need your advice on BIG robot

Hi
In a case like this (pun intended) I'd recommend using a PCI IO card
and completely forget about using Oopics (Sorry!) These are available
from vendors like Futurlec (www.futurlec.com) as well as others.
This would simplify alot - standard x86 programming and peripherals are
all over the place. Geez, I'd mount an old 486 or Pentium motherboard
(there are even low-voltage versions of same) and go hog wild with
memory and data storage. It would make everything SO much easier. We
use Oopics and other micros for their size and power advantages.
Something REAL big... just go with a proven platform, x86!!!

--- In oopic@yahoogroups.com, "wevb.rm" <wevb@...> wrote:
>
> Hi,
> Just need some input from anyone about this Robot I've been working
> on. It's a med to large platform, much like the White box 914 but a
> little bigger. I will be using Via M-1000 x86 board for the main
> controller, talking to the uP(OOPics and a Moto brainstem) network
for
> sensor input and output control. My question is: how would you
network
> 4 OOPics and others. I'm thinking that a seprate USB-to-serial bridge
> at each sub processor.
> My plan is to use MSRS to fuse the inputs and control, of course
I'll
> need to wright/find a MSRS service to 'talk' SCP to the OOPics. My
main
> concern is would it be more trouble having to service 6 or 7 serial
> ports independently or have a I2C network with all sensor data?
>



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:

http://docs.yahoo.com/info/terms/

[oopic] Need your advice on BIG robot

Hi,
Just need some input from anyone about this Robot I've been working
on. It's a med to large platform, much like the White box 914 but a
little bigger. I will be using Via M-1000 x86 board for the main
controller, talking to the uP(OOPics and a Moto brainstem) network for
sensor input and output control. My question is: how would you network
4 OOPics and others. I'm thinking that a seprate USB-to-serial bridge
at each sub processor.
My plan is to use MSRS to fuse the inputs and control, of course I'll
need to wright/find a MSRS service to 'talk' SCP to the OOPics. My main
concern is would it be more trouble having to service 6 or 7 serial
ports independently or have a I2C network with all sensor data?


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:

http://docs.yahoo.com/info/terms/

[oopic] Re: TPA81

--- In oopic@yahoogroups.com, Abdul Rahman <rahman_oki@...> wrote:
>
> Dear All,
>
> Help me, I don't understand how program TPA81 sensor
> using OOPic or anyone have example source code
> program?
>
> thank's
>
> ARahman
>
>

If you don't find an OOPic example, look at the Basic Stamp (BS2)
example. Basically, you do an I2C write of one data byte to set the
register address. Then you do 8 reads to get the pixel values.

Remember, the OOPic wants the I2C address shifted right one place to
eliminate the R/W' bit of the standard I2C address. This causes no
end of problems because many manufacturers give the default address
with the R/W' bit assumed to be 0 but as an 8 bit address.

Richard



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:

http://docs.yahoo.com/info/terms/

Thursday, September 27, 2007

[oopic] TPA81

Dear All,

Help me, I don't understand how program TPA81 sensor
using OOPic or anyone have example source code
program?

thank's

ARahman


____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html



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:

http://docs.yahoo.com/info/terms/

Wednesday, September 26, 2007

Re: [oopic] SCP, hexadecimal numbers, and byte swapping?

Crap, Another example of staying up too late. I had actually convinced myself that I was right too!

DLC

ooPIC Tech Support

-----Original Message-----

From: Andrew Porrett <slicerwizard@gmail.com>
Subj: Re: [oopic] SCP, hexadecimal numbers, and byte swapping?
Date: Wed Sep 26, 2007 12:33 am
Size: 924 bytes
To: oopic@yahoogroups.com

x86 processors are little endian. The OOPic interpreter is big
endian. I assume the PIC is also big endian.

At 12:00 AM 9/26/2007, ooPIC Tech Support wrote:
>You nailed it. The PIC is "Little Endian" which means that it stores
>data LSB first. Our PC's are "Big Endian" which is the other way around
>and also the way we think and write.



Yahoo! Groups Links



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:

http://docs.yahoo.com/info/terms/

Tuesday, September 25, 2007

Re: [oopic] SCP, hexadecimal numbers, and byte swapping?

x86 processors are little endian. The OOPic interpreter is big
endian. I assume the PIC is also big endian.

At 12:00 AM 9/26/2007, ooPIC Tech Support wrote:
>You nailed it. The PIC is "Little Endian" which means that it stores
>data LSB first. Our PC's are "Big Endian" which is the other way around
>and also the way we think and write.



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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Problem with 6.1.1 Compiler

I am using released 6.11 and I have test it on 3 different PCs and
the same results came out. I have take a screenshot of the problem
and it is under the album 'ppPIC Compiler".
http://tech.ph.groups.yahoo.com/group/oopic/photos/view/1f89?
b=1&m=f&o=0

Which version of the VB runtime does it need for the compiler? I
have the VB6 service pack 6 runtime installed on the PC with
WindowsXP-SP2. Any suggestion on the cause of this strange problem?
By the way, Compiler V5.0.1 runs perfect on the PC.


--- In oopic@yahoogroups.com, ooPIC Technical Support
<dennis.clark@...> wrote:
>
> I am not having this problem. Are you using the released 6.11
compiler?
>
> DLC
>
> erg47wa wrote:
> > In the object browser view, instead of the oLED object, it will
show
> > up as an oByte object. In other words, if I just put one line in
the
> > program 'Dim a As oLED' and then compile it. It will show up as
an
> > oByte object. Not an oLED object.
> >
> > --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
> > wrote:
> >
> >>What do you mean that they "will be treated as oByte"? I'm not
> >
> > sure
> >
> >>that I understand.
> >>
> >>DLC
> >>
> >>erg47wa wrote:
> >>
> >>>I try out some simple things in the 6.1.1 Compiler and found
that
> >
> > some
> >
> >>>of the objects such as oLED and oLight have problem.
> >>>
> >>>Dim a As oLED
> >>>Dim b As oLight
> >>>
> >>>After compiling, the objects will be treated as oByte instead of
> >
> > oLED
> >
> >>>and oLight. I use the older beta version 20 and the problem
does
> >
> > not
> >
> >>>exists. Anyone has solution for that?
> >>>
> >>>
> >>>
> >>>
> >>>Yahoo! Groups Links
> >>>
> >>>
> >>>
> >>
> >>--
> >>------------------------------------------------------
> >>Dennis Clark ooPIC Tech Support
> >>www.oopic.com
> >>------------------------------------------------------
> >>
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
> --
> ===================================================
> Dennis Clark ooPIC Technical Support
> ===================================================
>



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:

http://docs.yahoo.com/info/terms/

Re: [oopic] Re: Problem with 6.1.1 Compiler

I am not having this problem. Are you using the released 6.11 compiler?

DLC

erg47wa wrote:
> In the object browser view, instead of the oLED object, it will show
> up as an oByte object. In other words, if I just put one line in the
> program 'Dim a As oLED' and then compile it. It will show up as an
> oByte object. Not an oLED object.
>
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
> wrote:
>
>>What do you mean that they "will be treated as oByte"? I'm not
>
> sure
>
>>that I understand.
>>
>>DLC
>>
>>erg47wa wrote:
>>
>>>I try out some simple things in the 6.1.1 Compiler and found that
>
> some
>
>>>of the objects such as oLED and oLight have problem.
>>>
>>>Dim a As oLED
>>>Dim b As oLight
>>>
>>>After compiling, the objects will be treated as oByte instead of
>
> oLED
>
>>>and oLight. I use the older beta version 20 and the problem does
>
> not
>
>>>exists. Anyone has solution for that?
>>>
>>>
>>>
>>>
>>>Yahoo! Groups Links
>>>
>>>
>>>
>>
>>--
>>------------------------------------------------------
>>Dennis Clark ooPIC Tech Support
>>www.oopic.com
>>------------------------------------------------------
>>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>

--
===================================================
Dennis Clark ooPIC Technical Support
===================================================



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:

http://docs.yahoo.com/info/terms/

Re: [oopic] Vista

Please let us know how you fare with this.

DLC

kn4ud wrote:
> I kept playing around with Vista and get it to connect to and read the
> eeprom into the buffer. It was getting late so I have not tryed to load
> a program into it yet. I am keeping my fingers crossed.
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>

--
===================================================
Dennis Clark ooPIC Technical Support
===================================================



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:

http://docs.yahoo.com/info/terms/

Re: [oopic] Re: Oopic 6 Does Not Run For NON Administrators

There is no known solution for this. I have this problem with a variety
of development IDE's they seem to need admin access to comm ports and
the like. See if there is some way to open up the permissions on the
COM and printer ports. If not, then you have the only solution that
there is.

DLC

pjgeo2000 wrote:
> I will screen shot it when monday when I am back at work. It shows
> the startup screen where you click OK then it says error in main. I
> will get the scrren shot also. The other thing is the Shortcut on the
> desktop doesn't have the stop sign logo unledd and admin is logged in,
>
> Thanks for the help!
>
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
> wrote:
>
>>Hmm,
>>
>> I'm not sure about that, I'll send the question up the food
>
> chain.
>
>>But one suggestion is any file associated with the serial port may
>
> need
>
>>permissions changed to open it up to everyone. Also, you cannot
>
> compile
>
>>if your user directory is not writable. Can you give me screen
>
> shots of
>
>>the errors that you get?
>>
>>DLC
>>
>>pjgeo2000 wrote:
>>
>>>I am an IT tech in a school and we have just installed Oopic 6
>
> and it
>
>>>will not run unless an administrator is logged into the machine.
>
> Does
>
>>>anyone know a way around this? Is there a file that I don't know
>
> of
>
>>>these users needs read/write permissions to? ( have tried the exe
>
> and
>
>>>the config files ) Ant non administrator doesnt even get the stop
>
> sign
>
>>>logo on the shortcut.
>>>
>>>
>>>
>>>
>>>Yahoo! Groups Links
>>>
>>>
>>>
>>
>>--
>>------------------------------------------------------
>>Dennis Clark ooPIC Tech Support
>>www.oopic.com
>>------------------------------------------------------
>>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>

--
===================================================
Dennis Clark ooPIC Technical Support
===================================================



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:

http://docs.yahoo.com/info/terms/

Re: [oopic] SCP, hexadecimal numbers, and byte swapping?

You nailed it. The PIC is "Little Endian" which means that it stores
data LSB first. Our PC's are "Big Endian" which is the other way around
and also the way we think and write. Sadly your only choice is to
simple do a byte swap AFTER you convert the binary number. One simple
way is to have a two byte array and fill it in reverse. You can use
math or simple bit shifts, but you'll just have to do it the obvious way.

DLC

Mike Smith wrote:
> Hi everyone -
>
> I am using SCP as a means for one OOPIC to read/write information to
> another OOPIC. Most of the values I'm interested in are two-byte
> oVar16 objects stored in variable memory, so my SCP command to
> retrieve a value looks something like:
>
> \1366J145HM
>
> (breaks down as Serial node1, Memory address 366, two-byte read)
>
> Assuming the variable object has the number 750 stored, this command
> returns:
>
> EE02m
>
> (two hexadecimal numbers EE and 02, followed by the "M" command
> confirmation of "m")
>
> I scratched my head for a little while trying to figure out how EE02
> in hexadecimal could equal the decimal number 750, but then realized
> that the bytes come through in last-byte-first order - (02EE does
> equal 750).
>
> Now I realize that if I were using oWord objects instead of oVar16's,
> I could use the default address of the object and get back a decimal
> string. However, by using oVar16's I get to use all that variable
> memory and conserve object memory for other things I need.
>
> I would like to know if anyone has suggestions for the most efficient
> way to take this "EE02m" value received from an oSerialPort object
> and properly convert so as to be used for displaying on an LCD(SET)?
> Perhaps some way to swap those two bytes?
>
> I know that there is no problem converting a hexadecimal number to a
> decimal string - I tested this by defining an oVar16 as equal
> to "0x02EE" and then using LCD.string=str$(var_name) and it
> successfully displayed 00750 on the LCD. However, I'm assuming there
> is going to have to be some magic in order for the text "EE02m"
> received by the serial port to be interpretted as the hex
> number "0x02EE" prior to such a conversion.
>
> Likewise, if I'm going to be sending values via SCP as well as
> reading them, I could use some pointers coding the OOPIC to
> convert numbers such as "750" to the appropriate two-hex number
> sequence required when sending data via SCP for storing to RAM.
>
> Thanks for any assistance,
>
> Mike
>
>
>
>
> 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:

http://docs.yahoo.com/info/terms/

[oopic] SCP, hexadecimal numbers, and byte swapping?

Hi everyone -

I am using SCP as a means for one OOPIC to read/write information to
another OOPIC. Most of the values I'm interested in are two-byte
oVar16 objects stored in variable memory, so my SCP command to
retrieve a value looks something like:

\1366J145HM

(breaks down as Serial node1, Memory address 366, two-byte read)

Assuming the variable object has the number 750 stored, this command
returns:

EE02m

(two hexadecimal numbers EE and 02, followed by the "M" command
confirmation of "m")

I scratched my head for a little while trying to figure out how EE02
in hexadecimal could equal the decimal number 750, but then realized
that the bytes come through in last-byte-first order - (02EE does
equal 750).

Now I realize that if I were using oWord objects instead of oVar16's,
I could use the default address of the object and get back a decimal
string. However, by using oVar16's I get to use all that variable
memory and conserve object memory for other things I need.

I would like to know if anyone has suggestions for the most efficient
way to take this "EE02m" value received from an oSerialPort object
and properly convert so as to be used for displaying on an LCD(SET)?
Perhaps some way to swap those two bytes?

I know that there is no problem converting a hexadecimal number to a
decimal string - I tested this by defining an oVar16 as equal
to "0x02EE" and then using LCD.string=str$(var_name) and it
successfully displayed 00750 on the LCD. However, I'm assuming there
is going to have to be some magic in order for the text "EE02m"
received by the serial port to be interpretted as the hex
number "0x02EE" prior to such a conversion.

Likewise, if I'm going to be sending values via SCP as well as
reading them, I could use some pointers coding the OOPIC to
convert numbers such as "750" to the appropriate two-hex number
sequence required when sending data via SCP for storing to RAM.

Thanks for any assistance,

Mike


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:

http://docs.yahoo.com/info/terms/

Monday, September 24, 2007

[oopic] Motor VCs and Sonar and LCD

Hi Group
Thanx to all for some great ideas, now I just hafta make 'em work!
Thru judicious use of cut-n-paste, plus some code of my own, I think I
have a workable solution that actually leaves some bytes left over for
other uses. I will probably delay using 2 Oopics until I max out on
using one. (See Files section for zipped OttoMotorVC file.)
While I haven't run this thru the Oopic yet (physical construction of
body near completion) I think this will work OK.
If anyone sees any obvious errors or poor use of code, let me know!

I owe a big debt of gratitude to all the posters whose code I copied,
as well as those who offered direction and ideas. Otto thanks you all.


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:

http://docs.yahoo.com/info/terms/

[oopic] New file uploaded to oopic

Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the oopic
group.

File : /OttoVCMotorLCDSonar.zip
Uploaded by : red71956 <kdwyer@epix.net>
Description : Motor VC with Sonar, LCD

You can access this file at the URL:
http://groups.yahoo.com/group/oopic/files/OttoVCMotorLCDSonar.zip


To learn more about file sharing for your group, please visit:
http://help.yahoo.com/help/us/groups/files

Regards,

red71956 <kdwyer@epix.net>


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:

http://docs.yahoo.com/info/terms/

[oopic] Re: OOBoard and oopic compiler problem

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "Kyunghwan Choi" <kh8911@> wrote:
> >
> > Hello,
> >
> > I've sent this e-mail to roguerobotics.com but I guess I can post it
> > here as well.
>
> I'm looking at the schematic for the OOBoard and it doesn't show a
> SIMMBus of any kind.

Maybe it is on another sheet that is not shown.

The picture of the board and the write-up do indicate that 4 SIMM
receptacles are on the board.

I'm not sure that these are very useful in that Dontronics is about
the only company building peripheral boards in that format other than
the Remote I/O expander from Rogue. And there are other ways to do that!

There are a number of other controller formats for the OOPic:

The OOBOT40 from Oricom Technologies
http://www.oricomtech.com/prod-con.htm

The Mark III OOPic controller from www.junun.org

Both of these have real RS232 drivers which the following do not.

The OOPic II http://www.acroname.com/robotics/parts/R128-OOPIC-II.html
which needs an external RS232 level shifter and the on-board voltage
regulator is just large enough for the chip. Peripherals are better
served by another regulator or power supply.

The OOPic R http://www.acroname.com/robotics/parts/R180-OOPIC-R.html
which has a separate voltage regulator for peripherals but does not
have a real RS232 level shifter. It will work with PCs but not
necessarily every device you might want to connect.

Personally, I use the OOPic II because nothing is connected to gadgets
on the board. I can do whatever I want with the IOLines. One
example: the upper 3 A/D inputs of the R board are connected to LEDs
and resistors. This limits the A/D channels to 5 unless the board is
hacked.

I also use the Mark III OOPic controller. Junun has a couple of add
on boards (sensor and prototype) that can be handy. I like the
stacking format.

Richard



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:

http://docs.yahoo.com/info/terms/

Sunday, September 23, 2007

[oopic] Re: OOBoard and oopic compiler problem

--- In oopic@yahoogroups.com, "Kyunghwan Choi" <kh8911@...> wrote:
>
> Hello,
>
> I've sent this e-mail to roguerobotics.com but I guess I can post it
> here as well.

I'm looking at the schematic for the OOBoard and it doesn't show a
SIMMBus of any kind. It does show a LOCAL I2C connector but not a
NETWORK I2C connector.

The NETWORK I2C connector is only useful for networking OOPics. It
can not be used to talk to I2C peripherals. You must use the LOCAL
I2C connector for that.

If you really want the NETWORK I2C, connect the CLK signal to RC3/SCK
and the DATA signal to RC4/SDA. From the schematic, it isn't clear
how to do that. Those signals aren't included in the IOLines 1..31.
Making the connection might be ugly.

Re the ESTOP: all they are doing is jamming up the EEPROM output and
causing the OOPic to reset. What you will learn to do is put
OOPic.Delay = 500 as the first executable statement of every program.
This 5 second delay allows the PC via SCP (Serial Control Protocol)
to get the attention of the OOPic following a reset before it starts
executing a potentially errant program.

If you short ESTOP and hold it BEFORE you push reset, the IDE should
tell you to install the EEPROM before downloading. This seems like a
process that reqires more than the normal 2 hands... On other OOPics,
you physically pull the EEPROM.

As to the compiler: I personally prefer V5 running on WinXP. It has a
long history. V6 is pretty new and I'm not comfortable with it. As
to Windows Vista: don't go there. Neither IDE is known to work. In
fact, both are known to NOT work.

Richard


>
> ------------------
> Hello,
>
> I've recently purchased Rogue ATR ERS Robot Kit for a
> research purpose. I've assembled everything and
> initially it worked fine with pre-loaded program which
> was to move forward, alternatively turn, and move
> backward when I press green, yellow, red buttons.
>
> The problem is that whenever I try to load the
> program, I need to do ESTOP jump every single time,
> which is very frustrating cause even it takes several
> trials to get it. Second, when I load the program
> given on the website or the manual, the sample
> programs, none of them seems to be working.
>
> And lastly, my OOBoard seems little different from the
> manual. Mine does not have Network I2C Connector, nor
> SIMMBus pins. Since I need to get this working ASAP
> for my research, I was wondering what the solution
> would be. I just ordered this last week, and got it
> two days ago through school. Is the replacement an
> option?
>
> Thank you.
>
> Kyunghwan Choi
> Carnegie Mellon University
> Carnegie Institute of Technology - Engineering
> M.S. ECE / CS
>
> -------
> I'm not sure if it's a compiler problem or if there is a problem with
> the board itself. I hope they give me an replacement for the board
> since I bought this last week.
>
> Thank you very much for your help!
>



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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Problem with 6.1.1 Compiler

In the object browser view, instead of the oLED object, it will show
up as an oByte object. In other words, if I just put one line in the
program 'Dim a As oLED' and then compile it. It will show up as an
oByte object. Not an oLED object.

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> What do you mean that they "will be treated as oByte"? I'm not
sure
> that I understand.
>
> DLC
>
> erg47wa wrote:
> > I try out some simple things in the 6.1.1 Compiler and found that
some
> > of the objects such as oLED and oLight have problem.
> >
> > Dim a As oLED
> > Dim b As oLight
> >
> > After compiling, the objects will be treated as oByte instead of
oLED
> > and oLight. I use the older beta version 20 and the problem does
not
> > exists. Anyone has solution for that?
> >
> >
> >
> >
> > 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:

http://docs.yahoo.com/info/terms/

[oopic] OOBoard and oopic compiler problem

Hello,

I've sent this e-mail to roguerobotics.com but I guess I can post it
here as well.

------------------
Hello,

I've recently purchased Rogue ATR ERS Robot Kit for a
research purpose. I've assembled everything and
initially it worked fine with pre-loaded program which
was to move forward, alternatively turn, and move
backward when I press green, yellow, red buttons.

The problem is that whenever I try to load the
program, I need to do ESTOP jump every single time,
which is very frustrating cause even it takes several
trials to get it. Second, when I load the program
given on the website or the manual, the sample
programs, none of them seems to be working.

And lastly, my OOBoard seems little different from the
manual. Mine does not have Network I2C Connector, nor
SIMMBus pins. Since I need to get this working ASAP
for my research, I was wondering what the solution
would be. I just ordered this last week, and got it
two days ago through school. Is the replacement an
option?

Thank you.

Kyunghwan Choi
Carnegie Mellon University
Carnegie Institute of Technology - Engineering
M.S. ECE / CS

-------
I'm not sure if it's a compiler problem or if there is a problem with
the board itself. I hope they give me an replacement for the board
since I bought this last week.

Thank you very much for your help!



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:

http://docs.yahoo.com/info/terms/

Re: [oopic] Problem with 6.1.1 Compiler

What do you mean that they "will be treated as oByte"? I'm not sure
that I understand.

DLC

erg47wa wrote:
> I try out some simple things in the 6.1.1 Compiler and found that some
> of the objects such as oLED and oLight have problem.
>
> Dim a As oLED
> Dim b As oLight
>
> After compiling, the objects will be treated as oByte instead of oLED
> and oLight. I use the older beta version 20 and the problem does not
> exists. Anyone has solution for that?
>
>
>
>
> 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:

http://docs.yahoo.com/info/terms/

[oopic] Problem with 6.1.1 Compiler

I try out some simple things in the 6.1.1 Compiler and found that some
of the objects such as oLED and oLight have problem.

Dim a As oLED
Dim b As oLight

After compiling, the objects will be treated as oByte instead of oLED
and oLight. I use the older beta version 20 and the problem does not
exists. Anyone has solution for that?


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:

http://docs.yahoo.com/info/terms/

Saturday, September 22, 2007

[oopic] Vista

I kept playing around with Vista and get it to connect to and read the
eeprom into the buffer. It was getting late so I have not tryed to load
a program into it yet. I am keeping my fingers crossed.


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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Oopic 6 Does Not Run For NON Administrators

I will screen shot it when monday when I am back at work. It shows
the startup screen where you click OK then it says error in main. I
will get the scrren shot also. The other thing is the Shortcut on the
desktop doesn't have the stop sign logo unledd and admin is logged in,

Thanks for the help!

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> Hmm,
>
> I'm not sure about that, I'll send the question up the food
chain.
> But one suggestion is any file associated with the serial port may
need
> permissions changed to open it up to everyone. Also, you cannot
compile
> if your user directory is not writable. Can you give me screen
shots of
> the errors that you get?
>
> DLC
>
> pjgeo2000 wrote:
> > I am an IT tech in a school and we have just installed Oopic 6
and it
> > will not run unless an administrator is logged into the machine.
Does
> > anyone know a way around this? Is there a file that I don't know
of
> > these users needs read/write permissions to? ( have tried the exe
and
> > the config files ) Ant non administrator doesnt even get the stop
sign
> > logo on the shortcut.
> >
> >
> >
> >
> > 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:

http://docs.yahoo.com/info/terms/

Friday, September 21, 2007

Re: [oopic] Vista

I haven't heard of a fix yet. I know it is being worked on.

DLC

kn4ud wrote:
> Is there a fix for Microsoft's latest mistake they have shoved down our
> throats? I can get version 6 to run but it won't link to the OOPic.
>
>
>
>
> 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:

http://docs.yahoo.com/info/terms/

Re: [oopic] Oopic 6 Does Not Run For NON Administrators

Hmm,

I'm not sure about that, I'll send the question up the food chain.
But one suggestion is any file associated with the serial port may need
permissions changed to open it up to everyone. Also, you cannot compile
if your user directory is not writable. Can you give me screen shots of
the errors that you get?

DLC

pjgeo2000 wrote:
> I am an IT tech in a school and we have just installed Oopic 6 and it
> will not run unless an administrator is logged into the machine. Does
> anyone know a way around this? Is there a file that I don't know of
> these users needs read/write permissions to? ( have tried the exe and
> the config files ) Ant non administrator doesnt even get the stop sign
> logo on the shortcut.
>
>
>
>
> 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:

http://docs.yahoo.com/info/terms/

Re: [oopic] Vista

Yep all kinds of programs are completly useless on vista, most notably solidworks, which is pretty pricy to get a new version of. My notebook will literally be sitting on the shelf until I get it. I'm not worried about the compiler not working I've always planed to get a cheap and out of date laptop to use it instead, a vista compatable version would be nice though.

kn4ud <kn4ud@comcast.net> wrote: No compatibility mode that I have found, but I am new to vista. I don't
think they got their act togeather before Mr. Gates decided to put it
off on the public and let the public streighten it out so microshaft
can pick up on what other people fixed for them and charge us again for
it like in 98 SE.


---------------------------------
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

[Non-text portions of this message have been removed]


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:

http://docs.yahoo.com/info/terms/

[oopic] Vista

No compatibility mode that I have found, but I am new to vista. I don't
think they got their act togeather before Mr. Gates decided to put it
off on the public and let the public streighten it out so microshaft
can pick up on what other people fixed for them and charge us again for
it like in 98 SE.



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:

http://docs.yahoo.com/info/terms/

[oopic] Re: Vista

I don't have a Vista box in front of me, but isn't there
a 'compatability mode' like in XP? Granted, even that isn't perfect but
it is sure worth a try.

--- In oopic@yahoogroups.com, "kn4ud" <kn4ud@...> wrote:
>
> Is there a fix for Microsoft's latest mistake they have shoved down
our
> throats? I can get version 6 to run but it won't link to the OOPic.
>



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:

http://docs.yahoo.com/info/terms/

[oopic] Vista

Is there a fix for Microsoft's latest mistake they have shoved down our
throats? I can get version 6 to run but it won't link to the OOPic.


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:

http://docs.yahoo.com/info/terms/

[oopic] Oopic 6 Does Not Run For NON Administrators

I am an IT tech in a school and we have just installed Oopic 6 and it
will not run unless an administrator is logged into the machine. Does
anyone know a way around this? Is there a file that I don't know of
these users needs read/write permissions to? ( have tried the exe and
the config files ) Ant non administrator doesnt even get the stop sign
logo on the shortcut.


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:

http://docs.yahoo.com/info/terms/

Thursday, September 20, 2007

[oopic] Re: Serial communication between two oopics

Working to get each OOPic talking to the PC as a first step towards
getting them to talk to each other was good advice. Thanks.

I used oSerialPort and wrote code to spew characters serially and I
can see that through the comm window. On the other one wrote code
that echoed back everything it received but that beeped and flashed
an LED everytime it received the ascii value of the character 'D'.
After making sure they both worked in talking with a PC, I ran a wire
between the two DB9 serial ports of the OOPics (oopic-r and oobot-
40II) as follows:

pin5 <-> pin5
pin2 <-> pin3
pin3 <-> pin2

Once done, I got regularly beeps and flashes from the receiving end
when it detects a 'D' amongst the pile of characters coming from the
sender.

More work to do before it does what I need it to do, but at least
they are communicating. My project has now grown to where I'll have
one oopic separated from another by some distance and then a third
oopic connected via i2c in close proximity to the first (simply
because I have two many objects to store in one on that end).

Thanks again for pointing me in the right direction.

--- In oopic@yahoogroups.com, Andrew Porrett <slicerwizard@...> wrote:
>
> At 07:52 AM 8/21/2007, msmith98990 wrote:
> >Armed with this knowledge, I connected what I believe is line 23
> >(serial Rx) of the OOPic-R to line 22 (serial Tx) of the OOPic-S
(pin
> >37 on the 40 pin connector) and line 22 (serial Tx) of the OOPic-R
to
> >line 23 (Serial Rx) of the OOPic-S (pin 39 of the 40 pin connector)
>
> Did you also connect a ground wire?
>
>
> >Sub Main()
> > LED.IOLine = 7
>
> No delay at startup can be dangerous when playing with serial I/O.
>
>
> > LCD.String = Str$(S.Value)
>
> LCD = S should be sufficient. You are after all just dealing with
ASCII bytes.
>
>
> >What happens is that the OOPic-R never seems to have received
> >anything (no LED and no LCD output) while the OOPic-S flashes it's
> >LED on and off a couple times per second. What's wierd is it does
> >that even when I disconnect the serial lines.
>
> Hm. Something's borked.
>
>
> >If I can get this working, I'm assuming the next step is to
introduce
> >some flow control by dim'ing a couple of oDio1 lines on each,
> >connecting one pair of them for a clear to send signal for the
OOPic-
> >R to know when it can send data, and the other pair so that the
OOPic-
> >S knows when it can send. The CTS lines would be owire'd to the
> >S.Received property so that it changes from high to low when data
is
> >received to prevent the sender from sending more data until the
> >receiver has read in what it has already received. And I would
> >probably set it up to be event driven rather than using any loop.
>
> Sounds like it's doable. I get the impression that you want the
two
> OOPics to act as peers rather than a master/slave
> relationship. Could get tricky.
>
>
> >Am I anywhere close here? I would appreciate any help, including
> >tips on troublshooting this one thing at a time. For example, is
it
> >possible to have a single OOPic talk to itself by connecting it's
own
> >line 22 to it's own line 23 to verify that it can send and receive
> >data?
>
> Certainly.
>
>
> > And when the data is sent as a string, is it received in such
> >a way that a lcd.string=str$(s.value) would even work, or is that
> >going to produce ASCII numbers for just the first character?
>
> Sending strings between OOPics guarantees that you will lose data,
> since the RX buffers can only hold four bytes.
>
> Since you have an OOPic-R, why don't you work on your serial mojo
by
> communicating between it and your PC first? E.g. get what you send
> from your PC to echo back to the PC as well as display on the LCD.
>
>
> ...Andy
>



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:

http://docs.yahoo.com/info/terms/

[oopic] Re: I2C ooPIC Networking Libraries

I found the spot in the oNMD_NetSlave file that causes it to not
compile with the v6 compiler. The word "RAM" must be reserved in v6
but not v5, so changing this line:

Dim RAM As New oRAM

to something like

Dim R As New oRAM

and then updating the name to all the references to that object
allows the code to compile.


--- In oopic@yahoogroups.com, "Mike Smith" <msmith@...> wrote:
>
> All -
>
> I checking into the libraries mentioned below in this thread. In
the
> v6 compiler, there were multiple errors with the slave libraries.
I
> wrote to the author (Neil Durant) about them and received the
> following:
>
> "Hi Mike,
>
> Many thanks for your interest in my OOPic Net and EEPROM libraries.
> Unfortunately, due to work priorities etc, I haven't been able to
> find the time to work on the OOPIC or my robot project for a year
or
> so, and so have also consequently been unable to check
compatibility
> with the v6 release etc. The libraries available on my site were
> written for the v5 compiler. I can therefore offer you very little
> assistance.
>
> However, in the spirit of open source and collaboration, you're
very
> welcome to do the debugging and compatibility fixes yourself, and
I'd
> be delighted to host such changes for wider use, with suitable
credit
> of course!
>
> You may consider posting to the OOPIC forum to see if anyone else
has
> already done any work on these libraries in terms of compatibility
> with the
> v6 compiler.
>
> Best regards and good luck!
>
> Neil"
>
>
> So I was curious if anyone else had tried these out and had
> desire/ability to investigate these issues with these libraries in
> the V6 compiler? Meanwhile, I'm going to try them out with the
> older v5 compiler to see if it has similar problems.
>
> Mike
>
>
>
> --- In oopic@yahoogroups.com, "Dennis K. Deckmann" <dkdeckmann@>
> wrote:
> >
> > I think this is what he is looking for...
> >
> > I2C Multiple OOPIC Networking Libraries
> > =======================================
> >
> > A pair of user classes for the OOPIC microcontroller allowing
> > networked
> > OOPICs to share a buffer of bytes held within the slave OOPIC.
> >
> > Contributors: Neil Durant <neil@>
> > David Allen (conversion to BASIC)
> > Website: www.octrix.com (Follow the 'downloads' link)
> >
>



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:

http://docs.yahoo.com/info/terms/

Wednesday, September 19, 2007

Re: [oopic] oCountdown vs oopic.delay

All right now we're definitely getting somewhere. So in effect I would add the object code below to the Sub Main of my program and it would have the same intended effect that I was trying to get using oopic.delay. Correct?

dim A as new oCountdown

Sub Main()
A.Output.Link( switch1)
A.PreScale = 59
A.ClockIn.Link(ooPIC.Hz60)
A.Operate = 1
switch1.IOGroup = 3
switch1.Direction = cvOutput

A.Output.Link( switch2)
A.PreScale = 59
A.ClockIn.Link(ooPIC.Hz60)
A.Operate = 1
switch2.IOGroup = 3
switch2.Direction = cvOutput

End Sub

Sub routerstate1_ Code()
switch1.state = cvOn
switch1 = 5
switch1.state = cvOff
switch2.state = cvOn
switch2 = 25
switch2.state = cvOff
switch1.state = cvOn
switch1 = 20
switch1.state = cvOff

This is kind of a long hypothetical code.... Is this the right way to use this object?

Carson

ooPIC Tech Support <dennis.clark@oopic.com> wrote: See below:

carson hoyt wrote:
> Let me see if I understand what you're saying,
>
> "The new oButton objects will allow you to debounce the buttons as well which will make everything work better. Remember that an event will fire when the
> Operate line moves from '0' to '1', it won't fire again until it moves
> back to '0'."
> If I use the obutton object instead of a oDio1, every time I hit the button the oEvent will restart from the begining of the event code? This would actually be very good if this was the case.
>
> Second debounce will in effect return the button to 0 after it has been pressed?

Debounce will make sure the transition takes place. With a regular
"on/off" button this means that the press will register as it is
debounced, you won't return to the default case until your finger
releases the button. oButton will debounce the transition, that is both
the "down" and the "up".

> "I'm not a fan of using ooPIC.delay in anything."
>
> Is this because the oopic will not be able to monitor the other buttons while it is delaying? I actually only need one event to funtion at a time, so that aspect isn't really a problem, not being able to sense incoming event triggers is though. I would experiment with this but I recently burnt out my oopic chip with a improperly designed circuit (forgot the diodes, ha,ha) and am currently waiting for a new chip.

Yes. The ooPIC essentially "freezes" while the .delay is in effect.

> "I would have a function that is periodically called that checks against a timer
> so that processing can go on while something is awaiting a timeout. One
> way to do that is to create a VC (virtual circuit) that is triggered by
> the button press such that it will start a timer that will call an event
> to shut a switch off when it times out. oCountdown is a good candidate
> for that."
>
> Hmmm after looking at the object page for oCountdown I'm not sure that this is what I need. The reason I was using oopic delay was that I needed a way to say wait x amount of time (where x could be any amount of time) before the next step in the oEvent. I feel like I am probably using the wrong words to say something very simple.
> The purpose of this program is to trigger beable to trigger an oEvent and have it function as a piece of procedural programing code within a larger object oriented event-based programing code. Maybe you could give me an example that would have the same effect?

Look again. oCountdown will start at the value you have it set to and
at every clock transition it will decrement until zero, then a flag will
be set that can trigger another event. The countdown rate can be set by
the frequency of the trigger clock you use. oHz1 and oHz60 are simple
to use clocks, oClock can provide another one. There is a lot of
flexibility here. The best part is that this VC can run in the
background without blocking other button presses or anything else that
is currently running. You have two buttons? No problem, define another
VC to handle the other button.

> Thanks for the help I've certainly learned a lot in a short time.

Sure! Have fun,
DLC

> Carson
>
>
>
>
>
>
> ---------------------------------
> Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com

------------------------------------------------------



---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.

[Non-text portions of this message have been removed]


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:

http://docs.yahoo.com/info/terms/