7 open source boards using the LM311N

Real designs built with the LM311N, 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.

7 boardsClear filters|Most starred

How designs wire the LM311N

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

  • The OFS pin is left unconnected on 6 of 6 designs.
  • The VCC- pin is tied to GND on 5 of 6 designs.
  • The POS pin has a series resistor on 4 of 6 designs, most often 47 kΩ (then 1 kΩ).
  • The STRB/OFS pin is left unconnected on 4 of 6 designs.
GNDpin 1Connected to: GND 67% · not connected 33%
POSpin 2Connected to: Signal 100%
  • Series resistor on 67% · 47 kΩ (1), 1 kΩ (1), 87 kΩ (1)
  • Pull-up to 12V on 50% · 3.3 kΩ (1), 1 kΩ (1), 10 kΩ (1)
  • Resistor to GND on 33% · 4.7 kΩ (1)
NEGpin 3Connected to: Signal 100%
  • Series resistor on 33% · 10 kΩ (1), 100 Ω (1)
  • Pull-up to VREF on 33% · 1 kΩ (1), 10 kΩ (1)
VCC-pin 4Connected to: GND 83% · a signal 17%
OFSpin 5Connected to: Not connected 100%
STRB/OFSpin 6Connected to: Not connected 67% · GND 17% · a signal 17%
OUTpin 7Connected to: Signal 100%
  • Series resistor on 50% · 100 kΩ (2), 100 Ω (1), 47 kΩ (1)
  • Pull-up to 3.3V on 50% · 10 kΩ (2), 2.2 kΩ (1)
VCC+pin 8Connected to: 12V 83% · a signal 17%
  • Decoupling capacitor on 33% · 100 nF (2)

Connections count pins, parts count designs; values in brackets are how many parts had that value. Designs read include Li-IonBatteryProtection by cnobile2012, Hvsupply by xunil, Opel velocity interface by MITEVT and Multimeter by MadsRudolph.

The LM311N in open source designs

The gallery holds 7 open source boards using the LM311N from 6 GitHub repositories; a typical one measures about 127 × 58.4 mm and carries around 62 components.

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

The most starred is Li-IonBatteryProtection by cnobile2012.

Parts used alongside the LM311N

Microcontrollers on boards using the LM311N

LM311N: common questions

Where can I find a LM311N reference design?

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

How is the LM311N OFS pin connected?

The OFS pin is left unconnected on 6 of 6 designs. Counted from the KiCad layouts of 6 open source designs using the LM311N.

How is the LM311N VCC- pin connected?

The VCC- pin is tied to GND on 5 of 6 designs. Counted from the KiCad layouts of 6 open source designs using the LM311N.

What resistor goes on the LM311N POS pin?

The POS pin has a series resistor on 4 of 6 designs, most often 47 kΩ (then 1 kΩ). Counted from the KiCad layouts of 6 open source designs using the LM311N.

Which microcontrollers do boards using the LM311N use?

Most are built on AVR/Arduino (1).

How big is a typical board using the LM311N?

The median is 127 × 58.4 mm, and 100% are two-layer designs.

What is the most popular open source board using the LM311N?

By GitHub stars, Li-IonBatteryProtection by cnobile2012, with 6 stars.

Can I simulate one of these boards using the LM311N 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