36 open source boards using the 4N25

Real designs built with the 4N25, from public GitHub projects: a quick way to see how others power, decouple and connect it. Each board comes with its KiCad files, full parts list and a render — and you can simulate its firmware on HardLabs.

36 boardsClear filters|Most starred

How designs wire the 4N25

Read from the KiCad layouts of 28 open source designs, one per repository: what each pin of the 4N25 connects to, and the resistors, capacitors and other passives placed on it.

  • Pin 1 has a series resistor on 19 of 28 designs, most often 1 kΩ (then 330 Ω).
  • Pin 6 is left unconnected on 22 of 26 designs (a signal on 4).
Pin 1Connected to: Signal 93%
  • Series resistor on 68% · 1 kΩ (5), 330 Ω (3), 200 Ω (2)
NCpin 3Connected to: Not connected 100%
Pin 5Connected to: A connector 25%, the microcontroller 21% · 3.3V 32%
  • Pull-up to 5V on 39% · 10 kΩ (5), 4.7 kΩ (3), 47 kΩ (1)
Pin 6Connected to: Not connected 85% · a signal 15%

2 more pins vary from design to design. Connections count pins, parts count designs; values in brackets are how many parts had that value. Designs read include Row driver by CarlRaymond, Vm129-cpu by mirdej, LTC3 Charge Controller by psas and MVMEPI by rhaamo.

The 4N25 in open source designs

The gallery holds 36 open source boards using the 4N25 from 28 GitHub repositories; a typical one measures about 101.8 × 85.5 mm and carries around 55 components.

92% are two-layer designs, the rest use four layers or more, and 33% carry an open source license.

The most starred is Row driver by CarlRaymond.

4N25: common questions

Where can I find a 4N25 reference design?

Each of the 36 boards on this page is a real design using the 4N25. Open one to see how it is wired up, with the full BOM, a render of the layout and links to its KiCad files.

What resistor goes on the 4N25 pin 1?

Pin 1 has a series resistor on 19 of 28 designs, most often 1 kΩ (then 330 Ω). Counted from the KiCad layouts of 28 open source designs using the 4N25.

How is the 4N25 pin 6 connected?

Pin 6 is left unconnected on 22 of 26 designs (a signal on 4). Counted from the KiCad layouts of 28 open source designs using the 4N25.

What parts are used alongside the 4N25?

The LM7805, ATmega328P-PU, MOC3021M, 74LS05 and 74LS14 appear in the most repositories here.

Which microcontrollers do boards using the 4N25 use?

Most are built on AVR/Arduino (11), ESP32 (3), ESP8266 (2) and PIC (2).

How big is a typical board using the 4N25?

The median is 101.8 × 85.5 mm, and 92% are two-layer designs.

What is the most popular open source board using the 4N25?

By GitHub stars, Row driver by CarlRaymond, with 44 stars.

Can I simulate one of these boards using the 4N25 before building it?

Yes. HardLabs turns a board's netlist and BOM into a working simulation, so you can boot and test firmware against it with no hardware on your desk.

Browse boards by part