Skip to the content
2 layersRtc nightlight, the printed circuit board in 3D

Rtc nightlight

dilshan/rtc-lamp1

Real-time clock based automatic LED lamp

Copper layers
2
Thickness
1.6 mm
Parts
33
Nets
29
Pads
116
Tracks, vias
276, 12
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
9 Dec 2018
Updated
9 Dec 2018

Overview

Rtc nightlight is an open-source printed circuit board by dilshan, from the dilshan/rtc-lamp repository on GitHub, published under the MIT licence. It is a 2-layer board with 33 parts on 29 nets, routed with 276 tracks and 12 vias.

It is built around the MAX232N, DS1307+ and LM7805, with the 2SC945, 6A10 and STP55NF06 among its other parts. Its parts include 11 capacitors, 6 resistors, 4 ICs, 4 connectors and 2 transistors. It belongs with the lEDs and displays boards and the PIC boards of this library.

Main components

6

README

README.md

RTC based automatic LED lamp

This is real-time clock based automatic LED lamp which we originally designed to use as night light. This lamp can programmed to turn on and off at the specific time of the day. For example, it can program to turn on at 6 PM on each day and to turn off at 4 AM next day.

Prototype version of LED lamp

The core component of this project is PIC16F883 MCU and it's firmware is developed using MikroC Pro for PIC. We select this MCU because of it's 7 KB flash memory, I2C, UART, E2PROM and built-in 8-bit and 16-bit timers. In this system we use DS1307 RTC because of it's availability in the market and lower external component count.

LED module

This lamp is designed to work with commonly available 7W LED panels. In our prototype design we use 7W 24V warm-white LED module to test this system. To drive other LED modules change value of the R5 resistor of the current limiter circuit.

7W LED module used in prototype build

LED modules, heat-sink and lamp enclosures are now commonly available in the market but make sure to use good quality 24V - 28V LED module with this circuit. During our prototype we found lot of defective LED modules in the market.

Battery backup

This unit is designed to work with 24V - 3A power supply unit. 3V button cell is required as back power source of DS1307 RTC. Supplied PCB is designed to work with CR2025 or CR2032 type button cells.

Circuit assembly

For this project we use commonly available, less expensive electronic components and PCB is designed for "through-hole" type components.

Both Q1 (STP55N06) and U4 (LM7805) required heatsinks. If heatsink is shared between both devices make sure to use proper isolation in either Q1 or U4 (or both).

J3 to RS232 pin mapping for DB-9 connector is listed in below:

J3DB9
Pin 1Pin 2
Pin 2Pin 3
Pin 3Pin 5

Firmware

PIC16F883 firmware is developed using MikroC Pro for PIC. Compiled HEX file is available at release section of this repository.

Programming the system

This system is designed to program using RS232 serial port. User can modify system time, light start and end times by connecting this system to any computer through RS232 serial port. To program and view system information user can use any serial terminal application like minicom, putty, etc. with baud rate of 9600.

Once system is connected to the host PC it can switch to programming mode by sending Enter or Space key stroke through the serial terminal.

If host PC is not equipped with serial port, use USB to RS232 converter cable / module. During our tests we use couple of USB to RS232 converters (such as FT232 and CH340) without any issues.

Bill of materials

IdComponentQty
U1PIC16F883-IP1
U2DS13071
U3MAX2321
U4LM78051
Q1STP55NF061
Q22SC9451
D16A101
Y132.768 Crystal1
BT1CR2025 or CR2032 battery holder with battery1
R1, R2, R34.7K3
R4, R610 K2
R52.2R - 3W1
C14.7 MFD / 16V1
C2, C3, C4, C510MFD / 16V4
C60.33MFD / 63V1
C7, C9, C10, C110.1 MFD / 63V4
C8470 MFD / 35V1
F112V 1A Fuse1
L1VK200 - 3 turns1
BZ1KXG1203C or 5V DC PCB mount buzzer1
J12.54mm - 2 Way, 1 Row PCB header1
J22.54mm - 3 Way, 1 Row PCB header1
J3, J45.08mm - 2 Way PCB terminal block2
7W 24V/28V LED module and heatsink1
3mm Red LED1
DC 50V Rocker switch1
DB9 Female Connector1
Panel Mount DC Power Socket1
TO-220 heatsink2

Datasheets

License

This is an open hardware project and all it's source code are released under the terms of MIT license. Schematics, PCB designs and other resources are released under the terms of Creative Commons Attribution 4.0 international license.

Parts

33
QtyValueFootprintReferences
40.1MFDCapacitor_THT:C_Disc_D8.0mm_W5.0mm_P5.00mmC7, C9, C10, C11
410MFDCapacitor_THT:CP_Radial_Tantal_D5.0mm_P5.00mmC2, C3, C4, C5
34.7KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3
210KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4, R6
10.33MFDCapacitor_THT:C_Disc_D16.0mm_W5.0mm_P10.00mmC6
112V 1AFuse:Fuseholder_TR5_Littelfuse_No560_No460F1
12.2RResistor_THT:R_Axial_DIN0411_L9.9mm_D3.6mm_P12.70mm_HorizontalR5
124V 3A INTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-3-2-5.08_1x02_P5.08mm_HorizontalJ4
12SC945Package_TO_SOT_THT:TO-92_Inline_WideQ2
132.768kHzCrystal:Crystal_AT310_D3.0mm_L10.0mm_HorizontalY1
14.7MFDCapacitor_THT:CP_Radial_Tantal_D5.0mm_P5.00mmC1
1470MFDCapacitor_THT:CP_Radial_D10.0mm_P7.50mmC8
16A10Diode_THT:D_DO-201AD_P15.24mm_HorizontalD1
17W LEDTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-3-2-5.08_1x02_P5.08mm_HorizontalJ3
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1CR2032-HOLDERBattery:BatteryHolder_Keystone_106_1x20mmBT1
1DS1307+Package_DIP:DIP-8_W7.62mm_LongPadsU2
1IND-LEDConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1LM7805Package_TO_SOT_THT:TO-220-3_VerticalU4
1MAX232Package_DIP:DIP-16_W7.62mm_LongPadsU3
1PIC16F883-IPPackage_DIP:DIP-28_W7.62mm_LongPadsU1
1RS232Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ2
1STP55NF06Package_TO_SOT_THT:TO-220-3_VerticalQ1
1VK200-3TInductor_THT:L_Axial_L7.0mm_D3.3mm_P2.54mm_Vertical_Fastron_MICCL1

Similar boards

  • 2 layers131.8 × 99.9 mmUps-12v, the printed circuit board in 3D

    Ups-12v

    dilshan/12v-automatic-ups

    12V Automatic UPS system

    77 parts50MIT
  • 4 layers33 × 90 mmActive drag system, the printed circuit board in 3D

    Active drag system

    RocketryVT/active-drag-system

    Eigen Library, cmake, and arm-none-eabi-gcc tooling required for successful build.

    100 parts6MIT
  • 2 layers130.5 × 175.3 mmNew Buck, the printed circuit board in 3D

    New Buck

    aryankumar1704/SIMO-Buck-Converter-PCB-Design

    69 parts1
  • 2 layersPrint, the printed circuit board in 3D

    Print

    sangseu/kicad

    896 parts
  • 2 layers64 × 64 mmCmd power, the printed circuit board in 3D

    Cmd power

    bpmine/minou_uino

    Les programmes de cette base gèrent la cabane de notre minou (voir images suivantes).

    38 parts
  • 2 layers83 × 90 mmAmplifier Power Supply, the printed circuit board in 3D

    Amplifier Power Supply

    chdsolinap/ece-projects

    ECE hardware and electronics projects — PCB design, circuit prototypes, and embedded systems built at PLM.

    12 parts
  • 2 layers203.2 × 135.9 mmPreamp, the printed circuit board in 3D

    Preamp

    oco2000/AVRForth

    Forth for AVR microcontrollers

    75 parts4GPL-3.0
  • 2 layers100 × 85 mmB68k io, the printed circuit board in 3D

    B68k io

    Lougous/b68k-io

    IO extension board for b68k computer

    66 partsMIT

Questions

What parts does the Rtc nightlight use?

33 parts, built around the MAX232N, DS1307+, LM7805 and 2SC945. 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 Rtc nightlight KiCad files?

From the dilshan/rtc-lamp repository on GitHub, at the commit this page was made from: the board is rtc-nightlight-kicad/rtc-nightlight.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rtc nightlight design in my own project?

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