Source: https://mokxi.com/parts/arcadeled
Updated: 2026-11-16

Part

# LED arcade button

The cabinet button with a lamp inside: the switch on two tabs, a 5 V or 12 V LED on the other two.

See every part

- 4 pins
- 6 settings
- In 1 project
- In 1 lesson

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

At a glance

## The LED arcade button in brief

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

The LED arcade button is a 30 mm arcade button with a lamp inside: a microswitch on tabs 1 and 2, and an LED with its resistor in the holder on L+ and L-. Pressing it does not light it; the sketch decides. On an Uno, tab 1 goes to GND and tab 2 to an input with INPUT_PULLUP, so a press reads LOW, and a 5 V lamp goes straight from a PWM pin to ground, a red one drawing about 19 milliamps. On an ESP32 the switch wires the same, but a 5 V lamp on a 3.3 volt pin runs at about half its current. Mokxi models the lamp as the color’s LED in series with the holder’s 150 ohms for a 5 V lamp or 470 ohms for a 12 V one, so a white or blue lamp is dimmer than a red one on the same supply, and the bounce property adds one rebound inside 2 milliseconds The classic mistake is a 12 V lamp on a 5 V pin, which barely glows: switch its L- with a transistor from 12 volts. Bare lamps with no resistor, and heat, are not modeled.

Family

Inputs

Pins

4

color

red (or green, blue, yellow, white)

lamp

5V (or 12V)

bounce

false

size

30 (or 24)

label

key

Pins

## 4 pins

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

Pin

What it does

1

The microswitch, a plain contact, closed while pressed.

2

The microswitch, a plain contact, closed while pressed.

L+

The lamp. Its resistor is in the holder, so it goes straight across its rated supply.

L-

The lamp. Its resistor is in the holder, so it goes straight across its rated supply.

How to use it

## How to use an LED arcade button with an Arduino

It is two parts in one housing. The microswitch: tab 1 to GND and tab 2 to pin 7 with INPUT_PULLUP, so a press reads LOW. The lamp: L+ to PWM pin 5 and L- to ground. A 5 V lamp has its resistor in the holder, so it goes straight on a pin, and a red one draws about 19 mA.

Pressing the button does not light it; the sketch decides. The lit button here breathes the lamp with analogWrite() while it waits, goes full bright while held, and counts every press. A 12 V lamp on a 5 V pin barely glows: switch its L- with a transistor from a 12 V supply instead.

Part pin

Board pin

1

GND

2

Pin 7

L+

Pin 5

L-

GND

On an ESP32 the switch wires the same; a 5 V lamp on a 3.3 V pin runs at about half its current, and a white or blue one barely lights.

Hold the button

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

How it is modeled

## What is true about the LED arcade button, here

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

### Modeled

The lamp is the bench's LED model for its color in series with the holder's
resistor, so it is a diode: wired the wrong way it stays dark, a white or blue
lamp drops a volt more than a red one and is dimmer on the same supply, and a
12 V lamp on 5 V barely glows. The switch is the arcade button's microswitch.

### Not modeled

Lamps with no resistor (the bare LED kind), and heat.

From LED arcade button, in full.

Projects

## See the LED arcade button in a project

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

Lessons

## Where it turns up in a lesson

One lesson places it in its own circuit.

### Learn articles

1 lesson

- Design Your Own Fight Stick or Leverless Controller

Boards

## The boards it is shown on

This board has a built-in project with the LED arcade button in it.

- Arduino Uno R3

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 LED arcade button

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
