Searching \ for '[PIC] 1-pin 16 key analog keypad' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/ios.htm?key=analog
Search entire site for: '1-pin 16 key analog keypad'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] 1-pin 16 key analog keypad'
2005\07\01@153441 by Mario Mendes Jr.

flavicon
face
Hi guys,

I'm working on a little project and have just one i/o pin left in the
pict.  Two things about it, first, is that I feel that really must find
something for that pin to do as not to go to waste =) and, second, I would
really like to include a keyboard/keypad in this project.  I once saw a
"16-button analog keypad" circuit which used 1 pic i/o pin configured as
analog input, (obviously) 16 momentary switches and some resistors.  The
theory behind it was that for each key pressed, a different voltage would
be present to the analog input and the pic could tell what key was from
that voltage.

The only problem is that I tried all sorts of google search phrases and
can't find anything other than the usual 16 button keypad interfaces and
PC/AT keyboard interfaces.

Anyone here has a link or details about how this is implemented?  I would
be specially helpfull if you had a diagram WITH the resitor values in it
=) but I can try to come up with those values on my own if you have a
schematic (or a good explanation of how everthing is connected).

Thanks in advance.


-Mario

2005\07\01@155757 by William Chops Westfield

face picon face
On Jul 1, 2005, at 12:34 PM, Mario Mendes Jr. wrote:

> I'm working on a little project and have just one i/o pin left in the
> pict.  Two things about it, first, is that I feel that really must find
> something for that pin to do as not to go to waste =) and, second, I
> would
> really like to include a keyboard/keypad in this project.

I've been including a provision for one of those IR RC detector modules
on circuits where I have an extra input pin.  I figure a TV remote
control
is a fine keypad, and it's only a small matter of programming away...

BillW

2005\07\01@163215 by Tim N9PUZ

picon face
Mario Mendes Jr. wrote:

> Anyone here has a link or details about how this is implemented?  I would
> be specially helpfull if you had a diagram WITH the resitor values in it
> =) but I can try to come up with those values on my own if you have a
> schematic (or a good explanation of how everthing is connected).

Do a search for an R2R Ladder -- an inexpensive way of crudely
generating analog voltages from a bunch of port pins.

Here's a Microchip App Note that shows a DAC. The same ladder network
with your switches instead of port pins should do the trick.

<http://ww1.microchip.com/downloads/en/AppNotes/00655a.pdf>

Tim

2005\07\01@163627 by Dwayne Forsyth

flavicon
face
> On Jul 1, 2005, at 12:34 PM, Mario Mendes Jr. wrote:
>
>> I'm working on a little project and have just one i/o pin left in the
>> pict.  Two things about it, first, is that I feel that really must find
>> something for that pin to do as not to go to waste =) and, second, I
>> would really like to include a keyboard/keypad in this project.

There is a high level description of the 1 pin analog keyboard matrix in
the Tips 'n Tricks book, Tip #7. Its just the theory, and does not give an
example. http://ww1.microchip.com/downloads/en/DeviceDoc/40040b.pdf

> I've been including a provision for one of those IR RC detector modules
> on circuits where I have an extra input pin.  I figure a TV remote
> control
> is a fine keypad, and it's only a small matter of programming away...

I have a "blinkie" that has the IR detector, using RC-5 IR standard. The
sorce code is on the link I list bellow. I also used their tip#2 for
driving 38 LEDs (can do 42) with 7 IO lines on a blinkie board, thier
diagram in the book is wrong!
http://www.2dkits.com/zencart/index.php?main_page=product_info&cPath=1&products_id=1

Dwayne Forsyth


2005\07\01@165517 by Jose Da Silva

flavicon
face
On July 1, 2005 12:34 pm, Mario Mendes Jr. wrote:
{Quote hidden}

If you search the archives of the piclist for:
"[PIC] Matrix Keyboard Philosophy"
It was recently discussed (approx April 9 2005) and has a few ideas.
Personally, I somewhat like the idea similar to reading a PC joystick or
a 555-type timer, by discharging a capacitor, then timing the amount of
time needed to achieve a crossover from 0 to 1 bit (see AppNote 512):
http://ww1.microchip.com/downloads/en/AppNotes/00512e.pdf

There are also other valid ideas there as well.
As a side note, reading 4 bits via an analog method is easy, 8 is
tougher, and 16 may be somewhat difficult due to noise on the power
lines or other induced noises.


> Thanks in advance.
>
>
> -Mario

2005\07\01@165959 by Mario Mendes Jr.

flavicon
face
Very good idea!  I'll definitely give that some thought.

Thanks

-Mario

-----Original Message-----
From: spam_OUTpiclist-bouncesTakeThisOuTspammit.edu [.....piclist-bouncesKILLspamspam@spam@mit.edu] On Behalf
Of William Chops Westfield
Sent: Friday, July 01, 2005 3:58 PM
To: Microcontroller discussion list - Public.
Subject: Re: [PIC] 1-pin 16 key analog keypad


On Jul 1, 2005, at 12:34 PM, Mario Mendes Jr. wrote:

> I'm working on a little project and have just one i/o pin left in the
> pict.  Two things about it, first, is that I feel that really must
> find something for that pin to do as not to go to waste =) and,
> second, I would really like to include a keyboard/keypad in this
> project.

I've been including a provision for one of those IR RC detector modules
on circuits where I have an extra input pin.  I figure a TV remote
control
is a fine keypad, and it's only a small matter of programming away...

BillW

2005\07\01@213453 by Carey Fisher - NCS

face picon face

 I once saw a
  > "16-button analog keypad" circuit which used 1 pic i/o pin
  > configured as
  > analog input, (obviously) 16 momentary switches and some
  > resistors.  The
  > theory behind it was that for each key pressed, a different
  > voltage would
  > be present to the analog input and the pic could tell what key was from
  > that voltage.
  >

  > -Mario

Mario,
Here http://www.ncsradio.com/schematics/keypad.pdf is an Eagle schematic
.pdf showing an 8 switch version of what you want.  The signal
labelled PIC_AD_SW is tied to an A/D input pin on the PIC.
 If you calculate the voltages for each switch pressed,
you'll see how this works.  I use a table of the mid
voltage between adjacent switches as the decision point
for which switch is pressed.  One feature of this design
is that multiple switches pressed at the same time will
not be confused with other switches; the lower number
switch always has priority.  If you want some more info
on the algorithm I use for this design, let me know.
Carey

2005\07\01@235158 by Charles Craft

picon face
PIC REMOTE CONTROL WITH A TWIST
http://www.circuitcellar.com/library/ccofeature/millier0999/c99bm2.htm

Programmable IR Receiver for PCs
http://www.circuitcellar.com/magazine/166toc.htm

{Original Message removed}

2005\07\02@092610 by rosoftwarecontrol

flavicon
face
PORTA set as ADC is terribly easy to be
damaged. So far, this is what I found.

pin shearing can do saving pin, also.





{Original Message removed}

2005\07\05@091055 by vasile surducan

picon face
On 7/1/05, Mario Mendes Jr. <mariospamKILLspammmendes.com> wrote:
{Quote hidden}

Thre are many way of doing this, and I've guess you have already got
the answers:
1. use the ADC and a rezistive network divizor switched by buttons
2. use the comparator (internal or external) with the internal voltage
reference which has the required resolution
3. use an RC network with a fixed C and a keypad switched resistor
network and measure a time variation
4. use a paralel to serial converter and share the clock pin required
with other function

best regards,
Vasile

2005\07\05@105937 by Dave W Turner

picon face
Ummmm....  Why do you need a clock pin - can't you just get the same
speed oscillators and send a signal down the signal line to say "start
now"?

And, how would the clock pin be shared with something else? (unless it
is input on one, output on another)

On 7/5/05, vasile surducan <.....vsurducanKILLspamspam.....gmail.com> wrote:
{Quote hidden}

> -

2005\07\05@111626 by Michael Rigby-Jones

picon face


>-----Original Message-----
>From: piclist-bouncesspamspam_OUTmit.edu [@spam@piclist-bouncesKILLspamspammit.edu]
>Sent: 05 July 2005 16:00
>To: Microcontroller discussion list - Public.
>Subject: Re: [PIC] 1-pin 16 key analog keypad
>
>
>Ummmm....  Why do you need a clock pin - can't you just get
>the same speed oscillators and send a signal down the signal
>line to say "start now"?

Vasile was suggesting the use of a shift register.  You need to clock out the bits using an SPI-like bus.

>
>And, how would the clock pin be shared with something else?
>(unless it is input on one, output on another)

If the shift register has a chip select or enable pin, then it will ignore the clock while it is disabled, which may allow you to use the clock pin for other functions during this time.

Regards

Mike

=======================================================================
This e-mail is intended for the person it is addressed to only. The
information contained in it may be confidential and/or protected by
law. If you are not the intended recipient of this message, you must
not make any use of this information, or copy or show it to any
person. Please contact us immediately to tell us that you have
received this e-mail, and return the original to us. Any use,
forwarding, printing or copying of this message is strictly prohibited.
No part of this message can be considered a request for goods or
services.
=======================================================================

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...