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.

Thursday, January 31, 2008

[oopic] Re: SCPI commands

The meter is able to have the communication slow to 2400 if need be on
the initial setup command. The example string that I mentioned is
outgoing to the meter so it could probably be sent in pieces without a
problem. I don't think it will do anything else until it get the
<CR><LF>.
Getting the data back may be another issue however. I expect a data
string of something like +X.XXXXXXXXE+xx after sending a "READ?"
command. I don't think the 232 - optical interface cable has any
handshaking setup so hopefully I can write the data quickly to another
buffer object without any loss of digits


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 // ooBug Beta Testers Wanted !

Hello all.

Savage Innovations needs your help. We have a new oopic product that
is in preproduction right now and need a few qualified members of the
users community to test out the programming and electronics
capabilities.

We have posted the requirements at the following site.

http://oobug.com/index.html

You will need to follow the BETA TESTER
link.

3 positions available to those that have the time, experience and
ability to follow through with a project. Application is an online
form and selections will begin Feb 11, 2008.

You will receive a free ooBug robot for your time.

Feel free to contact me with any questions.

Thank you.

Ted M.
Product Development
Savage Innovations


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: Error: 12- Invalid member of oByte

Thanks for letting us know what the final "fix" was.

DLC

Zee Hang Quan wrote:
> I just have the line:
>
> led1 As oLED
>
> But thanks it works now, I took out the Chinese as language of the
> Windows. So it works.
>
> Thank you guys. I didn't thought that will affect the compiler
>
>
>
>
> 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: SCPI commands

--- In oopic@yahoogroups.com, "s.k.f." <scottandjoey@...> wrote:
>
> Has anyone tried using the SCPI on an OOPic device. I have my
hardware
> set up to send and receive but am unsure about the formating of the
> data stream. The default it 9600,n,8,1 but the commands are listed as
> an ascII string something like CONFigure:VOLTage:DC 0.5 <CR><LF>.
(The
> Caps are what is supposed to be sent). This is from a VB example.
>
> As the meter is out of town I cannot check any code till I get it
back
> but would it be as simple as sending out the
> string "CONF:VOLT:DC0.5"&H0D&H0A
>

Sure, the OOPic can send the string but with somewhat different
syntax. Probably something like:

Dim s as new oSerialPort

sub main()

s.baud = cv9600
s.operate = cvOn
s.value = "CONF:VOLT:DC0.5"
s.value = 13
s.value = 10

end sub

You might be able to concatenate the CR and LF to the first string but
I haven't tried it in a while.

Where you may have a problem is the fact that the oSerialPort only has
a 4 byte buffer. It is possible the instrument will send the data
faster than the OOPic can process it.

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] SCPI commands

Has anyone tried using the SCPI on an OOPic device. I have my hardware
set up to send and receive but am unsure about the formating of the
data stream. The default it 9600,n,8,1 but the commands are listed as
an ascII string something like CONFigure:VOLTage:DC 0.5 <CR><LF>. (The
Caps are what is supposed to be sent). This is from a VB example.

As the meter is out of town I cannot check any code till I get it back
but would it be as simple as sending out the
string "CONF:VOLT:DC0.5"&H0D&H0A


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: Error: 12- Invalid member of oByte

I just have the line:

led1 As oLED

But thanks it works now, I took out the Chinese as language of the
Windows. So it works.

Thank you guys. I didn't thought that will affect the compiler


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, January 30, 2008

Re: [oopic] Error: 12- Invalid member of oByte

oByte does not have an IOLine attribute. I'd like to see the code that
runs on one station but not another. There are known problems with the
ooPIC compilers on a Chinese locale and I think a Korean locale. What
locale are you using?

DLC

Zee Hang Quan wrote:
> Hi, can someone help me with my problem.
>
> I just install the ooPic compiler 6.1.1 And I try to run the some
> tutorial programs and doesn't work. It show me error 12 that IOLine
> is not member of oByte
>
> I search for previous post about this but I couldn't find what it
> means. I look through the compiler and there is nothing about
> compatibility with the version 5. My classmate install the same
> program and works for Him.
>
> Can someone please help me out? Is there any extra patch that I need?
> Do I need any additional components?
>
> I think it is a stand-alone program right?
>
> I hope to see some reply, thank you
>
>
>
>
> 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: Error: 12- Invalid member of oByte

--- In oopic@yahoogroups.com, "Zee Hang Quan" <fq_15@...> wrote:
>
>
> Hi, can someone help me with my problem.
>
> I just install the ooPic compiler 6.1.1 And I try to run the some
> tutorial programs and doesn't work. It show me error 12 that IOLine
> is not member of oByte
>
> I search for previous post about this but I couldn't find what it
> means. I look through the compiler and there is nothing about
> compatibility with the version 5. My classmate install the same
> program and works for Him.
>
> Can someone please help me out? Is there any extra patch that I
need?
> Do I need any additional components?
>
> I think it is a stand-alone program right?
>
> I hope to see some reply, thank you
>

Post your code!

Why would an oByte have an .IOLine property? An oDIO1 has an IOLine
because it does IO. But an oByte doesn't do any IO.

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] Error: 12- Invalid member of oByte

Hi, can someone help me with my problem.

I just install the ooPic compiler 6.1.1 And I try to run the some
tutorial programs and doesn't work. It show me error 12 that IOLine
is not member of oByte

I search for previous post about this but I couldn't find what it
means. I look through the compiler and there is nothing about
compatibility with the version 5. My classmate install the same
program and works for Him.

Can someone please help me out? Is there any extra patch that I need?
Do I need any additional components?

I think it is a stand-alone program right?

I hope to see some reply, thank you


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: OT: Has anyone played with the SunSpot devices?

--- In oopic@yahoogroups.com, "jasuk1970" <mail@...> wrote:
>
> I've just seen an article about them and they look quite interesting.
>
> http://www.sunspotworld.com/products/
>
> Jas
>

I have seen some of the literature before. I hope they can eventually
get the price down to something reasonable.

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] OT: Has anyone played with the SunSpot devices?

I've just seen an article about them and they look quite interesting.

http://www.sunspotworld.com/products/

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/

Tuesday, January 29, 2008

Re: [oopic] Re: Induction Motor control using ooPIC

I can't add much to this. Induction and brushless motors take a _lot_
of processing horsepower to do their job.

DLC

rtstofer wrote:
> --- In oopic@yahoogroups.com, "john.willium" <john.willium@...> wrote:
>
>> Hi Dennis,
>> I want to change the speed of the induction motor according to an
>> analog signal. I can give this signal to I/O line 1 to A/D conversion.
>> So according to the value (0-255), I want to change the speed of the
>> induction motor. For example, 100 rpm min & 1500 rpm max.
>>
>> The thing what I want to clarify is whether ooPIC can be used for this
>> purpose. Bcoz I'm familiar with ooPIC & know this is capable of
>> controlling servo motors.
>>
>> Regards,
>> John
>>
>
> You are trying to make a Variable Speed Drive (VSD) and this takes a
> LOT more electronics than an OOPic. Especially if the motor is more
> than a tiny fraction of a HP.
>
> You need to be able to create a square wave of appropriate voltage that
> varies in frequency from 3 to 60 Hz (90 - 1800 RPM 4-pole motor). This
> squarewave needs to be able to drive whatever current the motor
> requires.
>
> Normally this process goes: bring in AC, rectify it to DC, filter,
> switch to motor windings.
>
> Further, VFDs normally drive 3 phase motors although the second
> reference below shows driving single phase motors.
>
> There are references all over the place but here is one from Microchip:
> http://ww1.microchip.com/downloads/en/DeviceDoc/01033B%2041.pdf and
> http://ww1.microchip.com/downloads/en/AppNotes/AC%20Induction%20Motor%
> 2000984a.pdf
>
> See also
> http://www.aosmithmotors.com/html/motorDoctor/Understandingmotorspeed.ht
> m
>
> In the end, you won't be using an OOPic for this job.
>
> Richard
>
>
>
>
>
>
> 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: Can I update the firmware of an OOPic-R?

Darn that's a bummer. Thanks for the info thou.

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...> wrote:
>
> Indeed you can, here are the details:
>
> Dennis, The folks need to send the units to:
>
> Savage Innovations
> 906 Bob Wallace Ave Suite F.
> Huntsville Al 35801
> The cost is $9.95 plus freight
> Checks also need to be made to Savage Innovations or call to use credit
> card.
> 256 519 8051 ext115
> Ask for Kim
>
> You need to send the board in, the firmware is not field upgradeable.
>
> thanks,
> DLC
>
> Fiebigc wrote:
> > I have an OOPic-R with a sticker that says firmware B2.2+ on the
> > processor. I would really like to try and upgrade to the C1 firmware.
> > Is this possible and if so how do I go about this? I couldn't find
> > any info at www.oopic.com.

Thanks.
> >
> >
> >
> >
> > 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: Induction Motor control using ooPIC

--- In oopic@yahoogroups.com, "john.willium" <john.willium@...> wrote:
>
> Hi Dennis,
> I want to change the speed of the induction motor according to an
> analog signal. I can give this signal to I/O line 1 to A/D conversion.
> So according to the value (0-255), I want to change the speed of the
> induction motor. For example, 100 rpm min & 1500 rpm max.
>
> The thing what I want to clarify is whether ooPIC can be used for this
> purpose. Bcoz I'm familiar with ooPIC & know this is capable of
> controlling servo motors.
>
> Regards,
> John

You are trying to make a Variable Speed Drive (VSD) and this takes a
LOT more electronics than an OOPic. Especially if the motor is more
than a tiny fraction of a HP.

You need to be able to create a square wave of appropriate voltage that
varies in frequency from 3 to 60 Hz (90 - 1800 RPM 4-pole motor). This
squarewave needs to be able to drive whatever current the motor
requires.

Normally this process goes: bring in AC, rectify it to DC, filter,
switch to motor windings.

Further, VFDs normally drive 3 phase motors although the second
reference below shows driving single phase motors.

There are references all over the place but here is one from Microchip:

http://ww1.microchip.com/downloads/en/DeviceDoc/01033B%2041.pdf and
http://ww1.microchip.com/downloads/en/AppNotes/AC%20Induction%20Motor%
2000984a.pdf

See also

http://www.aosmithmotors.com/html/motorDoctor/Understandingmotorspeed.ht
m

In the end, you won't be using an OOPic for this job.

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: Induction Motor control using ooPIC

Hi Dennis,
I want to change the speed of the induction motor according to an
analog signal. I can give this signal to I/O line 1 to A/D conversion.
So according to the value (0-255), I want to change the speed of the
induction motor. For example, 100 rpm min & 1500 rpm max.

The thing what I want to clarify is whether ooPIC can be used for this
purpose. Bcoz I'm familiar with ooPIC & know this is capable of
controlling servo motors.

Regards,
John

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...> wrote:
>
> It depends upon what you want to do.
>
> DLC
>
> john.willium wrote:
> > Hi,
> >
> > Can anybody tell whether it is possible to control the speed of the
> > induction motor using ooPIC? Is the speed of ooPIC enough for this?
> >
> > I want to know whether there will be a problem regarding the
> > processing speed @ high speed of motor arnd 1500 rpm...
> >
> > Thanks a lot,
> > John
> >
> >
> >
> >
> > 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: 1-part and 3-part harmony analogy.

--- In oopic@yahoogroups.com, "c2cam1234" <c2cam1234@...> wrote:
>
> Thanks for the quick response, rtstofer!
>
> Let me get this straight: Yes, the sample file,
> Sample-B-hd-Jinglebells-V6.osc, uses the Freq property in the oFreqH
> object, but *by analogy* (i.e., instead of musical notes, LEDs are
> used like switches - not using oFreqH, but other objects or code), are
> you implying that two or more switches can't be controlled
> concurrently and in sequence?
>
> Any free code out there for this?
>
> Thanks

I don't understand your question or the analogy.

You can have a lot of digital inputs and outputs. You can even have
analog inputs and create analog outputs using oPWMH. But LEDs are
outputs, switches are inputs and oFreq is an output (and there is only
one instance).

But, regardless of how many inputs you have, your code, having analyzed
the switches, can only set a single value (at a time) into the
frequency property. There is no way to add 3 different frequencies and
get harmony because there aren't 3 timers to do it with.

Look in the Files section for a lot of free code but there won't be
code to do what you are asking.

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: 1-part and 3-part harmony analogy.

Thanks for the quick response, rtstofer!

Let me get this straight: Yes, the sample file,
Sample-B-hd-Jinglebells-V6.osc, uses the Freq property in the oFreqH
object, but *by analogy* (i.e., instead of musical notes, LEDs are
used like switches - not using oFreqH, but other objects or code), are
you implying that two or more switches can't be controlled
concurrently and in sequence?

Any free code out there for this?

Thanks


--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "c2cam1234" <c2cam1234@> wrote:
> >
> > In OoPIC v6 there's a sample program called,
> > Sample-B-hd-Jinglebells-V6.osc.
> >
> > It has a series of 4 notes. I see this as 4 switches operated in
> > sequence.
> >
> > What would the program look like for 3-part harmony -- that is, 3
> > switches operated concurrently and in sequence?
> >
> > Any free code out there for this?
> >
> > Thanks
> >
>
> Not going to happen! There is only one timer generating a single
> frequency connected to a single pin.
>
> See in the oSpeaker documentation:
>
> The Freq property is an instance of the oFreqH object which the
> oSpeaker Object uses to generate a square wave output to drive the
> speaker. Since all instances of the oFreqH Object use the same PIC
> hardware then all instances of the oSpeaker Object will output at the
> same frequency. Also note that all other objects that use the
> oFreqH object will also use the same 16-Bit value as well. (see
> oFreqH Object for more detail)
>
> 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] Range Sensors

The MAXSONAR's are very cool. Being able to use them with the oA2D
object makes them very easy to use as well. I'm using some of them
myself. They have the issues that SONAR always has, but they don't have
the issues that the IR rangers have. In short, they are a good thing to
use for medium range (1 foot to 10 feet, IMO.

DLC

jasuk1970 wrote:
> Hi,
> Has anyone used the MaxSonar LV EZ1 range sensor before?
>
> Due to an accident with too much bare capacitor legs causing a short
> (It was an honest mistake honest!) I've managed to kill my Sharp
> GP2d120's. For a replacement, I was thinking about using ultrasonic
> instead of IR.
>
> Firstly, is this a better way of object sensing?
>
> Secondly what sensor to use? I am going to have 3 in total on the
> front of my Rogue Blue ERS robot chassis.
>
> The one I was looking at was:
> http://www.robotchat.org/index.php?topic=11.0
>
> This is due to it using a analogue voltage as an option (Which is
> great for my OOBoard) I've looked at the Daventech ones but they seem
> a lot more complicated to read from. (And the higher models require
> I2C bus)
>
> Are there better ones at around the same price as the MaxSonar?
>
> Cheers,
>
> Jas
>
>
>
>
> 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] Re: NC2004A LCD Screen with Modtronix LCD2S daughter board

Richard,

The parallel LCD is significantly faster since you can the .String
attribute. The newer compiler and firmware makes the LCD object much
more robust too. The V.5 compiler will have intermittent problems with
missing characters in the LCD object when writing to the LCD. V.6
corrected them and the C.1 firmware made it even better.

DLC

rtstofer wrote:
>>> I must admit, the current way works but takes over 1 second to display
>>> text on all 4 lines. I'm going to spend tonight adding in cursor
>>> control and other bits and pieces. One thing I might as well ask now
>>> (I'll try reading the manual in a bit) How would you turn a numeric
>>> value into a string of characters. (I was hoping to display sensor
>>> readings on the LCD display?
>>>
>>> Cheers,
>>>
>>> Jas
>>>
>
> Yup! That's the same slow speed I was talking about earlier (in this
> thread?). I wrote some code for an LCD and an Ultrasonic Ranger (in
> the Files section as LCDRanger.osc) a few years ago and I wasn't
> impressed with the writing speed.
>
> It's too bad the OOPic doesn't use the I2C hardware for things beyond
> oDDELink.
>
> I have never tried the standard 14 pin LCD. I wonder if it writes faster.
>
> Richard
>
>
>
>
>
> 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] Can I update the firmware of an OOPic-R?

Indeed you can, here are the details:

Dennis, The folks need to send the units to:

Savage Innovations
906 Bob Wallace Ave Suite F.
Huntsville Al 35801
The cost is $9.95 plus freight
Checks also need to be made to Savage Innovations or call to use credit
card.
256 519 8051 ext115
Ask for Kim

You need to send the board in, the firmware is not field upgradeable.

thanks,
DLC

Fiebigc wrote:
> I have an OOPic-R with a sticker that says firmware B2.2+ on the
> processor. I would really like to try and upgrade to the C1 firmware.
> Is this possible and if so how do I go about this? I couldn't find
> any info at www.oopic.com.

Thanks.
>
>
>
>
> 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] Range Sensors

Hi,
Has anyone used the MaxSonar LV EZ1 range sensor before?

Due to an accident with too much bare capacitor legs causing a short
(It was an honest mistake honest!) I've managed to kill my Sharp
GP2d120's. For a replacement, I was thinking about using ultrasonic
instead of IR.

Firstly, is this a better way of object sensing?

Secondly what sensor to use? I am going to have 3 in total on the
front of my Rogue Blue ERS robot chassis.

The one I was looking at was:
http://www.robotchat.org/index.php?topic=11.0

This is due to it using a analogue voltage as an option (Which is
great for my OOBoard) I've looked at the Daventech ones but they seem
a lot more complicated to read from. (And the higher models require
I2C bus)

Are there better ones at around the same price as the MaxSonar?

Cheers,

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: NC2004A LCD Screen with Modtronix LCD2S daughter board

> > I must admit, the current way works but takes over 1 second to display
> > text on all 4 lines. I'm going to spend tonight adding in cursor
> > control and other bits and pieces. One thing I might as well ask now
> > (I'll try reading the manual in a bit) How would you turn a numeric
> > value into a string of characters. (I was hoping to display sensor
> > readings on the LCD display?
> >
> > Cheers,
> >
> > Jas

Yup! That's the same slow speed I was talking about earlier (in this
thread?). I wrote some code for an LCD and an Ultrasonic Ranger (in
the Files section as LCDRanger.osc) a few years ago and I wasn't
impressed with the writing speed.

It's too bad the OOPic doesn't use the I2C hardware for things beyond
oDDELink.

I have never tried the standard 14 pin LCD. I wonder if it writes faster.

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: I've started a forum if anyone is interested in participating.

Hi,
I've just clicked the link and it has worked for me.

Jas

--- In oopic@yahoogroups.com, "Samitha Ransara" <samitharansara@...>
wrote:
>
> Hi,
> A good idea.. but the link is dead................
>
> Samitha
>
>
> On Jan 29, 2008 6:06 PM, jasuk1970 <mail@...> wrote:
>
> > Hi,
> > I started http://www.robotchat.org/ firstly to try out a new version
> > of the SMF forum software and secondly as a dumping ground for things
> > I've been learning and for posting progress on my projects. It makes
> > it easier to post pictures and code for me.
> >
> > If anyone wants to join, feel free. Also feel free to post stuff about
> > your own projects etc. I've not limited it to one type of controller
> > and can easily add new stuff when people want it.
> >
> > Most of the other places I've gone to seem to be mostly adverts and
> > spam. This site should remain AD free (I'll get rid of spam bot
> > members) unless people have a good site for getting related stuff
from.
> >
> > To show an example, I've posted a page on all the LCD stuff I managed
> > to get sorted of here.
> >
> > http://www.robotchat.org/index.php?topic=8.msg19#new
> >
> > Cheers,
> >
> > Jas
> >
> >
> >
>
>
>
> --
>
> **************************************************
> H.K. Samitha Ransara
> Department of Electrical Engineering
> University of Moratuwa
> Sri Lanka
>
> E mail
> samitharansara@...
>
> Phone
> +94775136921
>
> Homepage
> www.hitechno.info
>
>
> [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/

Re: [oopic] I've started a forum if anyone is interested in participating.

Hi,
A good idea.. but the link is dead................

Samitha


On Jan 29, 2008 6:06 PM, jasuk1970 <mail@jsun.me.uk> wrote:

> Hi,
> I started http://www.robotchat.org/ firstly to try out a new version
> of the SMF forum software and secondly as a dumping ground for things
> I've been learning and for posting progress on my projects. It makes
> it easier to post pictures and code for me.
>
> If anyone wants to join, feel free. Also feel free to post stuff about
> your own projects etc. I've not limited it to one type of controller
> and can easily add new stuff when people want it.
>
> Most of the other places I've gone to seem to be mostly adverts and
> spam. This site should remain AD free (I'll get rid of spam bot
> members) unless people have a good site for getting related stuff from.
>
> To show an example, I've posted a page on all the LCD stuff I managed
> to get sorted of here.
>
> http://www.robotchat.org/index.php?topic=8.msg19#new
>
> Cheers,
>
> Jas
>
>
>

--

**************************************************
H.K. Samitha Ransara
Department of Electrical Engineering
University of Moratuwa
Sri Lanka

E mail
samitharansara@gmail.com

Phone
+94775136921

Homepage
www.hitechno.info


[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] I've started a forum if anyone is interested in participating.

Hi,
I started http://www.robotchat.org/ firstly to try out a new version
of the SMF forum software and secondly as a dumping ground for things
I've been learning and for posting progress on my projects. It makes
it easier to post pictures and code for me.

If anyone wants to join, feel free. Also feel free to post stuff about
your own projects etc. I've not limited it to one type of controller
and can easily add new stuff when people want it.

Most of the other places I've gone to seem to be mostly adverts and
spam. This site should remain AD free (I'll get rid of spam bot
members) unless people have a good site for getting related stuff from.

To show an example, I've posted a page on all the LCD stuff I managed
to get sorted of here.

http://www.robotchat.org/index.php?topic=8.msg19#new

Cheers,

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: NC2004A LCD Screen with Modtronix LCD2S daughter board

Ignore my number to string ;-) Str$.

It's early in the morning for me and my memory is terrible :)

Jas

--- In oopic@yahoogroups.com, "jasuk1970" <mail@...> wrote:
>
> Maybe I can use this as a request for a LCD2S Object in a later
> version ;-)
>
> something like:
>
> Dim screen As New oLCD2S
>
> Sub Main()
> screen.Address = 0x50
> screen.Command = 0x80
> screen.String = "Hello World
> screen.Send
> End Sub
>
> I must admit, the current way works but takes over 1 second to display
> text on all 4 lines. I'm going to spend tonight adding in cursor
> control and other bits and pieces. One thing I might as well ask now
> (I'll try reading the manual in a bit) How would you turn a numeric
> value into a string of characters. (I was hoping to display sensor
> readings on the LCD display?
>
> Cheers,
>
> Jas
>
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@> wrote:
> >
> > A reply to remove my last reply. I had a momentary brain fart -
> > although the .String property was listed in the oEEPROM and oI2C
it did
> > not work. So it appears that the .String was simply removed since it
> > must have been resource intensive to fix.
> >
> > DLC
> >
> > rtstofer wrote:
> > > --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
> > > wrote:
> > >
> > >> rtstofer wrote:
> > >>
> > >>> Setting the mode is only required once.
> > >>> Why not try simple text without parsing?
> > >>> Parsing is unlikely to work in any event because you are not
> > >>>
> > > sending
> > >
> > >>> a string. It will, at best, apply to the first character.
> > >>>
> > >>> I don't see a .string property for the oI2C object in the V6
> > >>> documentaton. It DID exist in V5.
> > >>>
> > >>> So, we could write things like:
> > >>> screen.string = "Hello World!"
> > >>>
> > >>> Unfortunately, V6 won't accept it!
> > >>>
> > >>> Richard
> > >>>
> > >>>
> > >>>
> > >> I hadn't noticed the loss of that .string. I know that oEEPROM
> > >> accepts .string, so you could "spoof" the system and call the
> > >>
> > > device a
> > >
> > >> oEEPROM object and turn off the increment. Then try using .String
> > >>
> > > on
> > >
> > >> that object. Another way you could do this would be to use the
> > >>
> > > oBuffer
> > >
> > >> object, set that to a string and access the individual bytes by
> > >>
> > > index.
> > >
> > >> Caveat, I've not tried this yet, but it should work.
> > >>
> > >> DLC
> > >>
> > >>
> > >
> > > The 'old' oEEPROM had a .string property but the new one doesn't.
> > >
> > > Using the oBuffer approach doesn't allow a 'prefix' byte to
cause the
> > > entire string to be 'parsed'. There is a command for this LCD that
> > > will do neat things like interpret ('parse') "\nHello\tWorld!\n"
> > > doing the CR LF things as expected.
> > >
> > > But, it probably only works if it is the first byte in a long
> > > string. Terminating the transaction after every char ('stop'
> > > condition) would probably defeat the process. I suppose using
> > > cv10bit and sending the command followed by a single character
MIGHT
> > > work but it is a lot of traffic.
> > >
> > > I don't understand why the .string properties were removed. You
> > > know, V5 may live forever!
> > >
> > > Richard
> > >
> > >
> > >
> > >
> > >
> > > 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: NC2004A LCD Screen with Modtronix LCD2S daughter board

Maybe I can use this as a request for a LCD2S Object in a later
version ;-)

something like:

Dim screen As New oLCD2S

Sub Main()
screen.Address = 0x50
screen.Command = 0x80
screen.String = "Hello World
screen.Send
End Sub

I must admit, the current way works but takes over 1 second to display
text on all 4 lines. I'm going to spend tonight adding in cursor
control and other bits and pieces. One thing I might as well ask now
(I'll try reading the manual in a bit) How would you turn a numeric
value into a string of characters. (I was hoping to display sensor
readings on the LCD display?

Cheers,

Jas

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...> wrote:
>
> A reply to remove my last reply. I had a momentary brain fart -
> although the .String property was listed in the oEEPROM and oI2C it did
> not work. So it appears that the .String was simply removed since it
> must have been resource intensive to fix.
>
> DLC
>
> rtstofer wrote:
> > --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
> > wrote:
> >
> >> rtstofer wrote:
> >>
> >>> Setting the mode is only required once.
> >>> Why not try simple text without parsing?
> >>> Parsing is unlikely to work in any event because you are not
> >>>
> > sending
> >
> >>> a string. It will, at best, apply to the first character.
> >>>
> >>> I don't see a .string property for the oI2C object in the V6
> >>> documentaton. It DID exist in V5.
> >>>
> >>> So, we could write things like:
> >>> screen.string = "Hello World!"
> >>>
> >>> Unfortunately, V6 won't accept it!
> >>>
> >>> Richard
> >>>
> >>>
> >>>
> >> I hadn't noticed the loss of that .string. I know that oEEPROM
> >> accepts .string, so you could "spoof" the system and call the
> >>
> > device a
> >
> >> oEEPROM object and turn off the increment. Then try using .String
> >>
> > on
> >
> >> that object. Another way you could do this would be to use the
> >>
> > oBuffer
> >
> >> object, set that to a string and access the individual bytes by
> >>
> > index.
> >
> >> Caveat, I've not tried this yet, but it should work.
> >>
> >> DLC
> >>
> >>
> >
> > The 'old' oEEPROM had a .string property but the new one doesn't.
> >
> > Using the oBuffer approach doesn't allow a 'prefix' byte to cause the
> > entire string to be 'parsed'. There is a command for this LCD that
> > will do neat things like interpret ('parse') "\nHello\tWorld!\n"
> > doing the CR LF things as expected.
> >
> > But, it probably only works if it is the first byte in a long
> > string. Terminating the transaction after every char ('stop'
> > condition) would probably defeat the process. I suppose using
> > cv10bit and sending the command followed by a single character MIGHT
> > work but it is a lot of traffic.
> >
> > I don't understand why the .string properties were removed. You
> > know, V5 may live forever!
> >
> > Richard
> >
> >
> >
> >
> >
> > 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/

Monday, January 28, 2008

[oopic] Can I update the firmware of an OOPic-R?

I have an OOPic-R with a sticker that says firmware B2.2+ on the
processor. I would really like to try and upgrade to the C1 firmware.
Is this possible and if so how do I go about this? I couldn't find
any info at www.oopic.com.

Thanks.


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: NC2004A LCD Screen with Modtronix LCD2S daughter board

A reply to remove my last reply. I had a momentary brain fart -
although the .String property was listed in the oEEPROM and oI2C it did
not work. So it appears that the .String was simply removed since it
must have been resource intensive to fix.

DLC

rtstofer wrote:
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
> wrote:
>
>> rtstofer wrote:
>>
>>> Setting the mode is only required once.
>>> Why not try simple text without parsing?
>>> Parsing is unlikely to work in any event because you are not
>>>
> sending
>
>>> a string. It will, at best, apply to the first character.
>>>
>>> I don't see a .string property for the oI2C object in the V6
>>> documentaton. It DID exist in V5.
>>>
>>> So, we could write things like:
>>> screen.string = "Hello World!"
>>>
>>> Unfortunately, V6 won't accept it!
>>>
>>> Richard
>>>
>>>
>>>
>> I hadn't noticed the loss of that .string. I know that oEEPROM
>> accepts .string, so you could "spoof" the system and call the
>>
> device a
>
>> oEEPROM object and turn off the increment. Then try using .String
>>
> on
>
>> that object. Another way you could do this would be to use the
>>
> oBuffer
>
>> object, set that to a string and access the individual bytes by
>>
> index.
>
>> Caveat, I've not tried this yet, but it should work.
>>
>> DLC
>>
>>
>
> The 'old' oEEPROM had a .string property but the new one doesn't.
>
> Using the oBuffer approach doesn't allow a 'prefix' byte to cause the
> entire string to be 'parsed'. There is a command for this LCD that
> will do neat things like interpret ('parse') "\nHello\tWorld!\n"
> doing the CR LF things as expected.
>
> But, it probably only works if it is the first byte in a long
> string. Terminating the transaction after every char ('stop'
> condition) would probably defeat the process. I suppose using
> cv10bit and sending the command followed by a single character MIGHT
> work but it is a lot of traffic.
>
> I don't understand why the .string properties were removed. You
> know, V5 may live forever!
>
> Richard
>
>
>
>
>
> 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] Re: NC2004A LCD Screen with Modtronix LCD2S daughter board

I'm going to ask about that! But even if .String had been left in I
know that the oI2C object in all of its wrappers always sent a single
byte, never a string of bytes with a single break. This has
traditionally created issues for I2C connected display devices.

DLC

rtstofer wrote:
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
> wrote:
>
>> rtstofer wrote:
>>
>>> Setting the mode is only required once.
>>> Why not try simple text without parsing?
>>> Parsing is unlikely to work in any event because you are not
>>>
> sending
>
>>> a string. It will, at best, apply to the first character.
>>>
>>> I don't see a .string property for the oI2C object in the V6
>>> documentaton. It DID exist in V5.
>>>
>>> So, we could write things like:
>>> screen.string = "Hello World!"
>>>
>>> Unfortunately, V6 won't accept it!
>>>
>>> Richard
>>>
>>>
>>>
>> I hadn't noticed the loss of that .string. I know that oEEPROM
>> accepts .string, so you could "spoof" the system and call the
>>
> device a
>
>> oEEPROM object and turn off the increment. Then try using .String
>>
> on
>
>> that object. Another way you could do this would be to use the
>>
> oBuffer
>
>> object, set that to a string and access the individual bytes by
>>
> index.
>
>> Caveat, I've not tried this yet, but it should work.
>>
>> DLC
>>
>>
>
> The 'old' oEEPROM had a .string property but the new one doesn't.
>
> Using the oBuffer approach doesn't allow a 'prefix' byte to cause the
> entire string to be 'parsed'. There is a command for this LCD that
> will do neat things like interpret ('parse') "\nHello\tWorld!\n"
> doing the CR LF things as expected.
>
> But, it probably only works if it is the first byte in a long
> string. Terminating the transaction after every char ('stop'
> condition) would probably defeat the process. I suppose using
> cv10bit and sending the command followed by a single character MIGHT
> work but it is a lot of traffic.
>
> I don't understand why the .string properties were removed. You
> know, V5 may live forever!
>
> Richard
>
>
>
>
>
> 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: 1-part and 3-part harmony analogy.

--- In oopic@yahoogroups.com, "c2cam1234" <c2cam1234@...> wrote:
>
> In OoPIC v6 there's a sample program called,
> Sample-B-hd-Jinglebells-V6.osc.
>
> It has a series of 4 notes. I see this as 4 switches operated in
> sequence.
>
> What would the program look like for 3-part harmony -- that is, 3
> switches operated concurrently and in sequence?
>
> Any free code out there for this?
>
> Thanks
>

Not going to happen! There is only one timer generating a single
frequency connected to a single pin.

See in the oSpeaker documentation:

The Freq property is an instance of the oFreqH object which the
oSpeaker Object uses to generate a square wave output to drive the
speaker. Since all instances of the oFreqH Object use the same PIC
hardware then all instances of the oSpeaker Object will output at the
same frequency. Also note that all other objects that use the
oFreqH object will also use the same 16-Bit value as well. (see
oFreqH Object for more detail)

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] 1-part and 3-part harmony analogy.

In OoPIC v6 there's a sample program called,
Sample-B-hd-Jinglebells-V6.osc.

It has a series of 4 notes. I see this as 4 switches operated in
sequence.

What would the program look like for 3-part harmony -- that is, 3
switches operated concurrently and in sequence?

Any free code out there for this?

Thanks



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: NC2004A LCD Screen with Modtronix LCD2S daughter board

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> rtstofer wrote:
> > Setting the mode is only required once.
> > Why not try simple text without parsing?
> > Parsing is unlikely to work in any event because you are not
sending
> > a string. It will, at best, apply to the first character.
> >
> > I don't see a .string property for the oI2C object in the V6
> > documentaton. It DID exist in V5.
> >
> > So, we could write things like:
> > screen.string = "Hello World!"
> >
> > Unfortunately, V6 won't accept it!
> >
> > Richard
> >
> >
> I hadn't noticed the loss of that .string. I know that oEEPROM
> accepts .string, so you could "spoof" the system and call the
device a
> oEEPROM object and turn off the increment. Then try using .String
on
> that object. Another way you could do this would be to use the
oBuffer
> object, set that to a string and access the individual bytes by
index.
> Caveat, I've not tried this yet, but it should work.
>
> DLC
>

The 'old' oEEPROM had a .string property but the new one doesn't.

Using the oBuffer approach doesn't allow a 'prefix' byte to cause the
entire string to be 'parsed'. There is a command for this LCD that
will do neat things like interpret ('parse') "\nHello\tWorld!\n"
doing the CR LF things as expected.

But, it probably only works if it is the first byte in a long
string. Terminating the transaction after every char ('stop'
condition) would probably defeat the process. I suppose using
cv10bit and sending the command followed by a single character MIGHT
work but it is a lot of traffic.

I don't understand why the .string properties were removed. You
know, V5 may live forever!

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: NC2004A LCD Screen with Modtronix LCD2S daughter board

rtstofer wrote:
> Setting the mode is only required once.
> Why not try simple text without parsing?
> Parsing is unlikely to work in any event because you are not sending
> a string. It will, at best, apply to the first character.
>
> I don't see a .string property for the oI2C object in the V6
> documentaton. It DID exist in V5.
>
> So, we could write things like:
> screen.string = "Hello World!"
>
> Unfortunately, V6 won't accept it!
>
> Richard
>
>
I hadn't noticed the loss of that .string. I know that oEEPROM
accepts .string, so you could "spoof" the system and call the device a
oEEPROM object and turn off the increment. Then try using .String on
that object. Another way you could do this would be to use the oBuffer
object, set that to a string and access the individual bytes by index.
Caveat, I've not tried this yet, but it should work.

DLC

--
------------------------------------------------------
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] Re: NC2004A LCD Screen with Modtronix LCD2S daughter board

DOH! I forgot about that one. Good catch.

DLC

jasuk1970 wrote:
> --- In oopic@yahoogroups.com, "jasuk1970" <mail@...> wrote:
>
>> --- In oopic@yahoogroups.com, "rtstofer" <rstofer@> wrote:
>>
>>> --- In oopic@yahoogroups.com, "jasuk1970" <mail@> wrote:
>>>
>>>> Thanks for pointing out the obvious :)
>>>>
>>>> I looked at the I2C write example and it said 0x28 switches
>>>>
>>> backlight
>>>
>>>> off (Figure 11), And it's actually 0x20!
>>>>
>>>> Wehoo it's working :)
>>>>
>>>> Well sort of, I think it's my programming skills lacking now :)
>>>>
>>>> Dim screen As oI2C
>>>> Dim text As New oBuffer(20)
>>>> Dim lp As Byte
>>>>
>>>> Sub Main()
>>>> screen.Node = 0x28 ' 0x50 divided by 2
>>>> screen.Mode = cv7Bit
>>>> screen = 0x20 ' Backlight On
>>>> Call CLS()
>>>> text.VString="Hello World! "
>>>> DisplayText()
>>>>
>>>> End Sub
>>>>
>>>> Sub DisplayText()
>>>> screen.Mode = cv7Bit
>>>> screen = 0x80 ' Send string
>>>> For lp = 0 To 19
>>>> text.Location = lp
>>>> screen = text.Value
>>>> Next lp
>>>> End Sub
>>>>
>>>> Sub CLS()
>>>> screen.Mode = cv7Bit
>>>> screen = 0x8c
>>>> End Sub
>>>>
>>>> Sub BackLightOff()
>>>> screen.Mode = cv7Bit
>>>> screen = 0x28
>>>> End Sub
>>>>
>>>> The screen clears but I cannot get any text to appear.
>>>>
>>>> I think it is I don't understand the IC2 stuff just yet.
>>>>
>>>> Thanks for any help.
>>>>
>>>> Cheers,
>>>>
>>>> Jas
>>>>
>>>>
>>> Setting the mode is only required once.
>>> Why not try simple text without parsing?
>>> Parsing is unlikely to work in any event because you are not
>>>
>> sending
>>
>>> a string. It will, at best, apply to the first character.
>>>
>>> I don't see a .string property for the oI2C object in the V6
>>> documentaton. It DID exist in V5.
>>>
>>> So, we could write things like:
>>> screen.string = "Hello World!"
>>>
>>> Unfortunately, V6 won't accept it!
>>>
>>> Richard
>>>
>>>
>> Thanks for the reply,
>>
>> I've tried without the 0x80 and the same thing happens, the screen
>> switches off. (No flash of the first character like it did with the
>> previous one)
>>
>> I've also tried using the .String = with OOPic 5, but this causes
>>
> the
>
>> back light brightness to flicker and then the screen switches off
>> again.
>>
>> Cheers,
>>
>> Jas
>>
>>
>
> Fixed :) It was simple really. I re-read the docs for oI2C and
> realised I need the screen.NoInc = cvTrue. The command was changing
> on each character. Time to start on a library of commands for the
> screen. Thanks to everyone who helped.
>
> Dim screen As oI2C
> Dim text As New oBuffer(20)
> Dim lp As Byte
>
> Sub Main()
> screen.Node = 0x28 ' 0x50 divided by 2
> screen.Mode = cv7Bit
> screen.NoInc = cvTrue
> screen = 0x20 ' Backlight On
> Call CLS()
> text.VString="Hello World! "
> DisplayText()
>
> Do
>
> Loop
>
> End Sub
>
> Sub DisplayText()
> screen.Mode = cv10Bit
> screen.Location = 0x80 ' Send string
> For lp = 0 To 19
> text.Location = lp
> screen = text.Value
> Next lp
> End Sub
>
> Sub CLS()
> screen.Mode = cv7Bit
> screen = 0x8c
> End Sub
>
> Sub BackLightOff()
> screen.Mode = cv7Bit
> screen = 0x28
> End Sub
>
> Cheers,
>
> Jas
>
>
>
>
> 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] Re: NC2004A LCD Screen with Modtronix LCD2S daughter board

You'll need to use cv10bit to send characters to the screen. Make the
.Location = command and then whatever you send to the device will be a
character buffer write (I think.)

DLC

jasuk1970 wrote:
> Thanks for pointing out the obvious :)
>
> I looked at the I2C write example and it said 0x28 switches backlight
> off (Figure 11), And it's actually 0x20!
>
> Wehoo it's working :)
>
> Well sort of, I think it's my programming skills lacking now :)
>
> Dim screen As oI2C
> Dim text As New oBuffer(20)
> Dim lp As Byte
>
> Sub Main()
> screen.Node = 0x28 ' 0x50 divided by 2
> screen.Mode = cv7Bit
> screen = 0x20 ' Backlight On
> Call CLS()
> text.VString="Hello World! "
> DisplayText()
>
> End Sub
>
> Sub DisplayText()
> screen.Mode = cv7Bit
> screen = 0x80 ' Send string
> For lp = 0 To 19
> text.Location = lp
> screen = text.Value
> Next lp
> End Sub
>
> Sub CLS()
> screen.Mode = cv7Bit
> screen = 0x8c
> End Sub
>
> Sub BackLightOff()
> screen.Mode = cv7Bit
> screen = 0x28
> End Sub
>
> The screen clears but I cannot get any text to appear.
>
> I think it is I don't understand the IC2 stuff just yet.
>
> Thanks for any help.
>
> Cheers,
>
> Jas
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
> wrote:
>
>> What should happen? The 0x28 command just turns the screen on.
>>
> Send
>
>> some text to it and see what happens. Carefully read through the
>> commands set and experiment. you should get something to go as
>>
> long as
>
>> you put in the pull up resistor on the SDA line as we said earlier
>>
> in
>
>> this thread.
>>
>> DLC
>>
>> jasuk1970 wrote:
>>
>>> Hi again.
>>>
>>> I've given this a go. I found a 3 pin cable which connected to
>>>
> the
>
>>> pins in the I2C connector.
>>>
>>> http://www.robotchat.org/images/lcd_oopic_1.JPG
>>>
>>> The white cable connects to pin 1 in the connector which is data,
>>>
> the
>
>>> black cable connects to pin 2 which is ground and the red cable
>>>
> which
>
>>> is the clock. I've connected these to the bread board:
>>>
>>> http://www.robotchat.org/images/lcd_oopic_2.JPG
>>>
>>> These then connect to the daughter board, Plus a +5 and Ground to
>>> power the board.
>>>
>>> http://www.robotchat.org/images/lcd_oopic_1.JPG
>>>
>>> These connect to the respective Data Ground and clock (top left)
>>>
> and
>
>>> +5, ground connect to the board to power it (bottom right). The
>>>
> dip
>
>>> switches are set to 00, which sets the IC2 address to 0x50
>>>
>>> The display then lights up when the power is connected.
>>>
>>> http://www.robotchat.org/images/lcd_oopic_4.JPG
>>>
>>> I now write the following program to send the command to switch
>>>
> off
>
>>> the back light:
>>>
>>> Dim screen As oI2C
>>>
>>> Sub Main()
>>> screen.Node = 0x28 ' 0x50 divided by 2
>>> screen.Mode = cv7Bit
>>> screen = 0x28
>>>
>>> End Sub
>>>
>>> Unfortunatly nothing seems to happen. Any ideas?
>>>
>>> Thanks,
>>>
>>> Jas
>>> --- In oopic@yahoogroups.com, <dennis.clark@> wrote:
>>>
>>>
>>>> Yon are correct in all of your guesses. Check the ooPIC site on
>>>>
>>>>
>>> the "connectors" page for the part number for that connector.
>>>
>>>
>>>> DLC
>>>>
>>>> ooPIC Tech Support
>>>>
>>>> -----Original Message-----
>>>>
>>>> From: "jasuk1970" <mail@>
>>>> Subj: [oopic] Re: NC2004A LCD Screen with Modtronix LCD2S
>>>>
> daughter
>
>>>>
>>>>
>>> board
>>>
>>>
>>>> Date: Fri Jan 25, 2008 3:31 am
>>>> Size: 3K
>>>> To: oopic@yahoogroups.com
>>>>
>>>> Thanks for the info. I'm going to give it a try as soon as I Can
>>>>
>>>>
>>> get
>>>
>>>
>>>> the I2C pins connected.
>>>>
>>>> I've posted a picture of the OOBoard with the hilighted sections
>>>>
>>>>
>>> from
>>>
>>>
>>>> the manual that came with the OOPic 5 compiler software in the
>>>>
>>>>
>>> files
>>>
>>>
>>>> section. It seems to have 2 I2C Ports on the board, One (in the
>>>> cluster of Various IO Ports labelled (Local Devices) and one
>>>>
>>>>
>>> labelled
>>>
>>>
>>>> Network. I am assuming that it's the local devices one I need to
>>>>
>>>>
>>> use.
>>>
>>>
>>>> Also does anyone recognise what the connector type is (Its the
>>>>
>>>>
>>> white
>>>
>>>
>>>> connectors) It has 5 pins. I've been trying to google for it,
>>>>
> but
>
>>>>
>>>>
>>> as
>>>
>>>
>>>> 5 pin connector is pretty vague thing to search for, I'm not
>>>>
> having
>
>>>> much luck. I have the pin information in the documentation so
>>>>
> could
>
>>>> end up soldering wires to the pins if need be.
>>>>
>>>> Cheers,
>>>>
>>>> Jas
>>>>
>>>> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
>>>> wrote:
>>>>
>>>>
>>>>> It's actually simpler than you are making this out to be. Set
>>>>>
>>>>>
>>> your
>>>
>>>
>>>> I2C
>>>>
>>>>
>>>>> address as they recommend, then divide this by 2 (bit shift
>>>>>
> right
>
>>>>>
>>>>>
>>>> one
>>>>
>>>>
>>>>> place) and this is the .node value. When you are sending data
>>>>>
> to
>
>>>>>
>>>>>
>>>> the
>>>>
>>>>
>>>>> device you would use cv10bit format and the .Location attribute
>>>>>
>>>>>
>>> is
>>>
>>>
>>>> the
>>>>
>>>>
>>>>> command, so you'd do this:
>>>>> dev.Mode = cv10bit
>>>>> dev.Node = <whatever address shifted right one bit>
>>>>> dev.Location = <command>
>>>>> dev = <data>
>>>>>
>>>>> When you are sending a command you would use this:
>>>>> dev.Mode = cv7bit
>>>>> dev = <command>
>>>>>
>>>>> That's it. If you are using an ooPIC R you don' t need to
>>>>>
> worry
>
>>>>>
>>>>>
>>>> about
>>>>
>>>>
>>>>> pull ups on the SCL line - Its already driven. The SDA line
>>>>>
>>>>>
>>>> should
>>>>
>>>>
>>>>> have a 4.7K pull up on it.
>>>>>
>>>>> DLC
>>>>>
>>>>> jasuk1970 wrote:
>>>>>
>>>>>
>>>>>> --- In oopic@yahoogroups.com, "rtstofer" <rstofer@> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> --- In oopic@yahoogroups.com, "jasuk1970" <mail@> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> I am looking at this now. I am trying to work out what Mode
>>>>>>>>
>>>>>>>>
>>> it
>>>
>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> should
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> be using.
>>>>>>>>
>>>>>>>> An example of the commands it is looking for to get the
>>>>>>>>
>>>>>>>>
>>> status
>>>
>>>
>>>> is:
>>>>
>>>>
>>>>>>>> SaaaaaaadAccccccccASaaaaaaadAbbbbbbbbP
>>>>>>>>
>>>>>>>> S= start
>>>>>>>> a= address bit (7 bits + direction)
>>>>>>>> d= read or write bit
>>>>>>>> A= acknowledgement from slave
>>>>>>>> c= command bit (8 bits)
>>>>>>>> b= First byte of data (8 bits)
>>>>>>>> P= stop
>>>>>>>>
>>>>>>>> If the address is 0x50 then it would look like:
>>>>>>>>
>>>>>>>> S01010000 A 11010000 A S01010001 A {Recieve first byte of
>>>>>>>>
>>>>>>>>
>>> data}
>>>
>>>
>>>>>>>> I hope it makes sense, Looking at it I am assuming it is
>>>>>>>>
>>>>>>>>
>>> cv7Bit.
>>>
>>>
>>>>>>>> Or would I need to do some custom controlling to get this
>>>>>>>>
>>>>>>>>
>>>> working?
>>>>
>>>>
>>>>>>>> Thanks for any help,
>>>>>>>>
>>>>>>>> Jas
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> I must be looking at the wrong datasheet because the one I am
>>>>>>>
>>>>>>>
>>>>>>>
>>>>
>>>> Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>> --
>> ------------------------------------------------------
>> Dennis Clark ooPIC Tech Support
>> www.oopic.com
>> ------------------------------------------------------
>>
>>
>
>
>
>
>
> 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: NC2004A LCD Screen with Modtronix LCD2S daughter board

--- In oopic@yahoogroups.com, "jasuk1970" <mail@...> wrote:
>
> --- In oopic@yahoogroups.com, "rtstofer" <rstofer@> wrote:
> >
> > --- In oopic@yahoogroups.com, "jasuk1970" <mail@> wrote:
> > >
> > > Thanks for pointing out the obvious :)
> > >
> > > I looked at the I2C write example and it said 0x28 switches
> > backlight
> > > off (Figure 11), And it's actually 0x20!
> > >
> > > Wehoo it's working :)
> > >
> > > Well sort of, I think it's my programming skills lacking now :)
> > >
> > > Dim screen As oI2C
> > > Dim text As New oBuffer(20)
> > > Dim lp As Byte
> > >
> > > Sub Main()
> > > screen.Node = 0x28 ' 0x50 divided by 2
> > > screen.Mode = cv7Bit
> > > screen = 0x20 ' Backlight On
> > > Call CLS()
> > > text.VString="Hello World! "
> > > DisplayText()
> > >
> > > End Sub
> > >
> > > Sub DisplayText()
> > > screen.Mode = cv7Bit
> > > screen = 0x80 ' Send string
> > > For lp = 0 To 19
> > > text.Location = lp
> > > screen = text.Value
> > > Next lp
> > > End Sub
> > >
> > > Sub CLS()
> > > screen.Mode = cv7Bit
> > > screen = 0x8c
> > > End Sub
> > >
> > > Sub BackLightOff()
> > > screen.Mode = cv7Bit
> > > screen = 0x28
> > > End Sub
> > >
> > > The screen clears but I cannot get any text to appear.
> > >
> > > I think it is I don't understand the IC2 stuff just yet.
> > >
> > > Thanks for any help.
> > >
> > > Cheers,
> > >
> > > Jas
> > >
> >
> > Setting the mode is only required once.
> > Why not try simple text without parsing?
> > Parsing is unlikely to work in any event because you are not
> sending
> > a string. It will, at best, apply to the first character.
> >
> > I don't see a .string property for the oI2C object in the V6
> > documentaton. It DID exist in V5.
> >
> > So, we could write things like:
> > screen.string = "Hello World!"
> >
> > Unfortunately, V6 won't accept it!
> >
> > Richard
> >
>
> Thanks for the reply,
>
> I've tried without the 0x80 and the same thing happens, the screen
> switches off. (No flash of the first character like it did with the
> previous one)
>
> I've also tried using the .String = with OOPic 5, but this causes
the
> back light brightness to flicker and then the screen switches off
> again.
>
> Cheers,
>
> Jas
>

Fixed :) It was simple really. I re-read the docs for oI2C and
realised I need the screen.NoInc = cvTrue. The command was changing
on each character. Time to start on a library of commands for the
screen. Thanks to everyone who helped.

Dim screen As oI2C
Dim text As New oBuffer(20)
Dim lp As Byte

Sub Main()
screen.Node = 0x28 ' 0x50 divided by 2
screen.Mode = cv7Bit
screen.NoInc = cvTrue
screen = 0x20 ' Backlight On
Call CLS()
text.VString="Hello World! "
DisplayText()

Do

Loop

End Sub

Sub DisplayText()
screen.Mode = cv10Bit
screen.Location = 0x80 ' Send string
For lp = 0 To 19
text.Location = lp
screen = text.Value
Next lp
End Sub

Sub CLS()
screen.Mode = cv7Bit
screen = 0x8c
End Sub

Sub BackLightOff()
screen.Mode = cv7Bit
screen = 0x28
End Sub

Cheers,

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/