<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-designed-a-custom-pcb-to-avoid-pressing-a-button-three-times-bhec4qkbo" -->

---
title: I Designed A Custom PCB To Avoid Pressing A Button Three...
description: A developer built a custom PCB to automate pressing a night light button three times every night. Using an ATtiny85 microcontroller (chosen for its ultra-low...
canonical: https://daily.dev/posts/i-designed-a-custom-pcb-to-avoid-pressing-a-button-three-times-bhec4qkbo
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Designed A Custom PCB To Avoid Pressing A Button Three Times | daily.dev
og:description: A developer built a custom PCB to automate pressing a night light button three times every night. Using an ATtiny85 microcontroller (chosen for its ultra-low...
og:url: https://daily.dev/posts/i-designed-a-custom-pcb-to-avoid-pressing-a-button-three-times-bhec4qkbo
og:image: https://api.daily.dev/og/posts/BhEC4qKBO.png
og:image:alt: I Designed A Custom PCB To Avoid Pressing A Button Three Times
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I Designed A Custom PCB To Avoid Pressing A Button Three Times

**[Lobsters](https://daily.dev/sources/lobsters)** · 10 min read · 0 upvotes · 0 comments

## Summary

A developer built a custom PCB to automate pressing a night light button three times every night. Using an ATtiny85 microcontroller (chosen for its ultra-low power draw compatible with the light's capacitor-drop power supply), a 2N3904 transistor, voltage regulator, and a handful of passive components, the board simulates button presses on boot. The PCB was designed in EasyEDA, manufactured by JLCPCB, and programmed via a Raspberry Pi's GPIO pins using avrdude. The finished board is integrated with Home Assistant so the light automatically dims to the preferred level when the owner goes to bed. The project is MIT-licensed on GitHub with gerbers, BOM, schematic, and C source code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.tymscar.com/posts/opensourcedimmer>

## Similar posts on daily.dev

- [A Custom Zigbee Touch Keypad](https://daily.dev/posts/a-custom-zigbee-touch-keypad-po4d64rsy) · Hackaday · 0 upvotes · 0 comments
- [This ESP32 alarm clock comes complete with a built-in night light and wake-up light](https://daily.dev/posts/this-esp32-alarm-clock-comes-complete-with-a-built-in-night-light-and-wake-up-light-lxlyjsgsj) · XDA Developers · 0 upvotes · 0 comments
- [DIY Smart Button Gets Surprisingly Complicated](https://daily.dev/posts/diy-smart-button-gets-surprisingly-complicated-2hatyrqyk) · Hackaday · 0 upvotes · 0 comments
- [Conway's Game of Life, in real life](https://daily.dev/posts/conway-s-game-of-life-in-real-life-ns75bpoej) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#hardware](https://daily.dev/tags/hardware), [#embedded](https://daily.dev/tags/embedded)

[View this post on daily.dev](https://daily.dev/posts/i-designed-a-custom-pcb-to-avoid-pressing-a-button-three-times-bhec4qkbo)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I Designed A Custom PCB To Avoid Pressing A Button Three Times","url":"https://daily.dev/posts/i-designed-a-custom-pcb-to-avoid-pressing-a-button-three-times-bhec4qkbo","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-designed-a-custom-pcb-to-avoid-pressing-a-button-three-times-bhec4qkbo"},"datePublished":"2026-07-28T22:23:17.621Z","dateModified":"2026-08-01T00:10:57.225Z","description":"A developer built a custom PCB to automate pressing a night light button three times every night. Using an ATtiny85 microcontroller (chosen for its ultra-low...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/68eeeb2d4ceb250b0c59662119f2a0b5?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/68eeeb2d4ceb250b0c59662119f2a0b5?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-designed-a-custom-pcb-to-avoid-pressing-a-button-three-times-bhec4qkbo","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"hardware,embedded","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"I Designed A Custom PCB To Avoid Pressing A Button Three Times"}]}
```

