/ticket_dispenser

DIY Ticket Dispenser

Primary LanguageC

Ticket Dispenser

A simple concession ticket dispenser using:

Features

  • Enter # to dispense, hit # on the keypad, it dispenses then resets
  • Display updates as you type in your #
  • State machine that will only allow a ticket to be counted if certain conditions exist to cut down 'bad' counts
  • Empty roll detection - if 3 seconds passes without detecting a ticket, it will automatically cut-off. Time is adjustable.
  • Cancel active job by pressing asterisk *
  • Entered over 4 digits, program resets (limit of display)
  • If you hit the process key (#) with no numbers entered, it resets

Dispensing Mechanism:

DL-1275 Wiring

  • Blue Wire : 12 : Optical sensor (ticket count trigger)
  • Black Wire : GND : Ground
  • White Wire : 11 : DC Motor driver : on/off
  • Red Wire : Vin : 12V constant

Keypad

Using Membrane 3x4 Matrix Keypad : https://www.adafruit.com/

Keypad Wiring:


7 Segment Display

Using Adafruit 0.56" 4 digit 7 segment display w/I2C Backpack : https://www.adafruit.com/

7 Segment Display Wiring:

  • + = 5v
  • - = GND
  • D = A4
  • C = A5

Youtube