Source: https://mokxi.com/parts/coinacceptor
Updated: 2026-11-22

Part

# Coin acceptor, CH-926

On 12 V, a burst of pulses on COIN for each coin it knows, pulling the line low for each.

See every part

- 4 pins
- 2 settings
- In 1 project

Drawn live by the editor's own code, at the size you see it.

At a glance

## The Coin acceptor, CH-926 in brief

What it is, and every setting the properties panel gives it.

The CH-926 is a programmable coin acceptor with a chrome face, a coin slot and a return lever, and a four-wire harness. It is taught up to six kinds of coin by sample and told how many pulses each is worth; a coin it knows drops through and COIN sends that many pulses, while anything else falls out of the return. The board never learns which coin it was, only a count. The model wires DC12V to a 12 V supply, COIN to an input with a pull-up, and GND to ground. Its pulse property sets each pulse's length in milliseconds, 50 by default, with a gap of the same length, and nc flips the output as the NO/NC switch does. The model does not include teaching the coins, which happens on the unit's own buttons, the inhibit input some versions have, or the time a real one takes to look at a coin. Click a coin under the face to drop it in. Coins are worth 1, 2, 5 and 10 pulses.

Family

Inputs

Pins

4

pulse

50

nc

false

Pins

## 4 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

What it does

DC12V

The 12 V supply, the red wire.

COIN

The pulse output, the white wire. Open collector: it pulls to GND for each pulse.

GND

Ground, shared with the board.

COUNTER

Drives an external counter on a real one. Not connected here.

How to use it

## How to use the CH-926 coin acceptor with an Arduino Uno

The example project is Piggy bank. A CH-926 coin acceptor counts each coin's pulses and a TM1637 display adds up the savings in dollars and cents. DC12V goes to the 12 V supply, COIN goes to Uno pin 2, and GND goes to the Uno's GND, shared with the 12 V supply. The display's CLK and DIO go to pins 13 and 12. The acceptor is taught that a nickel sends 1 pulse, a dime 2, a quarter 5 and a dollar coin 10.

The sketch enables the Uno's pull-up on pin 2 and attaches an interrupt that counts falling edges. A burst is over once the line has been quiet longer than any gap inside one, so it waits 200 ms. It then adds up the burst's count, looks up its value in cents, prints it to the serial monitor and shows the total on the display. An unknown count prints "not a coin I know". While it runs, click a coin under the acceptor's face to drop it in.

With default settings, the serial monitor printed: "Mokxi Arduino Uno: piggy bank", "saved $0.00". The first line is the sketch starting and the second is the empty total at power on, before any coin is dropped.

After a coin worth 5 pulses was dropped in, the serial monitor printed: "5 pulses: 25 cents, saved $0.25". The sketch counted five pulses, looked up 25 cents, and added it to the total. Coins are worth 1, 2, 5 and 10 pulses here. Drop them a moment apart, or two read as one long burst.

Part pin

Goes to

DC12V

12 V

COIN

Arduino Uno R3 pin 2

GND

Arduino Uno R3 pin GND

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

sketch.ino · Arduino Uno R3 · the first 45 lines

Common errors

## Common Coin acceptor, CH-926 errors and fixes

What goes wrong

The fix

Powering the acceptor from the board's 5 V pin.

It needs 12 V, with the grounds joined. Under 10.8 V it is not running and the coin falls back out.

Leaving COIN without a pull-up.

The output is an open collector, so use INPUT_PULLUP on the board or a resistor to 5 V. Never to 12 V.

Counting a coin per pulse.

Count the pulses in a burst, then decide what the burst was worth once the line has been quiet for longer than a gap.

Dropping two coins at the same time.

Drop them a moment apart. Two clicked at once follow each other by a single gap and read as one long burst.

Questions

## Questions and answers

### how many coins can a ch-926 be taught

Up to six kinds of coin, taught by sample on the unit's own buttons. The board never learns which coin it was, only a count.

### what voltage does the ch-926 coin acceptor need

A 12 V supply on DC12V. Under 10.8 V it is not running and a coin falls back out.

### does the ch-926 coin output need a pull-up

Yes. COIN is an open collector that pulls to GND for each pulse, so it needs INPUT_PULLUP on the board or a resistor to 5 V, never to 12 V.

### what does the pulse setting do on the coin acceptor

It is the length of each pulse in milliseconds, 50 by default, with a gap of the same length after it. The speed switch on a real one sets it; match the two.

How it is modeled

## What is true about the Coin acceptor, CH-926, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Modeled

The supply. Under 10.8 V (12 V less 10%) it is not running, and a coin falls back
out.

The output. An open collector, so COIN needs a pull-up: INPUT_PULLUP on the
board, or a resistor to 5 V. Never to 12 V.

Coins in a queue. A coin dropped while another is still sending waits for it to
finish. Drop them a moment apart: two clicked at once follow each other by a single
gap and read as one long burst.

### Not modeled

Teaching the coins, which happens on the unit's own buttons; the inhibit input some
versions have; and the time a real one takes to look at a coin.

From Coin acceptor, CH-926, in full.

Projects

## See the Coin acceptor, CH-926 in a project

One built-in project uses it. It opens in the editor, already wired.

Boards

## The boards it is shown on

This board has a built-in project with the Coin acceptor, CH-926 in it.

- Arduino Uno R3

Keep going

## Keep going

- Arduino Button Counter: Count Presses, Not Bounces
- Pushbutton
- Buzzer

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the Coin acceptor, CH-926

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
