Fork me on GitHub

Project Notes

#062 SRLatchFlipper

Set/Reset latch with BJTs, controlled and monitored by an Arduino.

Here’s a quick video of the circuit in action:

SRLatchFlipper demo


This is a classic Set-Reset latch under Arduino control.

See the LEAP#061 SRLatch project for the implementation details and design notes on the flip-flop. SRLatch uses manual switch entry to control the flip-flop.

This version of the circuit uses an Arduino to drive the set/reset inputs, and monitor the output state. For simplicity, the circuit is powered from the Arduino’s 5V regulated pin. Output state is read with analog ports, and the data sent to the serial port for plotting with PlotNValues (a simple Processing sketch).

The processing trace below demonstrates the behaviour using 4 traces. From bottom to top:

  • Lower plot: SET input
  • Lower-middle plot: RESET input
  • Upper-middle: Out1 ouput state Q
  • Upper plot: Out2 inverted output state -Q

processing trace

The plot demonstrates:

  • how repeated triggers have no effect on the output
  • SET sends Out1/Q high
  • RESET sends Out1/Q low
  • Out2/-Q is always the inverse of Out1/Q


The Breadboard

The Schematic

The Build

Credits and References

About LEAP#62 Logic GatesBJTArduino
Project Source on GitHub Project Gallery Return to the LEAP Catalog

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

LEAP is my personal collection of electronics projects, usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting (IMHO!).

The projects are usually inspired by things found wild on the net, or ideas from the sources such as:

Feel free to borrow liberally, and if you spot any issues do let me know. See the individual projects for credits where due. There are even now a few projects contributed by others - send your own over in a pull request if you would also like to add to this collection.