Giter Club home page Giter Club logo

cd4021b-buttons-duo's Introduction

CD4021B-Buttons-Duo

16 channel arcade button driver

(Legacy project, no longer in development)

Features

  • 16 channels
    • 8 channels for regular (NC and/or NO, depends on the software) buttons
    • 8 channels for illuminated (lamp equipped) buttons
  • Programmable lamps
  • Button interface are somewhat compatible with CY-822B encoder (shares the same electrical interface) with a better (not hard-wired to VBUS) lamp support.
  • Separated lamp power rail (Supports 0-12V PSU, 500mA max for each channel)
  • Supports 3.3V (at low speed like 1-2MHz) and 5V logic
  • Supports controlling via SPI bus and bitbang with Arduino ShiftIn/ShiftOut code

Usage

  • Install KiCad
  • Plot the board
  • Zip the Gerber files and send them to whatever PCB house you like
  • TODO components, BOM, etc.
  • ???
  • PROFIT!

PS: There's no plan for selling the assembled boards or kits at the moment, so too bad for those who just want a working board :<

Notes

  • First and foremost, I am still very new to PCB layout and routing, so feel free to open an issue to give suggestions on my design and/or point out any mistakes I made.
  • The JST connectors are rotated 180 degrees (so pin 1 is on the right side) due to a mistake I made at the very early stage of designing and the quickest way of fixing it is to rotate the connector.
  • Make sure you are using the "always on" wiring suggested here (i.e. pin 1 is common ground, pin 2 is button and pin 3 is lamp) for illuminated buttons. Behavior on "illuminate on press" wiring (i.e. reversing pin 1 and pin 2) is undefined (and potentially dangerous if the lamps are powered with voltage higher or lower than VCC since this wiring basically shorts the lamp power to the button pin when the switch on the button is closed)
  • The P-channel MOSFET can be swapped for cheaper alternative (e.g. CJL3415) as long as they have the same electrical interface, the parameters (Vds, Vgs, Ids, Rds) are reasonable and proper zener diodes (D1-D8) and voltage divider (R1-R8, R9-R16) are chosen so that the gate of the MOSFET are not overdriven. (In case of CJL3415, a good choice would be 10k for R9-R16, 20k for R1-R8, and zeners with zener voltage of 7.5V) Also, TPIC6C596 can be used in place of TPIC6C595. (Tested)

cd4021b-buttons-duo's People

Contributors

dogtopus avatar

Stargazers

 avatar

Watchers

 avatar  avatar

cd4021b-buttons-duo's Issues

Lower the barrier of the PMOS used

Currently the circuit uses PMOSes with high |Vgs| rating (IRF5806 with Vgs of -20V to +20V). Such MOSFETs are harder to find and potentially more expensive than other MOSFETs with the same Vds but lower |Vgs| rating.

In order to achieve this, a resistor needs to be added between the PMOS gate and the corresponding DRAIN* pin on TPIC6C595.

  • Determine the value of the resistors and add them to the schematic
  • Figure out where to place the resistors on the board
  • Place, route and housekeeping (if needed)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.