Skip to the content
2 layers100 × 70 mmWul v21, the printed circuit board in 3D

Waking up to an electronic Sun.

Size
100 × 70 mm
Copper layers
2
Thickness
1.6 mm
Parts
73
Nets
22
Pads
165
Tracks, vias
161, 4
Pours
4
Routed
Yes
KiCad
KiCad 4
Created
3 Jul 2022
Updated
11 Jul 2022

Overview

Wul v21 is an open-source printed circuit board by exotwist, from the exotwist/wake-up-light repository on GitHub, published under the BSD-3-Clause licence. It is a 2-layer board of 100 × 70 mm with 73 parts on 22 nets, routed with 161 tracks and 4 vias.

It is built around the BT137. Its parts include 11 resistors, 6 diodes, 5 capacitors, 4 connectors and 2 fuses. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

Wake-Up Light cover image

About

This is a dawn simulation lamp I made for my personal use.

A dawn simulator wakes you up by simulating sunrise in the bedroom; the increasing amount of light starts preparing your body for awakening. The end result is that you naturally wake up on your own, instead of being jarred awake by the usual alarm clock sounds.

When it receives power, the wake-up light

  • Very gently increases from darkness to full brightness over the course of 30 minutes,
  • Remains at full brightness for 45 minutes,
  • Then turns off fairly quickly.

The wake-up light is switched on by a plug-in timer that activates 45 minutes before my intended rise time.

It also includes a button to toggle the light between off and full brightness, so I can turn it off after I get up.

Design

The light controller is a classic phase-cutting triac dimmer, with zero-cross detection and triac control performed by a small microcontroller. The dimmer drives a 150W halogen floodlight, which gives a nice orange glow at low brightness, but provides reasonably white full-spectrum light at high brightness.

The design was also a bit of an engineering exercise; I wanted to end up with a fairly minimal design without compromising stability or reliability.

Isolation

The controller is not isolated from mains; it uses a capacitive dropper power supply, and the MCU is connected directly to the triac. As a result, the entire circuit may be at mains potential, it must be installed so that users can't touch any of it. This also applies to the button, which must provide adequate isolation.

The MCU also connects directly to mains for zero-cross sensing, as inspired by Atmel application note AN2508.

Mains voltage and frequency

The controller was designed to run on 230VAC @ 50Hz. If you want to run it on 120VAC, the power supply caps (C1/C2) probably should be doubled in value. The firmware should be able to deal with 60Hz without problems, but I haven't tested this.

Sources

The PCB layout is provided as a KiCad project in pcb/. The project uses a handful of custom footprints in pcb/WakeUpLight.pretty/, you'll need to import them into KiCad.

Gerber files in pcb/gerber/.

Firmware

The firmware for the ATTiny45P lives in mcu/. It is written in C, for avr-gcc / avr-libc. If you have a stk500v1 compatible programmer on USB and avrdude, just SERIAL=/dev/ttyUSB0 make upload should do the trick.

Parts

73
QtyValueFootprintReferences
3100nCapacitors_ThroughHole:C_Rect_L18_W6_H12_P15C1, C2, C5
31kResistors_ThroughHole:Resistor_Horizontal_RM10mmR4, R5, R6
210kResistors_ThroughHole:Resistor_Horizontal_RM10mmR7, R10
21MResistors_ThroughHole:Resistor_Horizontal_RM10mmR8, R9
21MResistors_ThroughHole:Resistor_Horizontal_RM7mmR2, R3
21N4004Diodes_ThroughHole:Diode_DO-41_SOD81_Horizontal_RM10D2, D3
11.5mHWakeUpLight:Choke_Toroid_15x36mm_VerticalL1
1100nCapacitors_ThroughHole:C_Disc_D6_P5C4
1100°CCapacitors_ThroughHole:C_Rect_L13_W4_P10F2
1100µCapacitors_ThroughHole:C_Radial_D8_L13_P3.8C3
1150Resistors_ThroughHole:Resistor_Horizontal_RM10mmR11
1220Resistors_ThroughHole:Resistor_Horizontal_RM15mmR1
15.1VDiodes_ThroughHole:Diode_DO-35_SOD27_Horizontal_RM10D1
1AVRISPPin_Headers:Pin_Header_Straight_2x03P3
1BT137WakeUpLight:TO-220_WideD6
1BUTTONPin_Headers:Pin_Header_Straight_1x02P2
1GREENLEDs:LED-3MMD5
1LOADWakeUpLight:bornier2_wideP4
1MAINSWakeUpLight:bornier2_wideP1
1REDLEDs:LED-3MMD4
1T1AFuse_Holders_and_Fuses:Fuseholder5x20_horiz_open_inline_Type-IF1
1_ATTINY45-PHousings_DIP:DIP-8_W7.62mmIC1

The 30 most common of 73 parts.

Similar boards

  • 2 layers96.3 × 98 mmAquarium, the printed circuit board in 3D

    Aquarium

    baranovskiykonstantin/aquarium

    Control the lighting and the heating of the aquarium.

    73 parts11
  • 2 layers50.8 × 50.8 mmEsp switch, the printed circuit board in 3D

    Esp switch

    foxel/esp-dual-rf-switch

    LightFox Dual: esp8266 WiFi+RF dual channel switch

    29 parts6
  • 2 layers95.9 × 129.5 mmSolderin Station, the printed circuit board in 3D

    Solderin Station

    kr4fty/DiySolderingStation

    Diy Soldering Stations with Atmega (Arduino UNO). Firmware and hardware design included

    73 parts3GPL-2.0
  • 2 layers100 × 60 mmArduino nano reflow TRIAC v1 0, the printed circuit board in 3D

    Arduino nano reflow TRIAC v1 0

    hecko/nanoReflowController

    (c) 2017 David Sanz Kirbis (c) 2014 Karl Pitrich in part based on a project (c) 2013 Ed Simmons

    34 parts
  • 2 layers50 × 100 mmDimmer final, the printed circuit board in 3D

    Dimmer final

    MateoCignetti/ProyectoFinal

    Esta obra está bajo una [Licencia Creative Commons Atribución-NoComercial-CompartirIgual 4.0 Internacional][cc-by-nc-sa].

    32 parts2
  • 2 layers131.2 × 132.5 mmMacropad, the printed circuit board in 3D

    Macropad

    earthtojake/text-to-cad

    Design physical products with AI

    73 parts26kMIT
  • 2 layers76 × 112 mmLaunch heavy, the printed circuit board in 3D

    Launch heavy

    system76/launch

    System76 Launch Configurable Keyboard

    73 parts1.4kGPL-3.0

Questions

How big is the Wul v21 PCB?

It measures 100 × 70 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Wul v21 use?

73 parts, built around the BT137. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Wul v21 KiCad files?

From the exotwist/wake-up-light repository on GitHub, at the commit this page was made from: the board is pcb/wul_v21.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Wul v21 design in my own project?

Its repository publishes it under the BSD-3-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).