2006 habe ich ausserdem drei Bildschirmzeitbegrenzer gebaut. Dieser Bildschirmzeitbegrenzer hier, mit Guthabensteuerung steckt in meinem Fernseher und verhindert, dass ich mehr als durchschnittlich 4 Stunden im Laufe von 24 Stunden fernsehen kann.Die Glotze wird dann ausgeschaltet. Dazu kommt es aber meistens garnicht, weil ich nicht so viel fernsehe.Die kleine von mir entwickelte CMOS-Schaltung ist zwar nicht so ordentlich aufgebaut, wie wir das bei der Ausbildung gelernt haben, dafür verbraucht sie aber auch viel, viel weniger Platz. Eine SMD-Version von dem Ding würde in eine Streichholzschachtel passen. Was so glänzt, ist Isolierlack, der die Betriebssicherheit erhöht. Sinnvollerweise ätzt man für ein Einzelstück natürlich auch keine Platine, sondern nimmt Lochrasterplatten. Es gibt auch eine Version, die zusätzlich noch eine Uhrzeitsteuerung hat. Teile der Schaltung müßen natürlich jedesmal neu entworfen werden, um sie an den Schaltplan des jeweiligen Fernsehers oder Monitors anzupassen, sowie die erlaubte Zeit einzustellen. (Nachtr2007: Das Gerät war mir aber zu großzügig, da man mit Ansparen wenn man am Vortag weniger geglotzt hat, mehr als 4 Stunden gucken kann, schätze 6, weiß jetzt nicht so genau, und wenn man dann noch jedesmal bei der Werbung ausschaltet, dann werden aus den 6 Stunden 8. Hab mir deshalb auch die neue Version eingebaut.) Der alte Schaltplan mit Beschreibung

aktuelles Design des Timers:

Screentimer Nummer 4 Feb 2007 fertiggeworden: Ziemlich ausgereiftes Design. Kostet 4000 Euro, falls jemand es kaufen möchte. War ja auch sechs Wochen qualifizierte Schufterei. (Also die Rechte, ein einzelnes Ding baue ich jemandem für 60 Euro ein, falls ich Zeit habe.)

Features of the TV-Timer with Microcontroller:

Child-protection / self-control / joke.

Compared to the TV-Timer in discrete CMOS-Logic the Microcontroller-device is superior from every point of view:

Instead of 400uA it consumes only 10uA. This means, it will survive at least half a year with the Battery, if the screen is not in use, instead of ten days. Probably a whole year.

It has a better regulation of the battery- loading, so that the battery will live much longer.

The entire device is four times smaller,I could get it in a Matchbox, and it's only a quarter of the work , to build one. ---Well, the prototype has been the same work, because I needed weeks for the programming and debugging.--

But every further device is a quarter of the work. There are much fewer parts.

Like the other device, it first decides with respect of the clocktime, whether to deactivate the screen, or not. But it respects also the Day of the week, so that it locks the screen later at the weekend, for exampe. It respects holidays, which can be programmed for years into the future. It respects birthdays an can even deactivate itself one day, when you probably get adult.

Secondly like the other device it decides with respect of the amout of time, for which the screen has been on in the last time. But it counts the time every two seconds not every ten minutes. And with respect to the Day of week, the holidays and your age, it can allow you more or less hours of screen-time at this day.

Altering the device for the special customer is much easier. Just fill in the prepared places in the source-file.

And different to the old device it gives the possibility of interactive

control. You can set the time at three different hours a day, if after a half a year, you want to exactly set the time of its internal crystal-clock. You can control the clock and the date, so that you will notice if somebody has set a fake time. (Just if you didn't keep the access-code secret, which of course you should, if using the device for children.) And you can be quiet, knowing that the setting is still right.

It must be said that microcontrollers really have a big advantage over discrete logics.



And all this, without that one can see at all from outside, that the screen has been manipulated. If you want, you just have to tell, that the screen gets hot after some hours and seems to need a break until next use.--I wouldn't do this, of course, with my children.-- But it may be a good joke for the beginning.


Child-protection-hardware is, in most respects, much better, than the software, you can buy. If just your screen is put of, this doesn't inhibit your computer from downloading or file-sharing. But you can't waste your precious time without a screen.

If you use limiting software, your boy or girl cannot use the system recovery of Windows anymore. What a mess! With my hardware it is no problem.

Most protection software can be hacked. You find the hacks everywhere in Internet. Or it even can be eliminated by a simple spyware-remover. Hardware can't be hacked.

If you use software, you usually have the possibility, to allow extra hours of computer-time. So you always are quarreling with your boy and abase him. Its better if you can't remove the lock yourself, at least not that fast and easily. So you can even inhibit yourself from watching to much of this bad TV.

And of course--protection software works only with computers. This device works as well in a TV and similar devices.

I will sell my design for 4000 Euros, if anybody is interested in commercial use.

The way it works: Most important aspect of the design is, that it needs a continuous clock crystal oszillator (I use the LP of the Pic) because it is a real-time appliccation, but on the other hand it should consume the least possible current, when in standby, in order to save the battery charge as long as possible. So I got to use the sleep-mode whenever it is possible. Only the Timer1 is running getting it's clock from the LP-oszillator. It makes an Interrupt every two seconds. Then the Interrupt-Routine is run: The clock is set on, the GP1-port is examined, whether there is a supply-power in the screen which houses the device. A Flag is set or cleared and dependent on the state of the screen the credit register is counted up or down with a special number which is set once a day. Then the device decides whether to give the screen free, or to lock it: The credit, the clock-time, and the safety bit are checked.If the screen is locked the state of the output GP0 is altered.( So it toggles on and of every two seconds. That's more efficient, if you shut down the brightness or so, because it overrides the failsafe of the screen.But this feature is easy to disable if not wanted) If the screen is put of, the GP3-port is checked, wether the hidden switch has been activated.Next is that once a minute the loading routine is visited. If it's no full minute, the controller goes to sleep again. In the loading routine first the battery-voltage is measured with the AD-converter of the Pic. For this the VDD-power of the PIC is used as reference. It comes from the 5V- standby-voltage of the screen over a Schottky-diode (TV need such a standby Voltage to feed the remote-control-receiver. At least if it's on you will find some 5V in a monitor too.) The battery-voltage shurely is lower than 4.6 Volts. So your AD-conversion will bring some result, but shurely not the biggest possible number in the result register. Battery-voltage must always be lower then VDD. On the other hand: If there is no standby voltage of 5V then VDD comes from the battery over a Schottky and must be lower, than battery tension. In this case you always should get one of the biggest possible results, even if you loose someting in the resistor between battery and A/Dconversion Input. So with the AD not only the battery tension is measured in order to load it with more or less current,but it is also measured, whether there is a supply voltage at all, from which you can load. If there is none, a flag is operated and the device goes to sleep until next Interrupt. That's because the battery must be saved, if there is no power-supply.


Once an hour it is checked whether the screen must be put off in regard of the clock-time.


Once a day at midnight the calender is checked, which kind of day it is. A working- day or which weekend day, a holiday, a birthday, a Lotto-Saturday or an adult day. Dependent on the kind of day the speed of the credit timer is set to the value, you choose before programming the PIC and building the device. If I build the device for you, I will ask you how many hours you want to watch TV on Saturdays and so on. Dependent on the kind of day also the limiting clocktime is set to the choosen value. So you can't play at your computer at late night, whether you got credit, or not. But on Fridays e.g. you may stay up longer if you can sleep on Saturday morning.


If you give a special signal (ask me) on the hidden switch (for which you can use a magnetic switch, an infrared photodiode, or just a switch you operate with a shashlic-stick through a hole) you will be welcomed by a sound from a small hidden speaker. You hear different sounds and choose your way through the setting and monitoring menu by activating the switch during one sound or the other. The menu map is on the schematic-sheet.

In this menu you can reset the clock ( crystal clocks must be set from time to time (one or two times a year)) and you can move the date. But only one step at a time.It would be to easy to cheat otherways. And you can control whether time and date are set correctly. Time and date can be displayed in binary mode with high and low tones.


The GP1-port has a double function: For some microseconds it checks whether the screen is supplied with 15Volts, what means it is in use. When you are loading the battery it is the output for the PWM-loading signal. If there is not even a 5V supply it must be held low in order to save current which would be lost throgh R8.In the other case GP1 must not overload the battery and be held high.

Though there are a lot of commands for the Pic to deal with, it can sleep most of the time because the commands are served with the fast internal clock while the Pic is awake.

Well, that's the outline of the program, but it's much more tricky of course.You can read more in the comments of the source file.


Ich muß darauf hinweisen, dass sich beim Zeichnen kleine Fehler einschleichen können. Und da ich normalerweise keinen Gegencheck der Reinzeichnungen mehr mache, indem ich nochmal ein Gerät danach baue, können sich kleine Fehler einschleichen, die aber normalerweise von der Art sind, dass ein Sachkundiger sie erkennt. Die Zeichnung von dem TV-Timer mit Microcontroller hat ein halbes Jahr online gestanden und wenn ich nicht noch einen gebraucht hätte, hätte ich überhaupt nicht gemerkt, dass der Inverter-Mosfet Q4 (BS-250) verkehrt herum eingezeichnet war. (Also S und D vertauscht.) (ist jetzt berichtigt)Sowas würde ich natürlich nochmal checken, wenn einer das kaufen will. Auch wäre ich selbstverständlich bereit den Labels im Source-Code seriöse Namen zu geben, oder ein sauberes Diagramm vom Programmablauf mitzuliefern. Das wäre aber zuviel Arbeit, um sie für nichts zu machen, solange nicht mal jemand danach fragt. Es ist eben so: Firmen die soetwas bauen, haben ihre eigenen Ingenieure. Ausserdem kann ein normaler Fernseh-service sowas heute doch oft nicht mal mehr einbauen...


Schaltbild Timer mit Microcontroller (Ich würde noch eine ICSP-Schnittstelle nachtragen, das macht keine Arbeit und ist sehr nützlich. (Trennwiderstände für GP0/1/3 kompromißmäßig wählen, niederohmigen Brenner im Schneckengang verwenden. (Idee noch nicht getestet)) Es sind bei Reichelt inzwischen auch SMD-FET's erhältlich, die BS170 und 250 ersetzen können. Sonst ist die Hardware noch aktuell.)

Source-Codalt

Die Probleme sind eher praktischer Natur. In einem Computer Screen wurde zum Beispiel als Bildschirmsperre bei Zeitüberschreitung die Helligkeit auf ganz dunkel gedreht. Leider war der dann aber immer noch ein bischen hell, so, dass man gerade noch weiterspielen konnte. Der Betreffende war darüber bereits so sauer, dass keine weiteren Eingriffe in die Hardware gewagt wurden.

Folgende Version der alten Software ist bei mir ungefähr 5 Jahre lang gelaufen, bis ich anlässlich der Erlangung eines modernen Fernsehers auch den Zeitbegrenzer gemäß meinen Erfahrungen verbessert habe:
Hatte mir dafür die Software für meinen eigenen Fernseher zusammengestrichen: Ausgangs-Toggeln deaktiviert, den ganzen Kram mit Lotto und Ferientagen usw. ausser Funktion gesetzt, die Steuerung mit der Anti-Rückkopplungsänderung versehen,weil ich in meinem Fernseher die Power selbst nach Standby schalte. Die überflüssigen Software-Relikte habe ich einfach im Code stehen lassen, die stören nicht. Den Freitags-Slot hab ich für Mittwoch genutzt, da dann Stargate kommt. Wochentags kann man damit 3 Stunden durchschnittlich fernsehen, maximal 5h 9min, wenn am Vortag weniger. Samstag und Sonntag ist nur durch die Uhrzeit begrenzt, weil da Nick kommt und beim Aufpassen auf Nick kann man einfach nichts anderes nebenbei machen, als fernsehen. Die Uhrzeitbegrenzung steht auf 23Uhr, außer samstag und Mittwoch 24 Uhr Das sah dann so aus:SourceCode No14

2013:

Schaltbild Timer mit PIC12F 675 oder 683 ueberarbeitet 2013Die Schaltbild-Variante mit Optokoppler habe ich noch nie ausprobiert. Ausser eventuellen Zeichenfehlern ist aber eigentlich nicht zu erwarten, dass etwas daran versagt. Man kann die Optokoppler ja auch weglassen. Könnte höchstens sein, dass die etwas mehr Steuerstrom brauchen. Und sie gehen nur, wenn 5V vom Monitor kommen, denn aus dem kleinen Puffer-Akku kann man sie nicht lange genug versorgen. Der muß ja Monate durchhalten. Es gibt eben keine leistungslosen “Feldeffekt-Koppler”. Habe für das Gerät immer noch kein ICSP ausprobiert.Auch kein SMD.

source-code - überarbeitete Version von 2013 –komfortabler-- mit vielen neuen Features. Eine Hex-File mitzuliefern wäre eher sinnlos, da ein Editiern für den persönlichen Geschmack vorgesehen ist. Also mit MPLAB, das dann die persönliche Hex File erzeugt.