Trying to understand ESP32 GPIO triggering relay based on AdaFruit Latching Circuit

Electronics student here, new to simulation and trying to learn using Adafruit's latching relay schematic (https://learn.adafruit.com/mini-relay-featherwings/downloads) and could use some help.

My goal is to build my own ESP32 controller on a custom PCB that can trigger both 5v and 3v relays. Starting with this 3v latching relay schematic, ESP32 datasheet says 40 mA source current on the high level and -28 mA sink current on the low level for the GPIO pins that will be driving the transistors. I modeled the Adafruit in CL and note that the current flowing through the 2222 is over 50ma to trigger the relay coil and light the LED. My first question is: Is it OK to drive the LED with that much current?

by DDomnick
September 01, 2021

Am I reading that wrong:? I suppose the collector current of Q1 is the sum of the relay current and the LED current. If I look at the LED cathode, it shows -1.520ma. That's too low it seems.

by DDomnick
September 01, 2021

No Answers

No answers yet. Contribute your answer below!


Your Answer

You must log in or create an account (free!) to answer a question.

Log in Create an account


Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

Search Questions & Answers


Ask a Question

Anyone can ask a question.

Did you already search (see above) to see if a similar question has already been answered? If you can't find the answer, you may ask a question.


About This Site

CircuitLab's Q&A site is a FREE questions and answers forum for electronics and electrical engineering students, hobbyists, and professionals.

We encourage you to use our built-in schematic & simulation software to add more detail to your questions and answers.

Acceptable Questions:

  • Concept or theory questions
  • Practical engineering questions
  • “Homework” questions
  • Software/hardware intersection
  • Best practices
  • Design choices & component selection
  • Troubleshooting

Unacceptable Questions:

  • Non-English language content
  • Non-question discussion
  • Non-electronics questions
  • Vendor-specific topics
  • Pure software questions
  • CircuitLab software support

Please respect that there are both seasoned experts and total newbies here: please be nice, be constructive, and be specific!

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.