element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Dev Tools
  • Products
  • More
Dev Tools
Forum Hack old vending machine touch pad to control LED lights
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Dev Tools requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 8 replies
  • Answers 4 answers
  • Subscribers 48 subscribers
  • Views 1838 views
  • Users 0 members are here
  • touchpad
  • vending_machines
  • led controller
  • led lighting technology
Related

Hack old vending machine touch pad to control LED lights

goatyhead
goatyhead over 2 years ago

I am converting an old vending machine into a box you can sit in and i wanted to hack the vending machine touch pad to be able to change the lighting patterns of LED strips i want to mount inside the box.  the touch pad has 21 buttons, and a 12 pin attachment.  (i attached a photo of it).  I am  a newbie at electronics and it was hard to even find a place to ask a question like this.  Any help will be appreciated.

Attachments:
image
  • Sign in to reply
  • Cancel

Top Replies

  • genebren
    genebren over 2 years ago +5 suggested
    Mike, These switches are usually connected as a matrix of rows and columns, with the switches connected between them. Like this: Using an ohm meter, connected between a column and a row, press the switches…
  • dougw
    dougw over 2 years ago in reply to goatyhead +4 suggested
    No power needed - the resistance meter has its own power. It is not a good idea to measure resistance with power on the controller as it can overload the meter.
  • goatyhead
    goatyhead over 2 years ago in reply to genebren +2
    that's a great start. For the Ohm meter to work, do i need to connect the controller to a power source? so, ill need a power supply (transformer). This will connect to some sort of receiver. The receiver…
  • genebren
    0 genebren over 2 years ago

    Mike,

     

    These switches are usually connected as a matrix of rows and columns, with the switches connected between them.  Like this:

    imageimage

    Using an ohm meter, connected between a column and a row, press the switches until you see a low ohm reading.  Just guessing from the image of the pad/connector, that the three pins towards the right might be the columns and 7 or the 8 pins to the left might be the rows.

     

    Hopefully this will help you get started.

    Good Luck!

     

    Gene

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • goatyhead
    0 goatyhead over 2 years ago in reply to genebren

    that's a great start. 

     

    For the Ohm meter to work, do i need to connect the controller to a power source?

     

    so, ill need a power supply (transformer). This will connect to some sort of receiver.  The receiver that connects to the transformer and to the LED strip and the controller.  The controller will send a signal to the receiver to let the LED strips know what color and lights to use.

     

     

     

    the only receivers i see online are only for wireless connections, do you know of any wired receivers that could possibly take a 12 pin connection?

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dougw
    0 dougw over 2 years ago in reply to goatyhead

    No power needed - the resistance meter has its own power. It is not a good idea to measure resistance with power on the controller as it can overload the meter.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • goatyhead
    0 goatyhead over 2 years ago in reply to dougw

    thanks!!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • genebren
    0 genebren over 2 years ago in reply to goatyhead

    Mike,

     

    This switch pad will most likely connect to a controller of some sort.  You are not likely to find a controller that will directly interface to this switch pad and control the lights in the exact way that you would like.  I would think that something like an Arduino would make an excellent starting point.  The controller will read the switches and according to a program, take appropriate actions based on the program that you write.  There are many great examples on Ardunio based projects on this site that you can look at to get an idea of what might be involved.

     

    Using an ohmmeter (https://www.newark.com/velleman-sa/dvm850bl/compact-dmm-with-backlit-display/dp/88C3438  for example) you can map out the rows and columns of the matrix and determine where in the matrix each switch is connected.  This will necessary so you can program the Ardunio how to determine which switch is being pressed, and how to respond to that switch press.  To do this, start by attaching on lead of the meter to one of the pins on the connector (I would try on of the pins to the right of the connector).  Attach the other to another pin (one of the pins to the left of the connector).  The meter should read a high resistance (open).  Now start pressing buttons until the meter reads a low resistance (switch closed). Write down the two pins and the button that was found to make a connection.  Now, change the lead on the left side of the connector to another pin (still on the left side) and repeat the process.  After finding seven switches, change the other lead (on the right side of the connector to another pin).

     

    It is not going to be some magical, plug and play experience.  You will need to put a lot of pieces together in order to make your creation come to life.  But in the end, you will have learn a lot and also have a very unique creation of your own making.

     

    Have fun, good luck and never stop asking questions or learning new things.

     

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 2 years ago in reply to genebren

    I recall lorrainbow demonstrating working out a keypad matrix in one of her videos:

    #badass Woman Project Entry - Lorraine Underwood

    May be of interest.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • goatyhead
    0 goatyhead over 2 years ago in reply to genebren

    this is great information, thanks!  So i first just map out what each pin does (what button it controls), then i can program the arduino to tell the LED lights how to respond?

     

    I'm guessing that the ardunio has 14 digital connections, i can use 12 from the key pad and 2 to the LED lights

     

    This is great because i have so many projects/art pieces i want to attempt.

     

    a year ago, i started renovating a 6000 sq foot run down space used by drug addicts.  I didn't know a thing about electricity or plumbing or basic carpentry.  I had to teach myself everything.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • goatyhead
    0 goatyhead over 2 years ago in reply to beacon_dave

    i will look at it now

    • 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 © 2023 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube