Monday, September 30, 2013
IR On Off Switch Using Microcontroller
How it works:
Choose one key on your remote controller (from tv, video or similar), memorized it following a simple procedure and with that key you will able to turn ON or OFF any electrical device you wish. So, with every short press of that key, you change the state of relay in receiver (Ir-switch). Memorizing remote controller key is simple and you can do it following this procedure: press key on Ir-switch and led-diode will turn ON. Now you can release key on Ir-switch, and press key on your remote controller. If you do that, led-diode will blink, and your memorizing process is finished.
Instructions:
To make this device will be no problem even for beginners in electronic, because it is a simple device and uses only a few components. On schematic you can see that you need microcontroller PIC12F629, ir-receiver TSOP1738 (it can be any type of receiver TSOP or SFH) and for relay you can use any type of relay with 12V coil.
click on the images to enlarge |
Click here to download source code for PIC12F629-675 . To extract the archive use this password extremecircuits.net
Tuesday, April 2, 2013
Push Off Push On
The ubiquitous 555 has yet another airing with this bistable using a simple push-button to provide a push-on, push-off action. It uses the same principle of the stored charge in a capacitor taking a Schmitt trigger through its dead-band. Whereas the Schmitt trigger in that reference was made from discrete components, the in-built dead-band arising from the two comparators, resistor chain and bistable within the 555 is used instead. The circuit demonstrates a stand-by switch, the state of which is indicated by illumination of either an orange or red LED, exclusively driven by the bipolar output of pin 3. Open-collector output (pin 7) pulls-in a 100-mA relay to drive the application circuit; obviously if an ON status LED is provided elsewhere, then the relay, two LEDs and two resistors can be omitted, with pin 3 being used to drive the application circuit, either directly or via a transistor.
Circuit diagram:
Push Off Push On Circuit Diagram
The original NE555 (non-CMOS) can source or sink 200 mA from / into pin 3. Component values are not critical; the ‘dead-band’ at input pins 2 and 6 is between 1/3 and 2/3 of the supply voltage. When the pushbutton is open-circuit, the input is clamped within this zone (at half the supply voltage) by two equal-value resistors, Rb. To prevent the circuit powering-up into an unknown condition, a power-up reset may be applied with a resistor from supply to pin 4 and capacitor to ground. A capacitor and high-value resistor (Rt) provide a memory of the output state just prior to pushing the button and creates a dead time, during which button contact bounce will not cause any further change. When the button is pressed, the stored charge is sufficient to flip the output to the opposite state before the charge is dissipated and clamped back into the neutral zone by resistors Rb. A minimum of 0.1 µF will work, but it is safer to allow for button contact-bounce or hand tremble; 10 µF with 220 k gives approximately a 2-second response.
Author: Trevor Skeggs - Copyright: Elektor July-August 2004
Source : www.extremecircuits.net