User manual

Was ist ein LDR?
LDR steht als Abkürzung für Light Dependent Resistor. In der Übersetzung bedeutet das lichtempfindlicher Widerstand. Ein solcher lichtempfindlicher Widerstand dient der Schaltung als
Sensor für das Umgebungslicht. Je stärker dieser Widerstand beleuchtet wird, desto geringer ist sein elektrischer Widerstand. Genau diese Widerstandsänderung wertet der Micropro-
zessor aus und schaltet das Relais.
Was ist eine Hysterese?
Wird der LDR abgedunkelt, so schaltet bei einer bestimmten Schwelle das Relais die Glühbirne ein. Wird die Umgebungshelligkeit wieder erhöht so schaltet bei einer anderen Umge-
bungshelligkeit das Relais die Glühbirne aus. Diese Differenz nennt man Hysterese.
Umgesetzt wird das durch den Mikroprozessor der anhand des Widerstandswertes des LDR erkennt, ob er dann nun das Relais ein- oder ausschalten soll. Die jeweiligen Werte für das
Einschalten und das Ausschalten sind unterschiedlich. So kommt die Hysterese zustande. Natürlich kann man einen Dämmerungsschalter auch ohne diese Schaltschwelle bauen. Dann
aber flackert die Lampe bei Umgebungshelligkeiten, die nahe der Schaltschwelle liegen. Ohne diese Hysterese reagiert die Schaltung nahe der Schaltschwelle
schon auf geringste Änderungen des Lichtes.
Was sind die herausragenden Eigenschaften dieses Microprozessors?
Jeder Microprozessor muss irgendwie mit einem Takt versorgt werden um das Programm abzuarbeiten. Viele Computer nutzen dazu ein externes Schwingquarz. Dieser kleine Micro-
computer hat jedoch schon einen internen Taktgenerator eingebaut. In nur einem Computerchip ist alles integriert was man zur Lösung von einfachen Steuerungsaufgaben braucht. Man
braucht nur 33 Befehle zu kennen und schon kann man den Microprozessor programmieren.
Wie arbeitet das gespeicherte Programm (Software) genau?
Zuerst fragt der Computer den Eingang SW ab. Hier wird geprüft, ob der erste oder der zweite Programmteil ausgeführt werden soll. Jetzt wird der Wert des lichtempfindlichen Widers-
tandes abgefragt. Ist dieser Wert größer als ein vorgegebener Vergleichswert, dann wird das Relais eingeschaltet. Ist aber dieser Wert kleiner als ein vorgegebener Vergleichswert, dann
wird das Relais nicht betätigt. Die beiden Werte für Ein- und Ausschalten sind unterschiedlich. So wurde die Hysterese programmiert. Sind diese Werte gleich hat man keine Hysterese.
Wo findet man weiterführende Informationen?
Eine sehr gute Anlaufstelle um mehr über den hier eingesetzten Microprozessor zu finden ist der Hersteller des Chips. Auf der Internetseite: www.microchip.com wird man schnell
fündig, wenn man nach dem hier eingesetzten Prozessor sucht. In das Suchfeld: Search Data Sheets gibt man PIC10F200 ein. Das Datenblatt des Microprozessors umfasst circa 100
Seiten. Hier ist ausführlich der kleine Microprozessor beschrieben.
A twilight switch is designed to install animated lighting and automatic electronic switching. The sensitivity of the light sensor can be individually adjusted.
The single components of the switch:
• Microprocessor board / universal controler
• Microprocessor with “Twilight Switch” software – relay
• Potentiometer (also referred as poti) to adjust the sensitivity
• Light dependent resistor (LDR)
• Capacitor
E-Kit “Twilight Switch”
How to connect the twilight switch?
1. During unpacking be careful, that the small blue capacitor will not get lost.
First, the both black cables for the electrical power supply will be soldered on the contacts BLACK / RED on the left side of the board (see also picture 3).
2. Next, the relay will be soldered “overhead” as you can see in picture 2.
The relay has to be soldered as illustrated. NOT IN A DIFFERENT WAY!
• You have to place the plate as shown in the picture.
• Thus, the five golden connections face upwards
• You have to insert the relay into the contacts, so that the letters are easy to read as shown in picture 2.
3. Now, continue with the installation of the capacitor and the potentiometer. The capacitor will be soldered between the contacts -M- and L0 (picture 3). The potentiometer with the
center terminal has to be soldered on the contact + (picture 3).
The potentiometer (poti) has to be soldered with the connections to the top, as you can see in picture 3. The connection is marked with +.
4. Installation of the light dependent resistor (LDR)
The connecting wires of the light dependent resistor have to be carefully bended apart.
Hint: Do not bend directly at the component base, but a few millimeters under there (picture 4).
One connecting wire of the light dependent resistor will be soldered on the contact L0.
The other one will be soldered on the upper wire of the potentiometer.
5. Inserting of the microprocessor
Make sure that the microprocessor is properly installed into the switch board. It is easier just to slightly bend the legs of the microprocessor together. Of course, the black foam
material has to be removed before inserting the processor.
On one side, the microprocessor has notch and a point. The following picture (picture 4) shows it very clearly. So set the microprocessor with the notch to the left. All eight legs of the
microprocessor sit well in the frame.
Note: If the microprocessor is set in the wrong way, it will cause the destruction of the microprocessor! Thus, install the microprocessor exactly as you can see in picture 4. Pay
attention to the point and the notch.