About the article

Night Light Control

using the AT90S2313

Night Light Control
The special feature of this night light is that it has a switch-off delay. This is achieved using a microcontroller with an integrated 16 bit counter.This night light can be switched on and off as normal, but it also includes a timer which can automatically turn the light off after a preset time. The light can be fitted with two (or more) buttons, one of which can be situated ‘locally’ to the light while the other (or others) can be some distance away. The local button can sport LEDs which not only make it easier to find it in the darkness, but which also indicate the status of the night light controller.
Downloading of this magazine article is reserved for registered users only.
Login | Register now!
Gerber file

CAM/CAD data for the PCB referred to in this article is available as a Gerber file. Elektor GREEN and GOLD members can exclusively download these files for free as part of their membership. Gerber files allow a PCB to be produced on an appropriate device available locally, or through an online PCB manufacturing service.

Elektor recommends its business partner Eurocircuits as the company of choice for its own prototypes and volume production in selected cases.

Component list
R1 = 680?
R2,R3,R5,R7 = 1k?
R4 = 4k?7
R6 = 220?
C1 = 1000µF 25V radial
C2,C4,C7,C9 = 100nF
C3,C5 = 22µF 16V radial
C6,C8 = 1nF
C10,C11 = 33pF
B1 = B80C1000 bridge rectifier in round case (80V piv, 1 A)
D1,D2,D3 = LED
D4,D5 = 1N4148
T1,T2 = BC547
IC1 = 4093
IC2 = AT90S2313-10PC (order code 020115-41)
IC3 = 7812
IC4 = 7805
IC5 = S201S02 or S201SE2
F1 = fuse, 1A(T) (time lag) with PCB mount holder
JP1,JP2 = 2-way jumper
K1,K2 = 2-way PCB terminal block, lead pitch 5mm
K3 = 3-way pinheader or solder pins
K4 = 2-way pinheader or solder pins
S1,S2 = pushbutton, 2 make contacts (see text)
TR1 = mains transformer, 12V 1.5VA (e.g, Hahn BV EI 302 2022)
X1 = 4.9152MHz quartz crystal
Disk, hex and source code, order code 020115-11 or free download
Loading comments...