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

Re: [oopic] Serial To LCD messing up

At 12:08 AM 6/16/2008, David Warner wrote:
>I believe the first serial value must be read to clear things for
>the second digit. You didn't read the first digit.

Sure he does. "X= 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

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

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

I believe the first serial value must be read to clear things for the second digit. You didn't read the first digit.

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

[oopic] Re: Serial To LCD messing up

Someone please help , I need it done this week!

Thank you so much in advance!


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

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: Res: [oopic] IR QRB1134 Sensor

If you were trying to drive Timer 1 with an external frequency source
(xtal) this is where you make the connection. See oTimer.ExtClock

IOLine 17 is also one of the 2 hardware PWM ports (IOLine 18 is the
other). See oPWMH

Richard

--- In oopic@yahoogroups.com, Helder Oliveira de Castro
<helder_t08@...> wrote:
>
> Sorry, I mean IO Lines 16 and 17 instead of pins 16 and 17!
>
>
> ----- Mensagem original ----
> De: Helder Oliveira de Castro <helder_t08@...>
> Para: oopic@yahoogroups.com
> Enviadas: Domingo, 15 de Junho de 2008 14:25:00
> Assunto: [oopic] IR QRB1134 Sensor
>
>
> Hi,
>
> Does anybody knows what pins 16 and 17 in ooPIC-S board do? They
mention "RC0 - Timer 1 Xtal" for pin 16, but I have no idea what this
means.
>
> Is there any kind of problem if I connect an IR QRB1134 Sensor (for
wheel encoder) to one of these pins? Can I damage my ooPIC or my sensor?
>
> Thanks.
>
> Abra sua conta no Yahoo! Mail, o único sem limite de espaço para
armazenamento!
> http://br.mail. yahoo.com/
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Abra sua conta no Yahoo! Mail, o único sem limite de espaço
para armazenamento!
> http://br.mail.yahoo.com/
>
> [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: ooPIC-R Optional Voltage Regulator

--- In oopic@yahoogroups.com, "dan michaels" <oric_dan@...> wrote:
>
> --- In oopic@yahoogroups.com, "rtstofer" <rstofer@> wrote:
> >
> > >
> > > You can mount a heatsink (permanently) to any chip with thermal
> > > epoxy - but I think that you are right, I should just fire the
> thing up and see if it works.
> > >
> >
> > I guess you could glue the heatsink to the plastic case but I'm not
> > sure how effective it would be. The VR is designed to move the heat
> > to the tab and fron the tab to the PCB. I would think the thermal
> > resistance of the plastic would be a limiting factor on the efficacy
> > of a glued on heatsink.
> >
> > Richard
> >
>


I have just confirmed (with the meter) that these sensors do draw
about 330mA. I will be gluing a heatsink onto the LM1084. The
housing seems to be ceramic rather than plastic, so it should help to
eliminate some heat.


>
> This is true, but since the top of the chip can get pretty darn hot
> too, adding a heatsink there should help.
>

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

Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

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

Res: [oopic] IR QRB1134 Sensor

Sorry, I mean IO Lines 16 and 17 instead of pins 16 and 17!


----- Mensagem original ----
De: Helder Oliveira de Castro <helder_t08@yahoo.com.br>
Para: oopic@yahoogroups.com
Enviadas: Domingo, 15 de Junho de 2008 14:25:00
Assunto: [oopic] IR QRB1134 Sensor


Hi,

Does anybody knows what pins 16 and 17 in ooPIC-S board do? They mention "RC0 - Timer 1 Xtal" for pin 16, but I have no idea what this means.

Is there any kind of problem if I connect an IR QRB1134 Sensor (for wheel encoder) to one of these pins? Can I damage my ooPIC or my sensor?

Thanks.

Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail. yahoo.com/

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


Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/

[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] IR QRB1134 Sensor

Hi,

Does anybody knows what pins 16 and 17 in ooPIC-S board do? They mention "RC0 - Timer 1 Xtal" for pin 16, but I have no idea what this means.

Is there any kind of problem if I connect an IR QRB1134 Sensor (for wheel encoder) to one of these pins? Can I damage my ooPIC or my sensor?

Thanks.

Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/

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