element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Keypad control
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 5 replies
  • Answers 4 answers
  • Subscribers 392 subscribers
  • Views 621 views
  • Users 0 members are here
  • 595
  • keypad hack
  • keypad
  • 4066
  • keypad control
Related

Keypad control

kenj79
kenj79 over 7 years ago

I am trying to figure out how I can hack into a keypad to simulate keypresses.  I do testing on an assembly that requires me to press a series of buttons and wait for a response from the device.  After there would be another sequence of button presses.  so on and so on till the unit has gone through all its tests.  So I would like to create something that had multiple buttons so I could press on button to initiate one sequence then additional buttons to perform the remaining sequences. all in total I would say no more that 5 buttons would be needed. for different sequences.  The Keypad that I am controlling has LEDs on it as well so it would be nice to be able to monitor those as well and have it show a pass fail display.  But that could be for the future rev.  I'm mainly concerned on just eliminating the thousands of button pushes that I will have to do.   Initially I was thinking that I could have an Arduino send out info to trigger a set of 595 chips (to eliminate the overuse of output pins) to some 4066 chips. which would make the connections that simulate the keypresses.  Is this the right direction and if so could someone help me with the code?  I am very new at this and could use some guidance.

 

Thank you for you time and consideration,

 

Ken Johnson

  • Sign in to reply
  • Cancel

Top Replies

  • dougw
    dougw over 7 years ago in reply to kenj79 +1 suggested
    How many buttons are on the keypad and how many pins are on the header? Would an arduino mega with 54 I/O pins be enough to avoid shift registers? There are some products that emulate keypad sequences…
  • mcb1
    mcb1 over 7 years ago in reply to kenj79 +1
    You might want to consider a relay, or 5 relays. Connected across the appropriate pins, the arduino controlling which relay gets activated and for how long. Mark
  • shabaz
    0 shabaz over 7 years ago

    Hi Ken,

     

    Is the device under test using a USB keyboard? If so, is there a chance to replace it, or to attach another one to a spare USB port?

    If so, you could use something programmable like this (this is just an example): Building a USB Keypad: A Mini-Project

    The code there is fairly easy to follow and make modifications to send key sequences etc. The hardware is straightforward, just 8 wires need soldering.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • kenj79
    0 kenj79 over 7 years ago in reply to shabaz

    There isn’t a keyboard attached to the unit.  The unit has a membrane keypad array attached via a header and I have to tie into the header in order to simulate the key presses. shorting the two pins that are done when a button is pressed. Then for the next subsequent keypresses. Once that sequence has finished I would need it to wait for the next command. to start a new sequence. It would need more buttons to initiate commands.

     

    Ken

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • shabaz
    0 shabaz over 7 years ago in reply to kenj79

    I see.. in that case the shift-reg method you suggest sounds appropriate. The 595 is popular for driving LED arrays, so there will be example code that could be helpful. This URL looks useful:

    https://www.arduino.cc/en/Tutorial/ShiftOut

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • dougw
    0 dougw over 7 years ago in reply to kenj79

    How many buttons are on the keypad and how many pins are on the header?

    Would an arduino mega with 54 I/O pins be enough to avoid shift registers?

    There are some products  that emulate keypad sequences, but it doesn't sound exactly like what you need:

    PoKeys55T

    PoKeys57U

    PoKeys57E

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • mcb1
    0 mcb1 over 7 years ago in reply to kenj79

    You might want to consider a relay, or 5 relays.

    Connected across the appropriate pins, the arduino controlling which relay gets activated and for how long.

     

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube