npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ts-dg600f

v0.1.5

Published

NodeJS library to work with DG600F coin acceptor. Written in Typescript.

Downloads

3

Readme

Typescript DG600F coin acceptor protocol

NodeJS library to work with DG600F coin acceptor. Based on the work of dhoepelman.

Supported devices

  • DG600F

Installation

npm install ts-dg600f

DG600F Settings

The library assumes certain settings on the DG600F. See its technical manual for how to set these

| Setting | Value | | ----------------------- | -------------------------- | | DIP-switch | On Off On Off | | Baud rate | 4800 | | Signal output format | 3 bytes (0xAA value XOR) | | Serial Or Parallel Port | Serial |

(Re-)Training DG600F

The training procedure is detailed in section 7 of the technical manual. There is also a video available.

A short summary:

  1. Hold the A (left) button for ~2 second to enter coin parameters. The display should show "CP"
  2. (Optional) Hold B for ~2 second to clear all existing parameters. The display should flash "CC". Press A to return to "CP"
  3. With the A button cycle to the coin you want to train (CP)
  4. Press B. The display will show "00" (or the value you programmed for that coin)
  5. With B select the value for this coin (range 0-A0). This code assumes the value is Math.ceil(value_in_cents/2). So a €2 coin is A0, a €0,50 coin is 25 and a €0,05 coin is 3.
  6. Make sure the acceptor is in the same position as you intend to use it. The acceptor should nearly perpendicular to the ground.
  7. Enter (different!) samples of the coin you want to detect until the machine beeps and displays "F". It will take max 20 coins.
  8. Press A to return to CP and redo steps 3-8 until all coins are trained

Connection

Original idea comes from this video and official Support tips

  1. Take a FDTI cabel
  2. Connect GROUND from FDTI (black) to Ov of the device (pin 3)
  3. Connect RX from FDTI (yellow) to serial output of the device (pin 2)
  4. Connect 12V (from external power source) to 12V of the device (pin 1)
6 Coin Acceptor <=> 12 Power Supply <=> 5V FTDI

      12v       <=>    +12V         <=>  -(NC)-
Serial Output   <=>   -(NC)-        <=>   RXI
      0V        <=>    GND          <=>   GND
Counter Output  <=>   -(NC)-        <=>  -(NC)-
Inhibiting Port <=>   -(NC)-        <=>  -(NC)-

Note: -(NC)- means that there is nothing connected.