Go Down

Topic: how do I interface with a 4x4 keypad/ (Read 6 times) previous topic - next topic

Grumpy_Mike

Quote
I just need to modify the source code

What source code?

RandallR

Has anyone used a resistor network as a voltage divider and then read the key value off one of the analog input pins?

I read a write up on something like this but it used resistors of odd values.  ( Odd means I didn't have any )

The one I say was set up like a straight ladder and the input came off the mid-point.  I thought that there might be a way to use 8-10 1K resistors in a network to accomplish the same thing.

CrossRoads

Here is what you might have been thinking of.
http://tronixstuff.wordpress.com/2012/02/29/tutorial-analog-input-for-multiple-buttons-part-two/
Expand the network for the number of buttons you want to use.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

RandallR


Here is what you might have been thinking of.
http://tronixstuff.wordpress.com/2012/02/29/tutorial-analog-input-for-multiple-buttons-part-two/
Expand the network for the number of buttons you want to use.


I was actually looking at something like:
http://www.avr-asm-tutorial.net/avr_en/keypad/keyboard.html#adc

This one is for a 3X4 matrix and the math is a pain for selecting the resistor values.  I was hoping some smarter folks than me figured out a way to use only 1 or 2 different values.

alex_001

Hi,
I had already tried to interface with 4x4 keypad with arduino and it works... Currently I am thinking of modifying the source code so that
it can function as a calculator(Simple Calculator with just addition function). But I am not sure how to start with the advises given earlier.
Is it modifying in the void loop function?
Please Advise.

Go Up