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.

Saturday, June 28, 2008

[oopic] Weekend Freebies (27th June)

I was sent another excellent link by my friend. This is a link to a
NEW FREEBIE PAGE for this week so I thought I would, share it with
the group...enjoy!

The link goes to a web page where you can collect TONS of items for
FREE! There is so much on offer that its definately worth the visit.
Keep your eyes open for new freebie pages, they post them each week!

http://freebiesweekly.blogspot.com/2008_06_25_archive.html

When you have had your freebies, be nice to your family and friends
and pass on the link above, like I did!

Take care and have a great weekend!


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

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, June 27, 2008

[oopic] Re: OOPic latency

--- In oopic@yahoogroups.com, "rayxunewhall" <rayxu@...> wrote:
>
> Hi, I would like to know why the latency in one while loop is very big.
> Heres the snippet:
> While (Echo == 0)
> // TICS prescale set to 2
> {
> If (TICS.MSB == 1 And Echo == 0)
> {
> Count = TICS.Count;
> If (Count < 65535)
> {
> Count = Count+65535;
> }
> //Print.Clear;
> Print.Locate(1,0);
> Print.VString = "timeout " + Str$(Count) + " " + Str$((Count / 10)
> * 8) + " us";
> Timeout = 1;
> Break;
> }
> }
>
> I'm making an home-made ultrasonic ranger, which requires the use of
> the OOPic and as much preciseness as it can be. For example, just for
> this to loop once, TICS will increase by 2000 counts. is that normal?
> Would writing this in Visual Basic have better results?
>
> Thanks.
>
> Ray Xu
> rayxu@...
>

You need to think in terms of 300 lines per SECOND for code execution.
What happens to your resolution if each line takes 30 mS (or more!)?

I haven't tried this with a virtual circuit but I'm not convinced the
resulution will be sufficient even with this approach.

Sound moves about 1100 feet per second or about 33 feet for each line
of code.

To measure to an accuracy of 1 inch, you need to be able to resolve 76
microseconds. That's pretty easy with a hardware timer but I'm not
sure how to do it with the OOPic.

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] OOPic latency

Hi, I would like to know why the latency in one while loop is very big.
Heres the snippet:
While (Echo == 0)
// TICS prescale set to 2
{
If (TICS.MSB == 1 And Echo == 0)
{
Count = TICS.Count;
If (Count < 65535)
{
Count = Count+65535;
}
//Print.Clear;
Print.Locate(1,0);
Print.VString = "timeout " + Str$(Count) + " " + Str$((Count / 10)
* 8) + " us";
Timeout = 1;
Break;
}
}

I'm making an home-made ultrasonic ranger, which requires the use of
the OOPic and as much preciseness as it can be. For example, just for
this to loop once, TICS will increase by 2000 counts. is that normal?
Would writing this in Visual Basic have better results?

Thanks.

Ray Xu
rayxu@tx.rr.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/

Thursday, June 26, 2008

[oopic] Events and V6

Did Savage Innovations ever fix the V6 compiler so that events work
properly again? As I recall, that was supposed to have happened by May.

--

73 de Brian, WB6RQN
Brian Lloyd - brian HYPHEN wb6rqn AT lloyd DOT 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] Re: Savage Innovations Website ***web host is currently fixing***

He knows about it now and is working on fixing it - An 'all clear"
should be forth coming when it's repaired.

DLC

@@ wrote:
> Mostly the redirect to the 3pigs domain, but I encountered a file with a Sophos worm seconds after clicking on the "Ordering" link at OOPIC.com. Files infected include notepad32.exe (multiple copies), a task called CSSRSS.exe which deletes itself as soon as it loads. Only way to kill this one was in safe-mode, finding the file and deleting. All in all a terrible experience and a complete waste of 12 hours. I went ahead and ordered what I need from botshop and sparkfun. I'll let someone else determine when to sound the all clear on savageinnovations.com. Oh well, at least I got an antivirus suite now.
> -Will
>
> ----- Original Message -----
> From: jesicaflow
> To: oopic@yahoogroups.com
> Sent: Wednesday, June 25, 2008 1:56 PM
> Subject: [oopic] Re: Savage Innovations Website ***web host is currently fixing***
>
>
> yep, i called it. web host is fixing as we speak.
>
> --- In oopic@yahoogroups.com, "jesicaflow" <jesicaflow@...> wrote:
> >
> > Not sure what we mean by "it looks hacked". If anyone could let me
> > know what they're seeing, that'd be great.
> >
> > It seems as though the web host's DNS servers were compromised...I
> > have noticed a couple of times that pages are forwarding to another
> > site. Is anyone seeing other issues?
> >
> >
> >
> >
> > --- In oopic@yahoogroups.com, "jasuk1970" <jasuk1970@> wrote:
> > >
> > > --- In oopic@yahoogroups.com, "@@" <will.lynelle@> wrote:
> > > >
> > > > Is is just me or is the Savage Innovations Website load with
> > spyware??
> > > >
> > > > I went there last thursday, by using the ordering link on
> > > www.oopic.com and it's taken me this long to rid my PC of all the
> > crap
> > > it loaded. I just went there again and between the sales site
> and
> > the
> > > forum my new antivirus posted 9 spyware warnings.
> > > >
> > > > Scott, what's the deal, do you not want to sell any more
> product??
> > > >
> > > > After this experience, maybe I'll just go to a different
> platform.
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > > It does look very hacked, the oobug site also tries to install
> > viruses
> > > on your PC. Do not use your credit card details on any of these
> > sites
> > > until they fix it.
> > >
> > > I've posted a message on their OOBug forum in hopes they see it.
> > >
> > > Jas
> > >
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
>

--
------------------------------------------------------
Dennis Clark
------------------------------------------------------


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

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, June 25, 2008

Re: [oopic] Re: Savage Innovations Website ***web host is currently fixing***

Mostly the redirect to the 3pigs domain, but I encountered a file with a Sophos worm seconds after clicking on the "Ordering" link at OOPIC.com. Files infected include notepad32.exe (multiple copies), a task called CSSRSS.exe which deletes itself as soon as it loads. Only way to kill this one was in safe-mode, finding the file and deleting. All in all a terrible experience and a complete waste of 12 hours. I went ahead and ordered what I need from botshop and sparkfun. I'll let someone else determine when to sound the all clear on savageinnovations.com. Oh well, at least I got an antivirus suite now.
-Will

----- Original Message -----
From: jesicaflow
To: oopic@yahoogroups.com
Sent: Wednesday, June 25, 2008 1:56 PM
Subject: [oopic] Re: Savage Innovations Website ***web host is currently fixing***


yep, i called it. web host is fixing as we speak.

--- In oopic@yahoogroups.com, "jesicaflow" <jesicaflow@...> wrote:
>
> Not sure what we mean by "it looks hacked". If anyone could let me
> know what they're seeing, that'd be great.
>
> It seems as though the web host's DNS servers were compromised...I
> have noticed a couple of times that pages are forwarding to another
> site. Is anyone seeing other issues?
>
>
>
>
> --- In oopic@yahoogroups.com, "jasuk1970" <jasuk1970@> wrote:
> >
> > --- In oopic@yahoogroups.com, "@@" <will.lynelle@> wrote:
> > >
> > > Is is just me or is the Savage Innovations Website load with
> spyware??
> > >
> > > I went there last thursday, by using the ordering link on
> > www.oopic.com and it's taken me this long to rid my PC of all the
> crap
> > it loaded. I just went there again and between the sales site
and
> the
> > forum my new antivirus posted 9 spyware warnings.
> > >
> > > Scott, what's the deal, do you not want to sell any more
product??
> > >
> > > After this experience, maybe I'll just go to a different
platform.
> > >
> > > [Non-text portions of this message have been removed]
> > >
> > It does look very hacked, the oobug site also tries to install
> viruses
> > on your PC. Do not use your credit card details on any of these
> sites
> > until they fix it.
> >
> > I've posted a message on their OOBug forum in hopes they see it.
> >
> > Jas
> >
>

[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] Re: Savage Innovations Website ***web host is currently fixing***

yep, i called it. web host is fixing as we speak.

--- In oopic@yahoogroups.com, "jesicaflow" <jesicaflow@...> wrote:
>
> Not sure what we mean by "it looks hacked". If anyone could let me
> know what they're seeing, that'd be great.
>
> It seems as though the web host's DNS servers were compromised...I
> have noticed a couple of times that pages are forwarding to another
> site. Is anyone seeing other issues?
>
>
>
>
> --- In oopic@yahoogroups.com, "jasuk1970" <jasuk1970@> wrote:
> >
> > --- In oopic@yahoogroups.com, "@@" <will.lynelle@> wrote:
> > >
> > > Is is just me or is the Savage Innovations Website load with
> spyware??
> > >
> > > I went there last thursday, by using the ordering link on
> > www.oopic.com and it's taken me this long to rid my PC of all the
> crap
> > it loaded. I just went there again and between the sales site
and
> the
> > forum my new antivirus posted 9 spyware warnings.
> > >
> > > Scott, what's the deal, do you not want to sell any more
product??
> > >
> > > After this experience, maybe I'll just go to a different
platform.
> > >
> > > [Non-text portions of this message have been removed]
> > >
> > It does look very hacked, the oobug site also tries to install
> viruses
> > on your PC. Do not use your credit card details on any of these
> sites
> > until they fix it.
> >
> > I've posted a message on their OOBug forum in hopes they see it.
> >
> > Jas
> >
>

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

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: Savage Innovations Website

Not sure what we mean by "it looks hacked". If anyone could let me
know what they're seeing, that'd be great.

It seems as though the web host's DNS servers were compromised...I
have noticed a couple of times that pages are forwarding to another
site. Is anyone seeing other issues?


--- In oopic@yahoogroups.com, "jasuk1970" <jasuk1970@...> wrote:
>
> --- In oopic@yahoogroups.com, "@@" <will.lynelle@> wrote:
> >
> > Is is just me or is the Savage Innovations Website load with
spyware??
> >
> > I went there last thursday, by using the ordering link on
> www.oopic.com and it's taken me this long to rid my PC of all the
crap
> it loaded. I just went there again and between the sales site and
the
> forum my new antivirus posted 9 spyware warnings.
> >
> > Scott, what's the deal, do you not want to sell any more product??
> >
> > After this experience, maybe I'll just go to a different platform.
> >
> > [Non-text portions of this message have been removed]
> >
> It does look very hacked, the oobug site also tries to install
viruses
> on your PC. Do not use your credit card details on any of these
sites
> until they fix it.
>
> I've posted a message on their OOBug forum in hopes they see it.
>
> Jas
>

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

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 Free-Stuff to Collect (24th June)

I was sent another excellent link by my friend. This is a link to a NEW
FREEBIE PAGE for this week so I thought I would, share it with the
group...enjoy!

The link goes to a web page where you can collect TONS of items for
FREE! There is so much on offer that its definately worth the visit.
Keep your eyes open for new freebie pages, they post them each week!

http://freebiesweekly.blogspot.com/2008_06_22_archive.html

When you have had your freebies, be nice to your family and friends and
pass on the link above, like I did!

Take care and have a great weekend!


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

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, June 23, 2008

[oopic] Re: Savage Innovations Website

--- In oopic@yahoogroups.com, "@@" <will.lynelle@...> wrote:
>
> Is is just me or is the Savage Innovations Website load with spyware??
>
> I went there last thursday, by using the ordering link on

www.oopic.com and it's taken me this long to rid my PC of all the crap
it loaded. I just went there again and between the sales site and the
forum my new antivirus posted 9 spyware warnings.
>
> Scott, what's the deal, do you not want to sell any more product??
>
> After this experience, maybe I'll just go to a different platform.
>
> [Non-text portions of this message have been removed]
>
It does look very hacked, the oobug site also tries to install viruses
on your PC. Do not use your credit card details on any of these sites
until they fix it.

I've posted a message on their OOBug forum in hopes they see it.

Jas


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

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] Savage Innovations Website

Is is just me or is the Savage Innovations Website load with spyware??

I went there last thursday, by using the ordering link on www.oopic.com and it's taken me this long to rid my PC of all the crap it loaded. I just went there again and between the sales site and the forum my new antivirus posted 9 spyware warnings.

Scott, what's the deal, do you not want to sell any more product??

After this experience, maybe I'll just go to a different platform.

[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] Re: Sparkfun LCD Troubles

This is a better version in that in forces 9600 baud. I have tested
this with a level shifter into RealTerm and it works fine. I added a
CR LF pair to clean up the display.

Dim S As New oSerialL

Sub main()

ooPIC.Delay = 5000

S.IOLineS = 9
S.Baud = cv9600
S.Operate = 1

Do

S.String = "hello" + Chr$(13) + Chr$(10)
ooPIC.Delay = 20

Loop

End Sub


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: Sparkfun LCD Troubles

--- In oopic@yahoogroups.com, "ef721" <ef721@...> wrote:
>
>
>
> > As I said earlier, you MIGHT have to actually implement that flow
> > control pin and pull it up (or down) with a 330 ohm resistor. We
had
> > a situation the other day where an object wouldn't work unless an
> > unnecessary IOLine was nevertheless defined.
> >
> > Richard
> >
>
>
> Are you saying that I would have to waste an IO line on flow control
> that I do not need? That sucks. Also, how exactly does flow control
> work, would the flow control have to be high or low for no flow
> control ( meaning it allows strings to be constantly sent)
>
> ,Eric
>

You really need to get a logic probe or scope to do this kind of
work. Something like this: http://tinyurl.com/4pu7km

There are
several inexpensive versions on ebay but this one was "Buy Now".

The following code works in that the IOLine idles high (same as a
real TTL USART) and the bits go low. It is not necessary to define
the flow control which would, I suspect, be an output used only when
the serial port is used for input to throttle the sender.


Dim S As New oSerialL

Sub main()

ooPIC.Delay = 5000

S.IOLineS = 9
S.Operate = 1

Do

S.String = "hello"
ooPIC.Delay = 20

Loop

End Sub


I have not run the signal to a level shifter and on to Hyperterminal
but I'm pretty sure it's correct. Compiler V6 and chip B.2.2+

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] Re: Sparkfun LCD Troubles

Why don't you just try the four combinations - TX inverted /
non-inverted x flow control high / low?

How long could that take? If it gets you closer to the solution,
isn't it worth it?

Then you can figure out if the flow control is even required.

Just a thought...

At 10:35 AM 6/23/2008, ef721 wrote:
>Are you saying that I would have to waste an IO line on flow control
>that I do not need? That sucks. Also, how exactly does flow control
>work, would the flow control have to be high or low for no flow
>control ( meaning it allows strings to be constantly sent)
>
>,Eric

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

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: Sparkfun LCD Troubles

> As I said earlier, you MIGHT have to actually implement that flow
> control pin and pull it up (or down) with a 330 ohm resistor. We had
> a situation the other day where an object wouldn't work unless an
> unnecessary IOLine was nevertheless defined.
>
> Richard
>


Are you saying that I would have to waste an IO line on flow control
that I do not need? That sucks. Also, how exactly does flow control
work, would the flow control have to be high or low for no flow
control ( meaning it allows strings to be constantly sent)

,Eric

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

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, June 22, 2008

[oopic] Re: Sparkfun LCD Troubles

--- In oopic@yahoogroups.com, "ef721" <ef721@...> wrote:
>
>
> Heres what I tried and what did not work
>
> Dim lcd As New oSerialL
> Sub Main()
> lcd.Baud = cv9600
> lcd.IOLineS = 16
> lcd.InvertS = cvTrue
>
>
> start:
> lcd.String = "Hello" 'Text
> Goto start
> End Sub
>
> the backlight of the LCD turns on but the characters do not display.
>

Have you tried it without inverting the signal?

How do you have it wired? IOLine 16 to the Rx pin is obvious but what
about ground? Is the LCD powered from the OOPic board? If not, the
grounds from the two systems need to be tied together.

Are you certain there are bits pouring out of the IOLine? If you
don't hava a logic probe or a scope, you can send long strings of 'U'
which has a bit pattern of 0x55 so it is in a high state half the
time. Send a few hundred loops of chars and then do a long delay
(like a second or so). You should be able to see the difference with
an analog voltmeter. A digital voltmeter may also see the changes.

You could also send tildes which have a bit pattern of 0x7F so they
are on almost all of the time.

As I said earlier, you MIGHT have to actually implement that flow
control pin and pull it up (or down) with a 330 ohm resistor. We had
a situation the other day where an object wouldn't work unless an
unnecessary IOLine was nevertheless defined.

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: Sparkfun LCD Troubles

Heres what I tried and what did not work

Dim lcd As New oSerialL
Sub Main()
lcd.Baud = cv9600
lcd.IOLineS = 16
lcd.InvertS = cvTrue


start:
lcd.String = "Hello" 'Text
Goto start
End Sub

the backlight of the LCD turns on but the characters do not display.

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "ef721" <ef721@> wrote:
> >
> > Hey guys,
> >
> > I recently acquired a SparkFun Serial LCD and I am trying to control
> > it from the ooPIC. I attempted to use the oLCDSE object, but to no
> avail.
> >
> > The baud rate is 9600bps and the serial controller of the LCD is based
> > off the Hitachi 44780 chip.
> >
> > What is the code to output text onto this LCD ?
> > Here is the link to the LCD:
> > http://www.sparkfun.com/commerce/product_info.php?products_id=812
> >
> > Thank you,
> >
> > Eric
> >
>
> You would use the oSerialL object and set it up for 9600 baud.
> Connect the IOLineS LCD RX input. Connect +5 and a common ground and
> you should be good to go. I don't think you will have to invert the
> IOLineS.
>
> I wouldn't be surprised if you have to define IOLineF even though you
> don't need it. In fact, you may have to do a little testing with the
> .Busy property to determine whether you need to pull the IOLine high
> or low. In either case, use a 330 ohm resistor to do the pullup(down)
> such that .Busy becomes 0. I would not make a direct connection.
>
> I would also put a 330 ohm resistor in series with the IOLineS and Rx
> connection. These resistors don't affect the operation but can save
> an OOPic from disaster should a pin become shorted.
>
> Oh - yes, you'll have to become intimately familiar with the datasheet
> because you are going to have to write your own code (probably
> functions) to do the usual things like clear the display, etc. Just
> send the byte indicated in the datasheet.
>
> But, you should be able to write chars without any special programming
> at all.
>
> 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: The correct link to the free-stuff!

--- In oopic@yahoogroups.com, "fionasmart82" <fionasmart82@...> wrote:
>
> ooop's sorry! My friend sent me the wrong freebie link!, here is the
> correct one!
>
> The new freebies for this week can be found at:
>
> http://freebiesweekly.blogspot.com/2008_06_15_archive.html
>
> Enjoy the free stuff and have a great week!
>

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

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, June 21, 2008

[oopic] The correct link to the free-stuff!

ooop's sorry! My friend sent me the wrong freebie link!, here is the
correct one!

The new freebies for this week can be found at:

http://freebiesweekly.blogspot.com/2008_06_15_archive.html

Enjoy the free stuff and have a great week!


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

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, June 20, 2008

[oopic] Re: Sparkfun LCD Troubles

--- In oopic@yahoogroups.com, "ef721" <ef721@...> wrote:
>
> Hey guys,
>
> I recently acquired a SparkFun Serial LCD and I am trying to control
> it from the ooPIC. I attempted to use the oLCDSE object, but to no
avail.
>
> The baud rate is 9600bps and the serial controller of the LCD is based
> off the Hitachi 44780 chip.
>
> What is the code to output text onto this LCD ?
> Here is the link to the LCD:
> http://www.sparkfun.com/commerce/product_info.php?products_id=812
>
> Thank you,
>
> Eric
>

You would use the oSerialL object and set it up for 9600 baud.
Connect the IOLineS LCD RX input. Connect +5 and a common ground and
you should be good to go. I don't think you will have to invert the
IOLineS.

I wouldn't be surprised if you have to define IOLineF even though you
don't need it. In fact, you may have to do a little testing with the
.Busy property to determine whether you need to pull the IOLine high
or low. In either case, use a 330 ohm resistor to do the pullup(down)
such that .Busy becomes 0. I would not make a direct connection.

I would also put a 330 ohm resistor in series with the IOLineS and Rx
connection. These resistors don't affect the operation but can save
an OOPic from disaster should a pin become shorted.

Oh - yes, you'll have to become intimately familiar with the datasheet
because you are going to have to write your own code (probably
functions) to do the usual things like clear the display, etc. Just
send the byte indicated in the datasheet.

But, you should be able to write chars without any special programming
at all.

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: Sparkfun LCD Troubles

--- In oopic@yahoogroups.com, "ef721" <ef721@...> wrote:
>
> Hey guys,
>
> I recently acquired a SparkFun Serial LCD and I am trying to control
> it from the ooPIC. I attempted to use the oLCDSE object, but to no
avail.
>
> The baud rate is 9600bps and the serial controller of the LCD is based
> off the Hitachi 44780 chip.
>
> What is the code to output text onto this LCD ?
> Here is the link to the LCD:
> http://www.sparkfun.com/commerce/product_info.php?products_id=812
>
> Thank you,
>
> Eric
>

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

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] Sparkfun LCD Troubles

Hey guys,

I recently acquired a SparkFun Serial LCD and I am trying to control
it from the ooPIC. I attempted to use the oLCDSE object, but to no avail.

The baud rate is 9600bps and the serial controller of the LCD is based
off the Hitachi 44780 chip.

What is the code to output text onto this LCD ?
Here is the link to the LCD:
http://www.sparkfun.com/commerce/product_info.php?products_id=812

Thank you,

Eric


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

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: Modified ooPIC-R

I was advised to add it if running 3A through the VR. Figured it
wouldn't hurt. I am waiting for additional sensors for a full-scale
test, but all A2D lines check out OK.

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "design.wonk" <design.wonk@> wrote:
> >
> > Thanks to all again for the input on my most recent prototype. I
> > modified an ooPIC-R to run 6 Sharp GP2YOA700K sensors. I made 2
> > additional A2D pins availble by removing the on-board LEDs and added
> > some extra cooling to the VR.
> >
> > Here is is:
> >
> > http://tech.ph.groups.yahoo.com/group/oopic/photos/view/650e?b=1
> >
>
> Does the VR get hot?
>
> 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: Modified ooPIC-R

--- In oopic@yahoogroups.com, "design.wonk" <design.wonk@...> wrote:
>
> Thanks to all again for the input on my most recent prototype. I
> modified an ooPIC-R to run 6 Sharp GP2YOA700K sensors. I made 2
> additional A2D pins availble by removing the on-board LEDs and added
> some extra cooling to the VR.
>
> Here is is:
>
> http://tech.ph.groups.yahoo.com/group/oopic/photos/view/650e?b=1
>

Does the VR get hot?

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] Modified ooPIC-R

Thanks to all again for the input on my most recent prototype. I
modified an ooPIC-R to run 6 Sharp GP2YOA700K sensors. I made 2
additional A2D pins availble by removing the on-board LEDs and added
some extra cooling to the VR.

Here is is:

http://tech.ph.groups.yahoo.com/group/oopic/photos/view/650e?b=1

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

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, June 18, 2008

[oopic] OOPic to PDA interface

Hi,
I've an old Palm III and was wondering if anyone has interfaced the
OOPic with a PDA?
If so can you give the specifics.

thanks,
John


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

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, June 17, 2008

[oopic] Re: Serial To LCD messing up

--- In oopic@yahoogroups.com, "ef721" <ef721@...> wrote:
>
> Thanks guys it worked!!!
>
> In case you were all wondering I am working on a project and my
> employer wanted a quick demo board up and running. He sent me an ooPIC
> -R to work with . Its a good language for a beginner but it seems to
> me there is such a big possibility for error when you control
> electronics as objects . Needless to say I will be making my own
> custom microcontroller board after the demo board is done.
>
> Thanks for all the help!!!
> ,Eric
> http://eRobots.BlogSpot.com
>

Controlling anything with a microcontroller is 'risky'. Remember: if
builders built buildings like programmers write programs, the first
woodpecker to come along would destroy civilization.

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: Serial To LCD messing up

Thanks guys it worked!!!

In case you were all wondering I am working on a project and my
employer wanted a quick demo board up and running. He sent me an ooPIC
-R to work with . Its a good language for a beginner but it seems to
me there is such a big possibility for error when you control
electronics as objects . Needless to say I will be making my own
custom microcontroller board after the demo board is done.

Thanks for all the help!!!
,Eric
http://eRobots.BlogSpot.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] Re: Serial To LCD messing up

At 02:21 PM 6/17/2008, rtstofer wrote:
>I can't speak for the new compiler but that logical expression in the
>first IF statement caused the identical symptoms in V5 and B.2.2+.
>Just breaking the statement into two if <expr> then ... end if solved
>the problem.

Ah yes, you're right. The statement:

if ((serial.received == TRUE) & (serial.value == 123))

produces this code:

55: 44 206 Get Serial.Received
57: 1 Pushb(1)
58: 152 IsEqual

59: 41 225 Get Serial.Value
61: 123 Pushb(123)
62: 152 IsEqual

63: 141 And
64: 137 0 71 BranchOnFalse(71)
130

which obviously evaluates the entire expression before deciding where
to branch to next. Gawd, I hate toy programming languages!


>I suspect there is an issue with not short circuiting the evaluation
>when the first equality is false. So what happens when you read the
>port and it hasn't received anything? That's exactly what would
>happen if the evaluation is not short circuited.

And you have a nasty race condition - if Serial.Received is false and
the trigger character arrives in time to get snagged by the "Get
Serial.Value", the entire expression fails (FALSE & TRUE = FALSE) and
the trigger character isn't detected.


>Kind of like 'what happens if I read a circular buffer ahead of the
>insert pointer'? Well, I'm going to read the entire buffer again...

Which is really dumb, since the firmware can easily do a test and
only advance the read pointer if it's not equal to the write pointer:

get_serial_dot_value:

// don't advance to next character if there isn't one

if (read_pointer != write_pointer)
increment read pointer (and wrap if now past end of buffer)

// return next available character
// (or same as last time if we don't have any new ones)

return (buffer[read_pointer])


It's really not rocket science...

Scott proclaimed one time that the (2.2+?) firmware only has one bug
in it. I doubt he meant this one.


...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: Serial To LCD messing up

--- In oopic@yahoogroups.com, Andrew Porrett <slicerwizard@...> wrote:
>
> At 11:20 AM 6/17/2008, ef721 wrote:
> >I'm using the oSerialH object
> >http://www.oopic.com/oserialh.htm
> >
> >It doesn't say anything about a four byte buffer but it would make
> >sense that a buffer like that is storing the values and repeating them
> >on output. Any idea how to clear this buffer ( if it exists)?
>
> Many of the old timers on this list have stayed away from the newer
> features of the V6 compiler. I suspect that this oSerialH object is
> one of them. Instead, we have usually used the oSerialPort object,
> which does have a four byte buffer and is known to work
> properly. Your code should work fine if you just change the one line
> where you declare your serial port.
>
>
> ...Andy
>

I can't speak for the new compiler but that logical expression in the
first IF statement caused the identical symptoms in V5 and B.2.2+.
Just breaking the statement into two if <expr> then ... end if solved
the problem.

I suspect there is an issue with not short circuiting the evaluation
when the first equality is false. So what happens when you read the
port and it hasn't received anything? That's exactly what would
happen if the evaluation is not short circuited.

Kind of like 'what happens if I read a circular buffer ahead of the
insert pointer'? Well, I'm going to read the entire buffer again...

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] Re: Serial To LCD messing up

At 11:20 AM 6/17/2008, ef721 wrote:
>I'm using the oSerialH object
>http://www.oopic.com/oserialh.htm
>
>It doesn't say anything about a four byte buffer but it would make
>sense that a buffer like that is storing the values and repeating them
>on output. Any idea how to clear this buffer ( if it exists)?

Many of the old timers on this list have stayed away from the newer
features of the V6 compiler. I suspect that this oSerialH object is
one of them. Instead, we have usually used the oSerialPort object,
which does have a four byte buffer and is known to work
properly. Your code should work fine if you just change the one line
where you declare your serial port.


...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: Serial To LCD messing up

I'm not sure but I think the OOPic compiler doesn't like that logical
expression in the first IF statement.

In any event, for the V5 compiler, the "Visual Basic" syntax and a
B.2.2+ chip, the following code works:

dim Serial As new oSerialPort
dim X As new oByte
dim Y As new oByte
dim total As new oByte

sub main()

X=0
Y=0
total=0

Serial.Baud = cv9600
Serial.Operate = cvOn

Start:
If (Serial.Received = cvTrue) then
if (Serial.Value = 35) Then
Serial.String = "got #" + Chr$(13) + Chr$(10)
Goto FirstDigit
End If
End If
Goto Start

FirstDigit:
If Serial.Received =cvTrue Then
X= Serial.Value
X = X - 48
Serial.String = "got 1st digit: "
Serial.String = Str$(X) + Chr$(13) + Chr$(10)
Goto SecondDigit
End If
Goto FirstDigit

SecondDigit:
If Serial.Received = cvTrue Then
Y = Serial.Value
Y = Y - 48
Serial.String = "got 2nd digit: "
Serial.String = Str$(Y) + Chr$(13) + Chr$(10)
Goto ProcessTones
End If
Goto SecondDigit

ProcessTones:
total = (X*10 +Y)
Serial.String = "Total = "
Serial.String = Str$(total) + Chr$(13) + Chr$(10)
Goto Start

end sub

I don't have the LCD so I dumped that code.

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: Serial To LCD messing up

--- In oopic@yahoogroups.com, Dave Warner <BIMI_TYEDYE@...> wrote:
>
>
> I think the serial object you're using may have like a four byte
buffer if I'm not mistaken. Check that and find out if that's hangin'
you up.
>
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_062008
>
> [Non-text portions of this message have been removed]
>

I'm using the oSerialH object

http://www.oopic.com/oserialh.htm

It doesn't say anything about a four byte buffer but it would make
sense that a buffer like that is storing the values and repeating them
on output. Any idea how to clear this buffer ( if it exists)?

Thanks so much!
,Eric


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

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: Serial To LCD messing up

I think the serial object you're using may have like a four byte buffer if I'm not mistaken. Check that and find out if that's hangin' you up.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_062008

[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] Re: Serial To LCD messing up

--- In oopic@yahoogroups.com, Andrew Porrett <slicerwizard@...> wrote:
>
> At 03:44 PM 6/16/2008, ef721 wrote:
> >Even when I output the data to serial it repeats. What am I doing
> >wrong and how do I clear that old data?
>
> Are you saying that the LCD.Clear command isn't working?
>
> The OOPic manual says that command only works on a Scott Edwards LCD
> module. If you're using a different module, you have to use its
> clear command (or you could write a bunch of blanks)
>
> Is this what your problem is?
>
>
> ...Andy
>

Thanks for the reply.

My problem is as follows, even in this case without an LCD it messes up:
I send the number "1" from the serial port to the ooPIC
The ooPIC reads it and sends it right back out to the serial port,
where it is read by terminal. Up to here everything is working fine
Then when I send another number , lets say "2" , the ooPIC sends out
the serial port the old number (1) AND the new number (2).
So on the terminal window I would see the arrangement "1 1 2".

Why does it store the old number in the ooPIC and how can I clear it,
or perhaps there is something else I could do?

Thanks for helping out here.


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

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] Brand new freebie page for this week

I was sent another excellent link by my friend. This is a link to a NEW FREEBIE PAGE for this week so I thought I would, share it with the group...enjoy!

The link goes to a web page where you can collect TONS of items for FREE! There is so much on offer that its definately worth the visit.
Keep your eyes open for new freebie pages, they post them each week!

http://moourl.com/freebiemix3

When you have had your freebies, be nice to your family and friends and pass on the link above, like I did!

Take care and have a great week!

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

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, June 16, 2008

[oopic] Re: yet another problem with events... urgent

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> I see where you have defined HOW to patch the code with the
constants
> and such but I don't see WHERE you installed the patch.

You will have to recalculate the event code location after you insert
the patch code. Also, I think that you have to separate the high and
low byte of the address. I usually try to keep my event code address
less than 256 to avoid this. If you move the event subroutine to the
top of the program (above Main) this should not be an issue and it
has the added benefit of not changing everytime you change the
program. It will change if you add or remove objects...they always
come first.

>
> See message 37874 (and the rest of the thread).
>
> I would DIM the oEvent first just to get a low address - not that it
> matters.
>
> If it still doesn't work after the patch is properly applied, you
will
> just have to wait for the revised compiler. Or find another way to
do
> the project.
>
> Richard
>
>
> --- In oopic@yahoogroups.com, "rauli.karki" <rauli.karki@> wrote:
> >
> > I have this kind of code and i can't get it work. Main-prosedure
is
> > working fine but when i launch event all outputs changes
condition and
> > then it takes while when board resets itself... Oopic III+ C1.1+
> >
> > Dim Valo1 As New oDIO1 (26,cvOutput)
> > Dim Valo2 As New oDIO1 (28,cvOutput)
> > Dim Valo3 As New oDIO1 (11,cvOutput)
> > Dim Valo4 As New oDIO1 (13,cvOutput)
> > Dim Valo5 As New oDIO1 (14,cvOutput)
> >
> > Dim Pun As New oButton
> > Dim Vih As New oButton
> > Dim Kyt As New oButton
> >
> > Dim A As New oEvent
> > Dim D As New oDIO1
> > Dim W As New oWire
> >
> > ' I have tried this fix but it didnt help...
> > Dim RAM_Access3 As oRAM
> > Const Event_Obj_Location3 = 332 ' oEvent "Event" memory location
> > Const EventCode_Location_Hi3 = 1 ' Event_Code EEPROM location High
> > Const EventCode_Location_Lo3 = 76 ' Event_Code EEPROM location Low
> >
> >
> > Sub Main()
> > Pun.IOLine = 16
> > Vih.IOLine = 4
> > Kyt.IOLine = 18
> >
> > D.IOLine = 1
> > D.Direction = cvInput
> > W.Input.Link(D)
> > W.Output.Link(A.Operate)
> > W.InvertIn = cvTrue
> > W.Operate = cvTrue
> >
> > Valo5 = 0
> > ooPIC.Delay = 1000
> > Sekvenssi
> > Valo5 = 1
> >
> > Do
> > If Kyt = 0 Then
> > If Pun = 0 Then
> > Sekvenssi
> > End If
> > End If
> >
> > If Kyt = 1 Then
> > If Pun = 0 Then
> > Valo1 = 0
> > Valo2 = 0
> > Valo3 = 0
> > Valo4 = 0
> > ' Valo5 = 0
> > ooPIC.Delay = 100
> > End If
> > If Vih = 0 Then
> > Valo1 = 1
> > Valo2 = 1
> > Valo3 = 1
> > Valo4 = 1
> > ' Valo5 = 1
> > ooPIC.Delay = 100
> > End If
> > End If
> > Loop
> >
> > End Sub
> >
> > Sub Sekvenssi
> > Valo1 = 0
> > ooPIC.Delay = 1000
> > Valo2 = 0
> > ooPIC.Delay = 1000
> > Valo3 = 0
> > ooPIC.Delay = 1000
> > Valo4 = 0
> > ooPIC.Delay = 1500
> > Valo1 = 1
> > Valo2 = 1
> > Valo3 = 1
> > Valo4 = 1
> > End Sub
> >
> > Sub A_Code()
> > Do Until Vih = 0
> > Valo5.Value = ooPIC.Hz1
> > Loop
> > ooPIC.Delay = 500
> > Valo5 = 1
> > End Sub
> >
>

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

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: yet another problem with events... urgent

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> I see where you have defined HOW to patch the code with the
constants
> and such but I don't see WHERE you installed the patch.

You will have to recalculate the event code location after you insert
the patch code. Also, I think that you have to separate the high and
low byte of the address. I usually try to keep my event code address
less than 256 to avoid this. If you move the event subroutine to the
top of the program (above Main) this should not be an issue and it
has the added benefit of not changing everytime you change the
program. It will change if you add or remove objects...they always
come first.

>
> See message 37874 (and the rest of the thread).
>
> I would DIM the oEvent first just to get a low address - not that it
> matters.
>
> If it still doesn't work after the patch is properly applied, you
will
> just have to wait for the revised compiler. Or find another way to
do
> the project.
>
> Richard
>
>
> --- In oopic@yahoogroups.com, "rauli.karki" <rauli.karki@> wrote:
> >
> > I have this kind of code and i can't get it work. Main-prosedure
is
> > working fine but when i launch event all outputs changes
condition and
> > then it takes while when board resets itself... Oopic III+ C1.1+
> >
> > Dim Valo1 As New oDIO1 (26,cvOutput)
> > Dim Valo2 As New oDIO1 (28,cvOutput)
> > Dim Valo3 As New oDIO1 (11,cvOutput)
> > Dim Valo4 As New oDIO1 (13,cvOutput)
> > Dim Valo5 As New oDIO1 (14,cvOutput)
> >
> > Dim Pun As New oButton
> > Dim Vih As New oButton
> > Dim Kyt As New oButton
> >
> > Dim A As New oEvent
> > Dim D As New oDIO1
> > Dim W As New oWire
> >
> > ' I have tried this fix but it didnt help...
> > Dim RAM_Access3 As oRAM
> > Const Event_Obj_Location3 = 332 ' oEvent "Event" memory location
> > Const EventCode_Location_Hi3 = 1 ' Event_Code EEPROM location High
> > Const EventCode_Location_Lo3 = 76 ' Event_Code EEPROM location Low
> >
> >
> > Sub Main()
> > Pun.IOLine = 16
> > Vih.IOLine = 4
> > Kyt.IOLine = 18
> >
> > D.IOLine = 1
> > D.Direction = cvInput
> > W.Input.Link(D)
> > W.Output.Link(A.Operate)
> > W.InvertIn = cvTrue
> > W.Operate = cvTrue
> >
> > Valo5 = 0
> > ooPIC.Delay = 1000
> > Sekvenssi
> > Valo5 = 1
> >
> > Do
> > If Kyt = 0 Then
> > If Pun = 0 Then
> > Sekvenssi
> > End If
> > End If
> >
> > If Kyt = 1 Then
> > If Pun = 0 Then
> > Valo1 = 0
> > Valo2 = 0
> > Valo3 = 0
> > Valo4 = 0
> > ' Valo5 = 0
> > ooPIC.Delay = 100
> > End If
> > If Vih = 0 Then
> > Valo1 = 1
> > Valo2 = 1
> > Valo3 = 1
> > Valo4 = 1
> > ' Valo5 = 1
> > ooPIC.Delay = 100
> > End If
> > End If
> > Loop
> >
> > End Sub
> >
> > Sub Sekvenssi
> > Valo1 = 0
> > ooPIC.Delay = 1000
> > Valo2 = 0
> > ooPIC.Delay = 1000
> > Valo3 = 0
> > ooPIC.Delay = 1000
> > Valo4 = 0
> > ooPIC.Delay = 1500
> > Valo1 = 1
> > Valo2 = 1
> > Valo3 = 1
> > Valo4 = 1
> > End Sub
> >
> > Sub A_Code()
> > Do Until Vih = 0
> > Valo5.Value = ooPIC.Hz1
> > Loop
> > ooPIC.Delay = 500
> > Valo5 = 1
> > End Sub
> >
>

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

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: Serial To LCD messing up

At 03:44 PM 6/16/2008, ef721 wrote:
>Even when I output the data to serial it repeats. What am I doing
>wrong and how do I clear that old data?

Are you saying that the LCD.Clear command isn't working?

The OOPic manual says that command only works on a Scott Edwards LCD
module. If you're using a different module, you have to use its
clear command (or you could write a bunch of blanks)

Is this what your problem is?


...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] need help with my project

Hi, since now I've got the LCD working, I have a problem with the timing.
I'm building a project where it uses ultrasound to measure distance. It's a
lot like the SRF04, but I'm using an oopic-R, NE555 (as transmitter), and a
different receiver. The basic concept is that the oopic will enable the 555
to transmit a 40-kHz pulse out, start the timer (oTimer, internal clock),
and once received back, stop the timer and display the results on the LCD.
So far, I've used the oMath, oflipflop, oSonarDV, and the code out of the
oopic book for oopic-1 to enable/disable oTimer. None has worked. Note:
when the receiver receives a signal, the output swings to logic high, if
there is no signal, its logic low. For the transmitter, logic high will
enable the 555; a logic low will disable it.

This is not very urgent, but I do have a due date of next school year (Aug.
25; I'm going to enter it into the science fair), and I'm barely half done
with the entire project. I've been trying to resolve this for a while now.
Thanks to all.

Here's my current code:

oLCD Print = New oLCD;

oTimer TICS = New oTimer;

oDIO1 Echo = New oDIO1; // receive line

oWire Conn = New oWire;

oDIO1 Trigger = New oDIO1; // transmit line

oFlipFlop Math = New oFlipFlop;

oBit Operate = New oBit;

// Indicator

oDIO1 trans = New oDIO1;

oDIO1 rec = New oDIO1

oWire transW = New oWire;

oWire recW = New oWire;

Void main(Void)

{

// Sets up LCD

Print.IOGroup = 3;

Print.Nibble = 1;

Print.IOLineE = 14;

Print.IOLineRS = 15;

Print.Operate = cvTrue;

Print.Init;

Print.Clear;

// sonar I/O and timer

TICS.PreScale = 0;

TICS.Operate = cvFalse;

TICS = 0;

Echo.IOLine = 18;

Echo.Direction = cvInput;

Trigger.IOLine = 27;

Trigger.Direction = cvOutput;

Trigger = 0;

Conn.Input.Link(Operate);

Conn.InvertIn = cvTrue;

Conn.Output.Link(TICS.Operate);

Conn.Operate = cvFalse;

// Set up indicator (for debugging)

trans.IOLine = 5;

trans.Direction = cvOutput;

rec.IOLine = 6;

rec.Direction = cvOutput;

transW.Input.Link (Trigger);

transW.Output.Link (trans);

transW.Operate = cvTrue;

recW.Input.Link (Echo);

recW.Output.Link (rec);

recW.Operate = cvTrue;

// Set up math

Math.Input1.Link (Echo);

Math.Input2.Link (Trigger);

Math.Output.Link (Operate);

ooPIC.Delay = 200;

While (1)

{

ooPIC.Delay = 100;

Math.Operate = cvTrue;

Conn.Operate = cvTrue;

TICS = 0;

Trigger = 1;

ooPIC.Delay = 20;

Trigger = 0;

If (Echo == 0)

{

Math.Operate = cvFalse;

Conn.Operate = cvFalse;

Print.VString = Str$(TICS.Count);

ooPIC.Delay = 100;

Print.Clear;

}

Print.Clear;

}

}

_________________________

Ray Xu

rayxu@tx.rr.com

No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 6/16/2008
7:20 AM


[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] Re: Serial To LCD messing up

--- In oopic@yahoogroups.com, Andrew Porrett <slicerwizard@...> wrote:

> If you're seeing multiple input sequences on your LCD, either your PC
> is somehow sending the old data along with the new data (unlikely if
> you're just using a simple terminal emulator program), or the
> previously displayed data on the LCD isn't being cleared properly.
>
> We're not there - you are. You'll have to figure out which of these
> two possibilities is the culprit.
>
>
> ...Andy
>

Even when I output the data to serial it repeats. What am I doing
wrong and how do I clear that old 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: yet another problem with events... urgent

I see where you have defined HOW to patch the code with the constants
and such but I don't see WHERE you installed the patch.

See message 37874 (and the rest of the thread).

I would DIM the oEvent first just to get a low address - not that it
matters.

If it still doesn't work after the patch is properly applied, you will
just have to wait for the revised compiler. Or find another way to do
the project.

Richard


--- In oopic@yahoogroups.com, "rauli.karki" <rauli.karki@...> wrote:
>
> I have this kind of code and i can't get it work. Main-prosedure is
> working fine but when i launch event all outputs changes condition and
> then it takes while when board resets itself... Oopic III+ C1.1+
>
> Dim Valo1 As New oDIO1 (26,cvOutput)
> Dim Valo2 As New oDIO1 (28,cvOutput)
> Dim Valo3 As New oDIO1 (11,cvOutput)
> Dim Valo4 As New oDIO1 (13,cvOutput)
> Dim Valo5 As New oDIO1 (14,cvOutput)
>
> Dim Pun As New oButton
> Dim Vih As New oButton
> Dim Kyt As New oButton
>
> Dim A As New oEvent
> Dim D As New oDIO1
> Dim W As New oWire
>
> ' I have tried this fix but it didnt help...
> Dim RAM_Access3 As oRAM
> Const Event_Obj_Location3 = 332 ' oEvent "Event" memory location
> Const EventCode_Location_Hi3 = 1 ' Event_Code EEPROM location High
> Const EventCode_Location_Lo3 = 76 ' Event_Code EEPROM location Low
>
>
> Sub Main()
> Pun.IOLine = 16
> Vih.IOLine = 4
> Kyt.IOLine = 18
>
> D.IOLine = 1
> D.Direction = cvInput
> W.Input.Link(D)
> W.Output.Link(A.Operate)
> W.InvertIn = cvTrue
> W.Operate = cvTrue
>
> Valo5 = 0
> ooPIC.Delay = 1000
> Sekvenssi
> Valo5 = 1
>
> Do
> If Kyt = 0 Then
> If Pun = 0 Then
> Sekvenssi
> End If
> End If
>
> If Kyt = 1 Then
> If Pun = 0 Then
> Valo1 = 0
> Valo2 = 0
> Valo3 = 0
> Valo4 = 0
> ' Valo5 = 0
> ooPIC.Delay = 100
> End If
> If Vih = 0 Then
> Valo1 = 1
> Valo2 = 1
> Valo3 = 1
> Valo4 = 1
> ' Valo5 = 1
> ooPIC.Delay = 100
> End If
> End If
> Loop
>
> End Sub
>
> Sub Sekvenssi
> Valo1 = 0
> ooPIC.Delay = 1000
> Valo2 = 0
> ooPIC.Delay = 1000
> Valo3 = 0
> ooPIC.Delay = 1000
> Valo4 = 0
> ooPIC.Delay = 1500
> Valo1 = 1
> Valo2 = 1
> Valo3 = 1
> Valo4 = 1
> End Sub
>
> Sub A_Code()
> Do Until Vih = 0
> Valo5.Value = ooPIC.Hz1
> Loop
> ooPIC.Delay = 500
> Valo5 = 1
> End Sub
>

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

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] yet another problem with events... urgent

I have this kind of code and i can't get it work. Main-prosedure is
working fine but when i launch event all outputs changes condition and
then it takes while when board resets itself... Oopic III+ C1.1+

Dim Valo1 As New oDIO1 (26,cvOutput)
Dim Valo2 As New oDIO1 (28,cvOutput)
Dim Valo3 As New oDIO1 (11,cvOutput)
Dim Valo4 As New oDIO1 (13,cvOutput)
Dim Valo5 As New oDIO1 (14,cvOutput)

Dim Pun As New oButton
Dim Vih As New oButton
Dim Kyt As New oButton

Dim A As New oEvent
Dim D As New oDIO1
Dim W As New oWire

' I have tried this fix but it didnt help...
Dim RAM_Access3 As oRAM
Const Event_Obj_Location3 = 332 ' oEvent "Event" memory location
Const EventCode_Location_Hi3 = 1 ' Event_Code EEPROM location High
Const EventCode_Location_Lo3 = 76 ' Event_Code EEPROM location Low


Sub Main()
Pun.IOLine = 16
Vih.IOLine = 4
Kyt.IOLine = 18

D.IOLine = 1
D.Direction = cvInput
W.Input.Link(D)
W.Output.Link(A.Operate)
W.InvertIn = cvTrue
W.Operate = cvTrue

Valo5 = 0
ooPIC.Delay = 1000
Sekvenssi
Valo5 = 1

Do
If Kyt = 0 Then
If Pun = 0 Then
Sekvenssi
End If
End If

If Kyt = 1 Then
If Pun = 0 Then
Valo1 = 0
Valo2 = 0
Valo3 = 0
Valo4 = 0
' Valo5 = 0
ooPIC.Delay = 100
End If
If Vih = 0 Then
Valo1 = 1
Valo2 = 1
Valo3 = 1
Valo4 = 1
' Valo5 = 1
ooPIC.Delay = 100
End If
End If
Loop

End Sub

Sub Sekvenssi
Valo1 = 0
ooPIC.Delay = 1000
Valo2 = 0
ooPIC.Delay = 1000
Valo3 = 0
ooPIC.Delay = 1000
Valo4 = 0
ooPIC.Delay = 1500
Valo1 = 1
Valo2 = 1
Valo3 = 1
Valo4 = 1
End Sub

Sub A_Code()
Do Until Vih = 0
Valo5.Value = ooPIC.Hz1
Loop
ooPIC.Delay = 500
Valo5 = 1
End Sub


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

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, June 15, 2008

Re: [oopic] Re: Serial To LCD messing up

At 12:57 AM 6/16/2008, ef721 wrote:
>I think the problem might be something that keeps on storing but not
>clearing.

If there is, it's not in the OOPic.


> Maybe some array or something ,

You're not using any arrays.


> or perhaps the serial buffer
>is storing past numbers sent.

No, it doesn't do that.


> Anybody have any clue how to clear those
>things , and what exactly needs to be cleared.

If you're seeing multiple input sequences on your LCD, either your PC
is somehow sending the old data along with the new data (unlikely if
you're just using a simple terminal emulator program), or the
previously displayed data on the LCD isn't being cleared properly.

We're not there - you are. You'll have to figure out which of these
two possibilities is the culprit.


...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: Serial To LCD messing up

--- In oopic@yahoogroups.com, David Warner <bimityedye@...> wrote:
>
>
> Nope Sorry I see you did read the serial value!
>
> --- On Sun, 6/15/08, ef721 <ef721@...> wrote:


I think the problem might be something that keeps on storing but not
clearing. Maybe some array or something , or perhaps the serial buffer
is storing past numbers sent. Anybody have any clue how to clear those
things , and what exactly needs to be cleared.

Thanks guys , appreciate it


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

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] Serial To LCD messing up

Nope Sorry I see you did read the serial value!

--- On Sun, 6/15/08, ef721 <ef721@yahoo.com> wrote:

From: ef721 <ef721@yahoo.com>
Subject: [oopic] Serial To LCD messing up
To: oopic@yahoogroups.com
Date: Sunday, June 15, 2008, 3:10 AM


I am passing a string of numbers to an ooPIC-R through a serial port
and having it display the numbers on a serial LCD. The first time it
gets the string it displays the number correctly. But the second time
it will first show the first string number it received from before and
then show the second string number it received now. Here is my code:
The string of numbers I send from the PC is in the format #xx , e.g.
#12 or #48.
Thank you so much for your help!

,Eric

LCD As oLCDSE
Serial As oSerialH
X As oByte
Y As oByte
total As Byte
X=0
Y=0
total=0

LCD.IOLine = 16
LCD.Baud = cv9600
LCD.Clear
Serial.Operate = cvOn
Serial.Baud = cv9600

Start:
If Serial.Received = cvTrue And Serial.Value = 35 Then
LCD.VString = "got #"
Goto FirstDigit
EndIf
Goto Start

FirstDigit:
If Serial.Received =cvTrue Then
X= Serial.Value
X = X - 48
LCD.Clear
LCD.VString = "got 1st digit: "
LCD.VString = Str$(X)
Goto SecondDigit
EndIf
Goto FirstDigit

SecondDigit:
If Serial.Received = cvTrue Then
Y = Serial.Value
Y = Y - 48
LCD.VString = "got 2nd digit: "
LCD.VString = Str$(Y)
Goto ProcessTones
EndIf
Goto SecondDigit

ProcessTones:
LCD.Clear
total = (X*10 +Y)
LCD.VString = Str$(total)
Serial.VString = Str$(total)
Delay = 2000
LCD.Clear
LCD.VString = " Ready "

Goto Start


[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/