Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | BasicX | LCD+ and Keypads

Discussion forum for the BasicX family of microcontroller chips.

LCD+ and Keypads - Author Unknown - Sep 9 18:39:00 2001

Hi all,

I am having trouble getting my newly acquired LCD+ to talk to my 4 x
4 keypad (Jameco 169244). Connecting the right eight pins to the
eight pins on the LCD+ board gives me nothing!

The LCD+ doco talks of grounding to the Keypad chassis ground. Some
mucking about with a bit of wire, the LCD+ ground and keypad pins
revealed that those pins need to go through to ground for the LCD+ to
see anything, but my keypad has no ground connection!

Checking some of the Grayhill product, none of them seem to have more
than the basic 8 pins either. Clearly I am missing something
downright obvious (and know it), but what is it? What is the story
with keypad grounding?

Thanks,

Andrew






(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: LCD+ and Keypads - Dave Houston - Sep 9 19:49:00 2001

Are you sure you have the connections right? The documentation for
the keypad is at...

http://www.jameco.com/Jameco/Products/ProdDS/169244.pdf

Mine works with just the 8 connections.

On 9 Sep 2001, at 23:39, wrote:

> Hi all,
>
> I am having trouble getting my newly acquired LCD+ to talk to my 4 x 4
> keypad (Jameco 169244). Connecting the right eight pins to the eight
> pins on the LCD+ board gives me nothing!
>
> The LCD+ doco talks of grounding to the Keypad chassis ground. Some
> mucking about with a bit of wire, the LCD+ ground and keypad pins
> revealed that those pins need to go through to ground for the LCD+ to
> see anything, but my keypad has no ground connection!
>
> Checking some of the Grayhill product, none of them seem to have more
> than the basic 8 pins either. Clearly I am missing something
> downright obvious (and know it), but what is it? What is the story
> with keypad grounding?
>
> Thanks,
>
> Andrew >
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~--> Secure your servers with 128-bit SSL
> encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your
> Web Site for Business." Get it Now!
> http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/CFFolB/TM
> ---------------------------------------------------------------------~
> - >
>

---
http://www.laser.com/dhouston/




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: LCD+ and Keypads - Neil Jepsen - Sep 9 20:24:00 2001

Andrew, the earth is only a screen. but if your cable is longer than
about 12" and has no screen, you will get unpredictable results. Some
keyboards have a metal plate on the back of the keys to act as a ground
plane. Tip: Use screened cable and keep the lead as short as possible.
You only need 8 wires.
neil Dave Houston wrote:

> Are you sure you have the connections right? The documentation for
> the keypad is at...
>
> http://www.jameco.com/Jameco/Products/ProdDS/169244.pdf
>
> Mine works with just the 8 connections.
>
> On 9 Sep 2001, at 23:39, wrote:
>
> > Hi all,
> >
> > I am having trouble getting my newly acquired LCD+ to talk to my 4 x
> 4
> > keypad (Jameco 169244). Connecting the right eight pins to the
> eight
> > pins on the LCD+ board gives me nothing!
> >
> > The LCD+ doco talks of grounding to the Keypad chassis ground. Some
>
> > mucking about with a bit of wire, the LCD+ ground and keypad pins
> > revealed that those pins need to go through to ground for the LCD+
> to
> > see anything, but my keypad has no ground connection!
> >
> > Checking some of the Grayhill product, none of them seem to have
> more
> > than the basic 8 pins either. Clearly I am missing something
> > downright obvious (and know it), but what is it? What is the story
> > with keypad grounding?
> >
> > Thanks,
> >
> > Andrew
> >
> >
> >
> >
> > ------------------------ Yahoo! Groups Sponsor
> > ---------------------~--> Secure your servers with 128-bit SSL
> > encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your
> > Web Site for Business." Get it Now!
> > http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/CFFolB/TM
> >
> ---------------------------------------------------------------------~
>
> > ->
> >
> >
> >
> >
> >
> > ---
> http://www.laser.com/dhouston/ > Yahoo! Groups Sponsor
[Image] > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed]





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: LCD+ and Keypads - Author Unknown - Sep 9 22:23:00 2001

Neil and Dave - thnxs - appreciate the help. Makes me feel better to
know that it can be made to work with the keypad that I have!

I am still most perplexed though. You guys clearly can get it to
work simply by using the straight 8 wires. Me... well. Nup.

I have just written the worlds simplest VB app to send it chr(25) to
poll the keypad once every second(hey, don't plan to use it that way,
but just want to see what it thinks is going on).

I run this and it returns 255 every time (no keypad attached). I
take a 10 cm wire a connect pin 1 to pin 2. Still 255. I connect any
of the pins to any of the other pins - the same 255.

I take the same wire, attach it to ground and touch pin 1 with it.
Behold! I get 127. Pin 2 191. Pin3 223.... and so. But simply
connecting pin 1 to pin (n) gives me nothing, neatly simulating my
keypad experience.

I am still suspecting I must be doing something terribly stupid, but
for the life of me I can't figure it out. Do I have a sick LCD+?

Thanks all,

Andrew

--- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> Andrew, the earth is only a screen. but if your cable is longer than
> about 12" and has no screen, you will get unpredictable results.
Some
> keyboards have a metal plate on the back of the keys to act as a
ground
> plane. Tip: Use screened cable and keep the lead as short as
possible.
> You only need 8 wires.
> neil > Dave Houston wrote:
>
> > Are you sure you have the connections right? The documentation for
> > the keypad is at...
> >
> > http://www.jameco.com/Jameco/Products/ProdDS/169244.pdf
> >
> > Mine works with just the 8 connections.
> >
> > On 9 Sep 2001, at 23:39, andrewflys@y... wrote:
> >
> > > Hi all,
> > >
> > > I am having trouble getting my newly acquired LCD+ to talk to
my 4 x
> > 4
> > > keypad (Jameco 169244). Connecting the right eight pins to the
> > eight
> > > pins on the LCD+ board gives me nothing!
> > >
> > > The LCD+ doco talks of grounding to the Keypad chassis ground.
Some
> >
> > > mucking about with a bit of wire, the LCD+ ground and keypad
pins
> > > revealed that those pins need to go through to ground for the
LCD+
> > to
> > > see anything, but my keypad has no ground connection!
> > >
> > > Checking some of the Grayhill product, none of them seem to have
> > more
> > > than the basic 8 pins either. Clearly I am missing something
> > > downright obvious (and know it), but what is it? What is the
story
> > > with keypad grounding?
> > >
> > > Thanks,
> > >
> > > Andrew
> > >
> > >
> > >
> > >
> > > ------------------------ Yahoo! Groups Sponsor
> > > ---------------------~--> Secure your servers with 128-bit SSL
> > > encryption! Grab your copy of VeriSign's FREE Guide: "Securing
Your
> > > Web Site for Business." Get it Now!
> > > http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/CFFolB/TM
> > >
> > ------------------------------------------------------------------
---~
> >
> > > ->
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > ---
> > http://www.laser.com/dhouston/
> >
> >
> > Yahoo! Groups Sponsor
> [Image]
>
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. > [Non-text portions of this message have been removed]




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Re: LCD+ and Keypads - Neil Jepsen - Sep 9 23:03:00 2001

Hey Andrew, you don't poll the keybaord Its scanned all the time, and
you need to setup the keypad by sending it a ctrl-x to set its mode.
I'll send you a bit of code in another email, as soon as i find it.
neil

wrote:

> Neil and Dave - thnxs - appreciate the help. Makes me feel better to
> know that it can be made to work with the keypad that I have!
>
> I am still most perplexed though. You guys clearly can get it to
> work simply by using the straight 8 wires. Me... well. Nup.
>
> I have just written the worlds simplest VB app to send it chr(25) to
> poll the keypad once every second(hey, don't plan to use it that way,
> but just want to see what it thinks is going on).
>
> I run this and it returns 255 every time (no keypad attached). I
> take a 10 cm wire a connect pin 1 to pin 2. Still 255. I connect any
> of the pins to any of the other pins - the same 255.
>
> I take the same wire, attach it to ground and touch pin 1 with it.
> Behold! I get 127. Pin 2 191. Pin3 223.... and so. But simply
> connecting pin 1 to pin (n) gives me nothing, neatly simulating my
> keypad experience.
>
> I am still suspecting I must be doing something terribly stupid, but
> for the life of me I can't figure it out. Do I have a sick LCD+?
>
> Thanks all,
>
> Andrew
>
> --- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> > Andrew, the earth is only a screen. but if your cable is longer than
>
> > about 12" and has no screen, you will get unpredictable results.
> Some
> > keyboards have a metal plate on the back of the keys to act as a
> ground
> > plane. Tip: Use screened cable and keep the lead as short as
> possible.
> > You only need 8 wires.
> > neil
> >
> >
> > Dave Houston wrote:
> >
> > > Are you sure you have the connections right? The documentation for
>
> > > the keypad is at...
> > >
> > > http://www.jameco.com/Jameco/Products/ProdDS/169244.pdf
> > >
> > > Mine works with just the 8 connections.
> > >
> > > On 9 Sep 2001, at 23:39, andrewflys@y... wrote:
> > >
> > > > Hi all,
> > > >
> > > > I am having trouble getting my newly acquired LCD+ to talk to
> my 4 x
> > > 4
> > > > keypad (Jameco 169244). Connecting the right eight pins to the
> > > eight
> > > > pins on the LCD+ board gives me nothing!
> > > >
> > > > The LCD+ doco talks of grounding to the Keypad chassis ground.
> Some
> > >
> > > > mucking about with a bit of wire, the LCD+ ground and keypad
> pins
> > > > revealed that those pins need to go through to ground for the
> LCD+
> > > to
> > > > see anything, but my keypad has no ground connection!
> > > >
> > > > Checking some of the Grayhill product, none of them seem to have
>
> > > more
> > > > than the basic 8 pins either. Clearly I am missing something
> > > > downright obvious (and know it), but what is it? What is the
> story
> > > > with keypad grounding?
> > > >
> > > > Thanks,
> > > >
> > > > Andrew
> > > >
> > > >
> > > >
> > > >
> > > > ------------------------ Yahoo! Groups Sponsor
> > > > ---------------------~--> Secure your servers with 128-bit SSL
> > > > encryption! Grab your copy of VeriSign's FREE Guide: "Securing
> Your
> > > > Web Site for Business." Get it Now!
> > > > http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/CFFolB/TM
> > > >
> > > ------------------------------------------------------------------
>
> ---~
> > >
> > > > ->
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > ---
> > > http://www.laser.com/dhouston/
> > >
> > >
> > > Yahoo! Groups Sponsor
> > [Image]
> >
> > >
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
> >
> >
> > [Non-text portions of this message have been removed] > Yahoo! Groups Sponsor
[Image] > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed]




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Re: LCD+ and Keypads - Neil Jepsen - Sep 9 23:13:00 2001

Andrew
The code below should echo your key presses to the LCD, and
beep each key press. The LCD tx and rx pins are connected to BX24 pins
16 & 14 respectively.

neil dim icom3(1 to 30) as byte
dim ocom3(1 to 30) as byte

Sub Main()
call openqueue(icom3,30) 'create input queue
call openqueue(ocom3,30) 'create ouput queue
call opencom(3,9600,icom3,ocom3) 'initialise coms port

call definecom3(16,14,bx1000_1000) 'define coms port pin 16 = Tx;
pin 14 = Rx
sleep(10)
call putqueuestr(ocom3,chr(24)& chr(bx0000_0101)) 'keypad setup on
clock LCD
sleep(10)
call putqueuestr(ocom3,chr(12)) 'CLS
sleep(10)
call putqueuestr(ocom3,chr(16) & chr(3) & "HELLO ANDREW")
sleep(10)
call putqueuestr(ocom3,chr(16) & chr(21)) 'position cursor to 2nd line

' your other code End Sub wrote:

> Neil and Dave - thnxs - appreciate the help. Makes me feel better to
> know that it can be made to work with the keypad that I have!
>
> I am still most perplexed though. You guys clearly can get it to
> work simply by using the straight 8 wires. Me... well. Nup.
>
> I have just written the worlds simplest VB app to send it chr(25) to
> poll the keypad once every second(hey, don't plan to use it that way,
> but just want to see what it thinks is going on).
>
> I run this and it returns 255 every time (no keypad attached). I
> take a 10 cm wire a connect pin 1 to pin 2. Still 255. I connect any
> of the pins to any of the other pins - the same 255.
>
> I take the same wire, attach it to ground and touch pin 1 with it.
> Behold! I get 127. Pin 2 191. Pin3 223.... and so. But simply
> connecting pin 1 to pin (n) gives me nothing, neatly simulating my
> keypad experience.
>
> I am still suspecting I must be doing something terribly stupid, but
> for the life of me I can't figure it out. Do I have a sick LCD+?
>
> Thanks all,
>
> Andrew
>
> --- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> > Andrew, the earth is only a screen. but if your cable is longer than
>
> > about 12" and has no screen, you will get unpredictable results.
> Some
> > keyboards have a metal plate on the back of the keys to act as a
> ground
> > plane. Tip: Use screened cable and keep the lead as short as
> possible.
> > You only need 8 wires.
> > neil
> >
> >
> > Dave Houston wrote:
> >
> > > Are you sure you have the connections right? The documentation for
>
> > > the keypad is at...
> > >
> > > http://www.jameco.com/Jameco/Products/ProdDS/169244.pdf
> > >
> > > Mine works with just the 8 connections.
> > >
> > > On 9 Sep 2001, at 23:39, andrewflys@y... wrote:
> > >
> > > > Hi all,
> > > >
> > > > I am having trouble getting my newly acquired LCD+ to talk to
> my 4 x
> > > 4
> > > > keypad (Jameco 169244). Connecting the right eight pins to the
> > > eight
> > > > pins on the LCD+ board gives me nothing!
> > > >
> > > > The LCD+ doco talks of grounding to the Keypad chassis ground.
> Some
> > >
> > > > mucking about with a bit of wire, the LCD+ ground and keypad
> pins
> > > > revealed that those pins need to go through to ground for the
> LCD+
> > > to
> > > > see anything, but my keypad has no ground connection!
> > > >
> > > > Checking some of the Grayhill product, none of them seem to have
>
> > > more
> > > > than the basic 8 pins either. Clearly I am missing something
> > > > downright obvious (and know it), but what is it? What is the
> story
> > > > with keypad grounding?
> > > >
> > > > Thanks,
> > > >
> > > > Andrew
> > > >
> > > >
> > > >
> > > >
> > > > ------------------------ Yahoo! Groups Sponsor
> > > > ---------------------~--> Secure your servers with 128-bit SSL
> > > > encryption! Grab your copy of VeriSign's FREE Guide: "Securing
> Your
> > > > Web Site for Business." Get it Now!
> > > > http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/CFFolB/TM
> > > >
> > > ------------------------------------------------------------------
>
> ---~
> > >
> > > > ->
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > ---
> > > http://www.laser.com/dhouston/
> > >
> > >
> > > Yahoo! Groups Sponsor
> > [Image]
> >
> > >
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
> >
> >
> > [Non-text portions of this message have been removed] > Yahoo! Groups Sponsor
[Image] > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed]



______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: LCD+ and Keypads - Author Unknown - Sep 11 21:03:00 2001

Neil,

Just wanted to publicly thank you going out of your way to help. It
is folk like you that make groups like this a success.

I've been tied up at work the last couple of days (and probably like
the rest of us a little distracted by the horrible events up in NY).
I'll bash my head against the little beast again in the next day or
two and let everyone know how I get on. While I of course love
showing everybody how dumb I am, if it helps someone else to read
about me screwing up, it will have been worth it. :-) Regards,

Andrew

--- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> Andrew
> The code below should echo your key presses to the
LCD, and
> beep each key press. The LCD tx and rx pins are connected to BX24
pins
> 16 & 14 respectively.
>
> neil > dim icom3(1 to 30) as byte
> dim ocom3(1 to 30) as byte
>
> Sub Main()
> call openqueue(icom3,30) 'create input queue
> call openqueue(ocom3,30) 'create ouput queue
> call opencom(3,9600,icom3,ocom3) 'initialise coms port
>
> call definecom3(16,14,bx1000_1000) 'define coms port pin 16 =
Tx;
> pin 14 = Rx
> sleep(10)
> call putqueuestr(ocom3,chr(24)& chr(bx0000_0101)) 'keypad setup on
> clock LCD
> sleep(10)
> call putqueuestr(ocom3,chr(12)) 'CLS
> sleep(10)
> call putqueuestr(ocom3,chr(16) & chr(3) & "HELLO ANDREW")
> sleep(10)
> call putqueuestr(ocom3,chr(16) & chr(21)) 'position cursor to 2nd
line
>
> ' your other code > End Sub



______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: LCD+ and Keypads - Author Unknown - Sep 11 21:03:00 2001

--- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> Andrew
> The code below should echo your key presses to the
LCD, and
> beep each key press. The LCD tx and rx pins are connected to BX24
pins
> 16 & 14 respectively.
>
> neil > dim icom3(1 to 30) as byte
> dim ocom3(1 to 30) as byte
>
> Sub Main()
> call openqueue(icom3,30) 'create input queue
> call openqueue(ocom3,30) 'create ouput queue
> call opencom(3,9600,icom3,ocom3) 'initialise coms port
>
> call definecom3(16,14,bx1000_1000) 'define coms port pin 16 =
Tx;
> pin 14 = Rx
> sleep(10)
> call putqueuestr(ocom3,chr(24)& chr(bx0000_0101)) 'keypad setup on
> clock LCD
> sleep(10)
> call putqueuestr(ocom3,chr(12)) 'CLS
> sleep(10)
> call putqueuestr(ocom3,chr(16) & chr(3) & "HELLO ANDREW")
> sleep(10)
> call putqueuestr(ocom3,chr(16) & chr(21)) 'position cursor to 2nd
line
>
> ' your other code > End Sub > andrewflys@y... wrote:
>
> > Neil and Dave - thnxs - appreciate the help. Makes me feel
better to
> > know that it can be made to work with the keypad that I have!
> >
> > I am still most perplexed though. You guys clearly can get it to
> > work simply by using the straight 8 wires. Me... well. Nup.
> >
> > I have just written the worlds simplest VB app to send it chr(25)
to
> > poll the keypad once every second(hey, don't plan to use it that
way,
> > but just want to see what it thinks is going on).
> >
> > I run this and it returns 255 every time (no keypad attached). I
> > take a 10 cm wire a connect pin 1 to pin 2. Still 255. I connect
any
> > of the pins to any of the other pins - the same 255.
> >
> > I take the same wire, attach it to ground and touch pin 1 with it.
> > Behold! I get 127. Pin 2 191. Pin3 223.... and so. But simply
> > connecting pin 1 to pin (n) gives me nothing, neatly simulating
my
> > keypad experience.
> >
> > I am still suspecting I must be doing something terribly stupid,
but
> > for the life of me I can't figure it out. Do I have a sick LCD+?
> >
> > Thanks all,
> >
> > Andrew
> >
> > --- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> > > Andrew, the earth is only a screen. but if your cable is longer
than
> >
> > > about 12" and has no screen, you will get unpredictable results.
> > Some
> > > keyboards have a metal plate on the back of the keys to act as a
> > ground
> > > plane. Tip: Use screened cable and keep the lead as short as
> > possible.
> > > You only need 8 wires.
> > > neil
> > >
> > >
> > > Dave Houston wrote:
> > >
> > > > Are you sure you have the connections right? The
documentation for
> >
> > > > the keypad is at...
> > > >
> > > > http://www.jameco.com/Jameco/Products/ProdDS/169244.pdf
> > > >
> > > > Mine works with just the 8 connections.
> > > >
> > > > On 9 Sep 2001, at 23:39, andrewflys@y... wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > I am having trouble getting my newly acquired LCD+ to talk
to
> > my 4 x
> > > > 4
> > > > > keypad (Jameco 169244). Connecting the right eight pins to
the
> > > > eight
> > > > > pins on the LCD+ board gives me nothing!
> > > > >
> > > > > The LCD+ doco talks of grounding to the Keypad chassis
ground.
> > Some
> > > >
> > > > > mucking about with a bit of wire, the LCD+ ground and keypad
> > pins
> > > > > revealed that those pins need to go through to ground for
the
> > LCD+
> > > > to
> > > > > see anything, but my keypad has no ground connection!
> > > > >
> > > > > Checking some of the Grayhill product, none of them seem to
have
> >
> > > > more
> > > > > than the basic 8 pins either. Clearly I am missing
something
> > > > > downright obvious (and know it), but what is it? What is
the
> > story
> > > > > with keypad grounding?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Andrew
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ------------------------ Yahoo! Groups Sponsor
> > > > > ---------------------~--> Secure your servers with 128-bit
SSL
> > > > > encryption! Grab your copy of VeriSign's FREE
Guide: "Securing
> > Your
> > > > > Web Site for Business." Get it Now!
> > > > > http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/CFFolB/TM
> > > > >
> > > > --------------------------------------------------------------
----
> >
> > ---~
> > > >
> > > > > ->
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > ---
> > > > http://www.laser.com/dhouston/
> > > >
> > > >
> > > > Yahoo! Groups Sponsor
> > > [Image]
> > >
> > > >
> > > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service.
> > >
> > >
> > > [Non-text portions of this message have been removed]
> >
> >
> > Yahoo! Groups Sponsor
> [Image]
>
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. > [Non-text portions of this message have been removed]




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Re: LCD+ and Keypads - Neil Jepsen - Sep 11 22:11:00 2001

Pleased to help Andrew. Let me know how you go
neil

wrote:

> Neil,
>
> Just wanted to publicly thank you going out of your way to help. It
> is folk like you that make groups like this a success.
>
> I've been tied up at work the last couple of days (and probably like
> the rest of us a little distracted by the horrible events up in NY).
> I'll bash my head against the little beast again in the next day or
> two and let everyone know how I get on. While I of course love
> showing everybody how dumb I am, if it helps someone else to read
> about me screwing up, it will have been worth it. :-) > Regards,
>
> Andrew
>
> --- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> > Andrew
> > The code below should echo your key presses to the
> LCD, and
> > beep each key press. The LCD tx and rx pins are connected to BX24
> pins
> > 16 & 14 respectively.
> >
> > neil
> >
> >
> > dim icom3(1 to 30) as byte
> > dim ocom3(1 to 30) as byte
> >
> > Sub Main()
> > call openqueue(icom3,30) 'create input queue
> > call openqueue(ocom3,30) 'create ouput queue
> > call opencom(3,9600,icom3,ocom3) 'initialise coms port
> >
> > call definecom3(16,14,bx1000_1000) 'define coms port pin 16 =
> Tx;
> > pin 14 = Rx
> > sleep(10)
> > call putqueuestr(ocom3,chr(24)& chr(bx0000_0101)) 'keypad setup on
> > clock LCD
> > sleep(10)
> > call putqueuestr(ocom3,chr(12)) 'CLS
> > sleep(10)
> > call putqueuestr(ocom3,chr(16) & chr(3) & "HELLO ANDREW")
> > sleep(10)
> > call putqueuestr(ocom3,chr(16) & chr(21)) 'position cursor to 2nd
> line
> >
> > ' your other code
> >
> >
> > End Sub
> >
> Yahoo! Groups Sponsor
[Image] > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed]





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: LCD+ and Keypads - Author Unknown - Sep 12 20:21:00 2001

Neil,

Well:

1. Using your keypad settings, I was able to short the pins and get
key beeps. Whatever settings I had, they were not doing the trick!

2. The key offender was my cabling. I was using some serial cabling
hooked to a DB9 to plug and unplug my keypad as I pleased. This
cablinghad some sort of inductive properties that while a multimeter
said no resistance, they effectively shorted all the pins to each
other (I was able to measure very small, significant microvoltages on
all pins after connecting just one!). This was an eye opener. But
my keypad is finally making my LCD+ beep and display characters.

So, the moral of the story is to

1. Ask folk who know more than you
2. Be careful with what type of cabling you use!

Thanks again,

Andrew

--- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> Pleased to help Andrew. Let me know how you go
> neil
>
> andrewflys@y... wrote:
>
> > Neil,
> >
> > Just wanted to publicly thank you going out of your way to help.
It
> > is folk like you that make groups like this a success.
> >
> > I've been tied up at work the last couple of days (and probably
like
> > the rest of us a little distracted by the horrible events up in
NY).
> > I'll bash my head against the little beast again in the next day
or
> > two and let everyone know how I get on. While I of course love
> > showing everybody how dumb I am, if it helps someone else to read
> > about me screwing up, it will have been worth it. :-)
> >
> >
> > Regards,
> >
> > Andrew
> >
> > --- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> > > Andrew
> > > The code below should echo your key presses to the
> > LCD, and
> > > beep each key press. The LCD tx and rx pins are connected to
BX24
> > pins
> > > 16 & 14 respectively.
> > >
> > > neil
> > >
> > >
> > > dim icom3(1 to 30) as byte
> > > dim ocom3(1 to 30) as byte
> > >
> > > Sub Main()
> > > call openqueue(icom3,30) 'create input queue
> > > call openqueue(ocom3,30) 'create ouput queue
> > > call opencom(3,9600,icom3,ocom3) 'initialise coms port
> > >
> > > call definecom3(16,14,bx1000_1000) 'define coms port pin 16
=
> > Tx;
> > > pin 14 = Rx
> > > sleep(10)
> > > call putqueuestr(ocom3,chr(24)& chr(bx0000_0101)) 'keypad
setup on
> > > clock LCD
> > > sleep(10)
> > > call putqueuestr(ocom3,chr(12)) 'CLS
> > > sleep(10)
> > > call putqueuestr(ocom3,chr(16) & chr(3) & "HELLO ANDREW")
> > > sleep(10)
> > > call putqueuestr(ocom3,chr(16) & chr(21)) 'position cursor to
2nd
> > line
> > >
> > > ' your other code
> > >
> > >
> > > End Sub
> > >
> >
> >
> >
> > Yahoo! Groups Sponsor
> [Image]
>
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. > [Non-text portions of this message have been removed]


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Re: LCD+ and Keypads - Neil Jepsen - Sep 12 23:28:00 2001

Great Stuff Andrew.
neil

wrote:

> Neil,
>
> Well:
>
> 1. Using your keypad settings, I was able to short the pins and get
> key beeps. Whatever settings I had, they were not doing the trick!
>
> 2. The key offender was my cabling. I was using some serial cabling
> hooked to a DB9 to plug and unplug my keypad as I pleased. This
> cablinghad some sort of inductive properties that while a multimeter
> said no resistance, they effectively shorted all the pins to each
> other (I was able to measure very small, significant microvoltages on
> all pins after connecting just one!). This was an eye opener. But
> my keypad is finally making my LCD+ beep and display characters.
>
> So, the moral of the story is to
>
> 1. Ask folk who know more than you
> 2. Be careful with what type of cabling you use!
>
> Thanks again,
>
> Andrew
>
> --- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> > Pleased to help Andrew. Let me know how you go
> > neil
> >
> > andrewflys@y... wrote:
> >
> > > Neil,
> > >
> > > Just wanted to publicly thank you going out of your way to help.
> It
> > > is folk like you that make groups like this a success.
> > >
> > > I've been tied up at work the last couple of days (and probably
> like
> > > the rest of us a little distracted by the horrible events up in
> NY).
> > > I'll bash my head against the little beast again in the next day
> or
> > > two and let everyone know how I get on. While I of course love
> > > showing everybody how dumb I am, if it helps someone else to read
> > > about me screwing up, it will have been worth it. :-)
> > >
> > >
> > > Regards,
> > >
> > > Andrew
> > >
> > > --- In basicx@y..., Neil Jepsen <jepsen@x> wrote:
> > > > Andrew
> > > > The code below should echo your key presses to the
> > > LCD, and
> > > > beep each key press. The LCD tx and rx pins are connected to
> BX24
> > > pins
> > > > 16 & 14 respectively.
> > > >
> > > > neil
> > > >
> > > >
> > > > dim icom3(1 to 30) as byte
> > > > dim ocom3(1 to 30) as byte
> > > >
> > > > Sub Main()
> > > > call openqueue(icom3,30) 'create input queue
>
> > > > call openqueue(ocom3,30) 'create ouput queue
>
> > > > call opencom(3,9600,icom3,ocom3) 'initialise coms port
> > > >
> > > > call definecom3(16,14,bx1000_1000) 'define coms port pin 16
> =
> > > Tx;
> > > > pin 14 = Rx
> > > > sleep(10)
> > > > call putqueuestr(ocom3,chr(24)& chr(bx0000_0101)) 'keypad
> setup on
> > > > clock LCD
> > > > sleep(10)
> > > > call putqueuestr(ocom3,chr(12)) 'CLS
> > > > sleep(10)
> > > > call putqueuestr(ocom3,chr(16) & chr(3) & "HELLO ANDREW")
> > > > sleep(10)
> > > > call putqueuestr(ocom3,chr(16) & chr(21)) 'position cursor to
> 2nd
> > > line
> > > >
> > > > ' your other code
> > > >
> > > >
> > > > End Sub
> > > >
> > >
> > >
> > >
> > > Yahoo! Groups Sponsor
> > [Image]
> >
> > >
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
> >
> >
> > [Non-text portions of this message have been removed] > Yahoo! Groups Sponsor
[Image] > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed]




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )