Search Your Query

Custom Search

Monday, 23 May 2011

Infrared Toggle Switch for Home Appliances




Introduction


The infra-red (IR) toggle switch project described here is aimed to 
provide control mechanism for electrical appliances that do not 
have remote operation features. The goal is to construct a black 
box where you can plug-in your 120V AC appliance and control 
ON and OFF operations with any modern IR remote control devices.
Modern IR remote controls generate modulated pulse train of 38KHz frequency 
when any key on the remote is pressed. With the use of capacitive filtering we 
will convert the stream of pulses into one pulse regardless of the key entered. 
This way, we will be able to toggle a relay switch with any key pressed on the 
remote. This project has been tested with varieties of IR remote control devices 
like that for TV, DVD, digital camera, etc., and it worked well.

Circuit Diagram
The TSOP 1738 IR receiver module detects the 38KHz input pulses 
received from the IR remote control device. Under stand-by condition, 
the output pin of the IR module is at logic High, and when it detects 
the train of pulses, they appear at its output. The output from IR 
receiver is fed to a PNP transistor (BC557) with a series base resistor 
of 4.7K. At the collector of the NPN transistor, the train of pulses 
will be inverted. There is a 10uF capacitor and 100K resistor connected 
from the collector to ground. The function of capacitor is to convert the 
train of pulses into a single pulse, and the resistor is to provide the 
discharge path for the capacitor.
So lets see what happens when a key on the remote is pressed. 
During standby, the output of IR receiver module is High, so BC557 
is cut off. The capacitor is fully discharged, and the collector of BC557 
is at ground. When a key is pressed on the remote, the train of pulses 
arrived at the base of BC557 turns it ON and OFF very fast. When it is 
ON, the capacitor gets charged through the collector current of BC557, 
and when it is OFF, the capacitor starts to discharge  through 100K 
resistor. But the train of pulses is so fast (38000 pulses per second) 
that the capacitor doesn't get chance to discharge. So, the bottom 
line is, every time a key is pressed from the IR remote, a positive 
going clock pulse is generated at the collector of BC557 transistor. 


Next comes CD4017, a decade counter. It counts low-to-high going 
pulses up to 10 that are arrived at its CLK pin (14) and pulls the 
corresponding output (Q0-Q9) High. When it is just turned on, Q0 
goes High, and when it gets a first low-to-high pulse (when a key 
is pressed from the IR remote) at CLK i/p, Q0 goes Low and Q1 
goes High. Q1 output is connected to a LED through a current 
limiting resistor to indicate the ON/OFF status. The Q1 output 
is also used to drive a relay switch through a NPN transistor (BC547). 
I used 5V DC relay that requires about 70mA current from 5V source 
to turn ON. This current is provided by BC547. 
 
Complete circuit before putting inside the box



Packing inside a box for safety as it deals with 120V AC.


Now, lets see what happens when a key is pressed again. The counter 
advances by 1, Q1 goes Low (relay is OFF), and Q2 goes High. If we 
connect Q2 to Reset input of CD4017, the counter is going back to the 
initial condition (Q0 High, Q1 and all others Low), and is ready to get 
another key press signal to turn the relay ON. This way the switch is 
toggled every time a key is pressed from the remote.

Power Supply  
The power supply for the circuit is provided through a 5V regulator IC 
LM7805. A 12V step-down transformer with a bridge rectifier and a 
capacitor filter provides an unregulated DC input to LM7805. The 
regulator IC provides a constant 5V supply for the circuit. 

Be careful on the output side of the relay that connects to 120V AC line. A
  reversed biased diode parallel to the relay input is for back emf protection.

Switch in Operation

Below are some snapshots showing the IR toggle switch in operation

 Device OFF

Device ON

Download

USB Single Cell LiPoly Charger




Introduction


Lithium Polymer Batteries are a very common source of power today. 
Many electronics gadgets have one inside, and they have some 
reasonable features. I've bought great batteries, with different 
sizes and capacities for my electronics projects. So long I'm using 
this batteries, coming the problem: charge them.

Charger Version 1

So, we start to find the correct circuit for my DIY charger. After some 
Google research I found the Maxim MAX1811 IC. It's a single-cell 
Lithium battery charger that can be powered directly from a USB or 
from an external supply up to 6.5V. It's use a SO-8 Package, 
easy to solder and can be sampled at Maxim. Other chip features are:
You can select between 4.1V and 4.2V battery regulation point;
• You can select between 100mA and 500mA current drain from USB;
• There's a open drain pin (pin_8) for signaling end of charge condition 
(2.5V < VBATT < BATT Regulation Voltage);
• A internal thermal loop limits the MAX1811 die temperature to +135°C by reducing 
the charging current as necessary.
According to datasheet, MAX1811 is specifically made for USB devices. 
The minimum voltage to a common USB-powered device may be as low as 
4.35V when cable and connector drops are considered. The MAX1811 is optimized
 for operation at these low input voltage levels. But USB hubs may also provide as much 
as 5.5V!. At high input voltages (5.5V) and low cell voltages (2.7V), the MAX1811's 
thermal loop may limit the charge current until the cell voltage rises.
My design uses 500mA was charging current (pin 2 - SELI - pulled up), but MAX1811 
only taken this current if the device is a USB powered source. The other parts are two 
very common tantalum capacitors and a LED for charging indication. LED is ON on 
charging state, and OFF when it's end.





































Conclusion
Was a first incursion on LiPo chargers, this project end was success to me. 
The tests show that MAX1811 is a reliable choice and good alternative over 
other common choices, like MAX1555 IC.
The thermal loop gives some security to device, so you can connect it to 
your PC or notebook without fear.
The Eagle files can be downloaded from my blog at 
http://rusticengineering.wordpress.com




Download

PIC PWM Fan controller



Description


This project it´s based on a PIC18F25K20, with the purpose of control 
a FAN with PWM (Pulse with Modulation). It offers a variable speed 
control, low acoustic noise, reliability, long lifetime, low power 
consumption, protection features. The MCU get the temperature from
 the sensor (D18B20), and after will do a conversion Celsius degrees 
and then it´s generated a PWM on PORTC.2 with 6 different levels.
PWM
TEMPERATURE
15%
<= 49°
30%
50°
40%
51°
50%
52°
75%
53°
100%
>54°

After the signal goes to Q1 (BC338) in order to control the duty cycle 
in the fan. I had to use two transistors to have an Ic on Q2 to be 
enough to activate the fan. Because the MCU only generate a maxim 
of 3.6V on which output, and 15% of 3.6V is 0.5V to polarize Q1 we 
need 0.7V.
How to calculate the Q1 and Q2:

You will be able to control the FAN between 5V and +/-12V.The BC338 
have a current load of 800mA that is value of a fan can have, you can 
use two or more fans as long the current load isn´t more than 800mA. 
The output of MCU connect to the Q1 and Q2 it works like a switch, 
the D3 it´s for protection from the magnetic field in the inductors 
from the FAN, without the D3 when you turn off the system the 
current will be discharge to the Q2 and could damage it. 
Connectors
J1Expansions PORTS
Source12V
SensorD18B20
FANConnect the FAN
ICSPTo program with PICKIT2




Photo of the prototype on perfboard


Schematic

PCB




PCB bottom layer - Download PDF


PCB bottom layer - Download PDF

Firmware

Super Bright Led Flasher




This is a novel flasher circuit using a single driver transistor that takes 
its flash-rate from a flashing LED. The flasher in the photo is 3mm. 
An ordinary LED will not work. The flash rate cannot be altered by 
the brightness of the high-bright white LED can be adjusted by 
altering the 1k resistor across the 100u electrolytic to 4k7 or 10k. 
The 1k resistor discharges the 100u so that when the transistor turns 
on, the charging current into the 100u illuminates the white LED. 
If a 10k discharge resistor is used, the 100u is not fully discharged 
and the LED does not flash as bright. All the parts in the photo are 
in the same places as in the circuit diagram to make it easy to see 
how the parts are connected.




Download

12V Relay on 6V power supply




This circuit allows a 12v relay to operate on a 6v or 9v supply. 
Most 12v relays need about 12v to "pull-in" but will "hold" on 
about 6v. The 220u charges via the 2k2 and bottom diode. 
When an input above 1.5v is applied to the input of the circuit, 
both transistors are turned ON and the 5v across the electrolytic 
causes the negative end of the electro to go below the 0v rail 
by about 4.5v and this puts about 10v across the relay.

Download

Simple Servo Tester



This is a simple servo tester which will comprehensively test the capabilities of almost any modern servo. It has two pushbuttons, CENTRE and SWEEP and a potentiometer which works as follows:

- CENTRE Does exactly that, centers the servo, afterwards the potentiometer determines position.
- SWEEP Sweeps the servo back and forth at a rate determined by the potentiometer setting.

The PIC uses its internal timer to set up a constant frame duration of 20ms and the on/off ratio is set by the user.

Have Fun

Ed
PCB board (download it below)
suggested panel decal

Parts List
R1 = 1K
R2 = 10K
R3 = 82R
R4 = 10K
R5 = 5K potentiometer
C1 = 27pF
C2 = 27pF
C3 = 100nF

D1 = 4,7V zener diode
Q1 = 10MHz crytal
IC1 = PIC12F675

Dark Sensitive Switch




Specifications
 
Dark Sensitive Switch is a simple project which operates a relay when the light 
falling on the LDR goes below a set point.
 
  • Input - 12 V @ 55 mA
  • Relay output - NC-C-NO
  • Onboard preset to set the level
  • Power-On LED indicator
  • Relay On LED indicator
  • Power Battery Terminal (PBT) for easy relay output connection
  • Four mounting holes of 3.2 mm each
  • PCB dimensions 44 mm x 49 mm


Schematic
Parts List

PCB

Download

Related Posts Plugin for WordPress, Blogger...