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, October 21, 2007

Re: [oopic] Quadrature Encoder

I had skipped right over the oQencode object. That alone makes things
somewhat easier, but it appears that I will exceed the max frequency at full
speed.

However, the oQencode object appears to use the oCounterL object for
counting, which counts a lower frequency signal. Is this true, and is it
unchangeable?

>
> Here is some sample odometry code for an optical encoder and a 'bot
> with servo motors:
> http://www.nubotics.com/support/ww01/code/oopic/ww01_oopic2p_square.osc.php
>
> My suspicion is that the servos drive right to the limit of the OOPic
> capability.
>
> High speed counting using oCounter2H is limited to a single IOLine : #
> 16. Not very useful in this application...
>
> Richard
>
>
>
>
>
>

--
View this message in context: http://www.nabble.com/Quadrature-Encoder-tf4663541.html#a13335065
Sent from the OOPic mailing list archive at Nabble.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: Quadrature Encoder

--- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>
>
> I realized this morning that while I mentioned the pulses per
revolution, I
> didn't mention the revolutions per second, so the pulses per second
couldn't
> be calculated.
>
> Unfortunately, I haven't tested what the revolutions per second actually
> comes out to, but I believe it would be variable depending on the
speed I
> have set for the motors. Unfortunately, I think that the top speed
could be
> as fast as 2 rps, which could mean that the pulse rate could be well
over
> 1KHz, and even if my estimate is excessive, I would come close to
the 1KHz
> rate. What this might mean is that I can measure the pulses per
second at a
> few low speeds, and figure out a curve of speed setting vs true speed,
> though I suspect it won't be linnear.
>
> Which object(s) in what configuration would get me the maximum
resolution? I
> suppose if I had an oWord filling with a pulse count each second,
that might
> be easiest, but it appears that there are a couple of pulse counting
> options.
>


Here is some sample odometry code for an optical encoder and a 'bot
with servo motors:
http://www.nubotics.com/support/ww01/code/oopic/ww01_oopic2p_square.osc.php

My suspicion is that the servos drive right to the limit of the OOPic
capability.

High speed counting using oCounter2H is limited to a single IOLine : #
16. Not very useful in this application...

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/

Re: [oopic] Quadrature Encoder

I realized this morning that while I mentioned the pulses per revolution, I
didn't mention the revolutions per second, so the pulses per second couldn't
be calculated.

Unfortunately, I haven't tested what the revolutions per second actually
comes out to, but I believe it would be variable depending on the speed I
have set for the motors. Unfortunately, I think that the top speed could be
as fast as 2 rps, which could mean that the pulse rate could be well over
1KHz, and even if my estimate is excessive, I would come close to the 1KHz
rate. What this might mean is that I can measure the pulses per second at a
few low speeds, and figure out a curve of speed setting vs true speed,
though I suspect it won't be linnear.

Which object(s) in what configuration would get me the maximum resolution? I
suppose if I had an oWord filling with a pulse count each second, that might
be easiest, but it appears that there are a couple of pulse counting
options.

ooPIC Tech Support wrote:
>
> What is your motor speed? The ooPIC can handle up to about a 1KHz rate
> but might get sketchy past that, especially if as you say, you have a
> lot of objects running. From the sounds of it, this encoder will soon
> outstrip the ooPIC's ability to keep up. Try it and see what kind of
> results that you get.
>
> DLC
>
> Shaggy wrote:
>> I'm using an OOPic board and have a pair of motors with quadrature
>> encoders.
>> These put out a pulse rate of 624 pulses/output shaft revolution. From
>> looking at the OOPic documentation, that looks like a pretty high pulse
>> rate
>> to be counting. I hope to return either speed or distance traveled out
>> the
>> serial port. I have all the serial port code worked out, so that all I
>> really need is a way to turn that pulse rate into something useful.
>> Either a
>> pulses per second rate would work, or a number of pulses in the last
>> second
>> (leaving the division up to the receiver and not on the OOPic). I figured
>> somebody on here would have either a suggestion or some example code I
>> could
>> use for that. This is only one piece of a larger project, and I am
>> getting a
>> bit tight on memory, but not excessively so....yet.
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>
>

--
View this message in context: http://www.nabble.com/Quadrature-Encoder-tf4663541.html#a13330954
Sent from the OOPic mailing list archive at Nabble.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/

Saturday, October 20, 2007

[oopic] Re: OOPic-R board problem

Putting a working EEPROM on the problem board has no response on it.
The board is brand new. How can I get the replacement?

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> If you have an EEPROM from an ooPIC R board that works and that
EEPROM
> will have no response on the other ooPIC R board then as long as
they
> have the same firmware you can best assume that the second ooPIC R
board
> is not working. Is this a new board or has it been working until
> recently? The difference is that one will be a warranty
replacement and
> the other will need to be repaired.
>
> DLC
>
> robot8868 wrote:
> > I test the voltage between PIN 1 & 8 of the EPROM and it measures
at
> > 5V. That means the small regulator is working. I also try
> > the "cosmic wedgie" recovery and it does not help. Then, I use
> > another OOPIC-R board and program the EPROM successfully. But
puttig
> > it back on the problem OOPIC-R board has no response. The EAC
light
> > is not ON at all. Is the board defective?
> >
> > --- In oopic@yahoogroups.com, <dennis.clark@> wrote:
> >
> >>first, try the"cosmic wedgie" recovery. Let us know if that
works.
> >>
> >>DLC
> >>
> >>
> >>ooPIC Tech Support
> >>
> >>-----Original Message-----
> >>
> >>From: "robot8868" <robot8868@>
> >>Subj: [oopic] OOPic-R board problem
> >>Date: Thu Oct 18, 2007 11:24 pm
> >>Size: 918 bytes
> >>To: oopic@yahoogroups.com
> >>
> >>I have an OOPic-R board with firmware C.1.1+. After applying the
> >
> > power
> >
> >>to the board, the power good LED does NOT light up. Connect
> >
> > through RS-
> >
> >>232 with PC does not show any response. But pushing the 3 little
> >>buttons on the board do light up the LED on top of it. Is the
> >
> > board
> >
> >>defective? How I can check if the OOPic is working ok?
> >>
> >>
> >>
> >>
> >>Yahoo! Groups Links
> >>
> >
> >
> >
> >
> >
> >
> > 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: Strange problem on OOPic with Soundgin

The regulated source measures a stable 12V output. I also try a
second regulated source with 15V and the problem still exists. When
I switch back to the unregulated 12V source, the problems goes away.
Do you think the problem may be created from the soundgin board
instead?

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> Check the voltage in. It could be that you have some problem with
the
> regulated source and you are "browning" out and the ooPIC is
resetting.
>
> DLC
>
> robot8868 wrote:
> > I setup the OOPic-R board with the Soundgin board so that it will
> > generate a tone each second. Using 'oopic.delay' as the timer.
Both
> > boards are power by an Unregulated 12V power source and
everything
> > works fine. The tone is being generated each second. However,
if I
> > power both boards with a regulated 12V power source, the tone
will
> > generate strangely. Two very short tones and then some delay
before
> > the next tone. It is so strange that a change of the power
source from
> > an unregulated to a regulated power source creates the problem.
It
> > looks like that it affect the oopic clock. Even though both
boards
> > already have power regulator on it, I would still like to use a
> > regulated power source to power them up. Anybody has an idea on
why it
> > happens?
> >
> >
> >
> >
> > 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] Quadrature Encoder

What is your motor speed? The ooPIC can handle up to about a 1KHz rate
but might get sketchy past that, especially if as you say, you have a
lot of objects running. From the sounds of it, this encoder will soon
outstrip the ooPIC's ability to keep up. Try it and see what kind of
results that you get.

DLC

Shaggy wrote:
> I'm using an OOPic board and have a pair of motors with quadrature encoders.
> These put out a pulse rate of 624 pulses/output shaft revolution. From
> looking at the OOPic documentation, that looks like a pretty high pulse rate
> to be counting. I hope to return either speed or distance traveled out the
> serial port. I have all the serial port code worked out, so that all I
> really need is a way to turn that pulse rate into something useful. Either a
> pulses per second rate would work, or a number of pulses in the last second
> (leaving the division up to the receiver and not on the OOPic). I figured
> somebody on here would have either a suggestion or some example code I could
> use for that. This is only one piece of a larger project, and I am getting a
> bit tight on memory, but not excessively so....yet.

--
------------------------------------------------------
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] Strange problem on OOPic with Soundgin

Check the voltage in. It could be that you have some problem with the
regulated source and you are "browning" out and the ooPIC is resetting.

DLC

robot8868 wrote:
> I setup the OOPic-R board with the Soundgin board so that it will
> generate a tone each second. Using 'oopic.delay' as the timer. Both
> boards are power by an Unregulated 12V power source and everything
> works fine. The tone is being generated each second. However, if I
> power both boards with a regulated 12V power source, the tone will
> generate strangely. Two very short tones and then some delay before
> the next tone. It is so strange that a change of the power source from
> an unregulated to a regulated power source creates the problem. It
> looks like that it affect the oopic clock. Even though both boards
> already have power regulator on it, I would still like to use a
> regulated power source to power them up. Anybody has an idea on why it
> happens?
>
>
>
>
> 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/