Go Down

Topic: LCD and Keypad sharing data pins (Read 6077 times) previous topic - next topic

teckel


Updated sketch here: http://www.phpbbireland.com/kiss2/viewtopic.php?f=80&t=265

Features:
  • Allows three different passwords...
  • Lockout if tampering (allows three attempts and then lock the keypad for X seconds)...
  • Uses a piezo device to generate keyboard tone and door open tone...
  • Backlight off if inactive, any key to turn on backlight...
  • Software driven contrast (user can set level)...
  • Latched output (relay 3 seconds)...
  • A test menu with some options (just testing)...



Why not just use a couple shift registers (one for the display, one for the keypad)?  This method would only use 6 pins (or less), cheap (like $0.50), and to me far easier to make and program.  Heck, you could even make the individual keys lighted and still have pins left over.

Tim
My hardware: Arduino, Teensy 2.0, Teensy 3.2 & custom ATmega328
My libraries: NewPing, LCDBitmap, toneAC, toneAC2, NewTone, TimerFreeTone
My Projects: https://dogblocker.com & https://baconorbeer.com
My beer: Great Lakes Brewing Co. Lake Erie Monster

Go Up