Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#004 Pushbutton switch for LED] Use a NE555! #36

Open
steveschnepp opened this issue Nov 13, 2022 · 0 comments
Open

[#004 Pushbutton switch for LED] Use a NE555! #36

steveschnepp opened this issue Nov 13, 2022 · 0 comments

Comments

@steveschnepp
Copy link
Contributor

steveschnepp commented Nov 13, 2022

I actually had the exact same need. But didn't want to leverage a full MCU, a full Arduino even less 馃槈

So, I designed a schmitt trigger based one. Yet some search on the internet unearthed a NE555 based solution. Which is great as a DIP-8 is a smaller footprint as the DIP-14 from a CD40106. And using a NE555 for something is always nice 馃槀

A nice side effect of the schmitt trigger is that there's an automatic debouncing included, as depending on the capacitor and resistor values one cannot click too fast.

The trick is that the NE555 is also used as a schmitt trigger like my solution. I inverted the resistor values in my design, in order to consume less current (battery-powered). So a long press will actually keep toggling the output.

Here's the link to the NE555 one : https://www.electronics-lab.com/project/toggle-on-off-switch/

Mine is highly similar, but using a CD40106 and having 2x 1M resistors with a 47k one filling a 22uF capacitor. I used the other invertors in parallel to drive the LED with more current.

Funnily, I finally settled for a NE555 but I had to lower the resistors otherwise it was too glitchy. 馃槀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant