Infrared Activated Switch

hamoodyjamal

Jun 15, 2005
74
Joined
Jun 15, 2005
Messages
74
Hi all,

I’m in need of desperate help. I’ve searched ages for a simple circuit but failed to get one. What I have in mind is this. 

An Infrared transmitter will emit a signal which will be picked up by a receiver and when the path of the infrared beam is broken, the receiver will trigger a relay. The relay will be connected to an external circuit (i.e. lights, alarm etc...).

For 5+ weeks, I haven’t succeeded.

Can you please tell me where I can find a circuit of this type?

A single channel remote control will also do the job.

I don’t know if this helps, but these are some components I have (or that I can get):

- NPN photo-transistor,
- 56 KHz Infrared receiver module (Part number TSOP1756)
- 555 Timer
- LM308N OP-Amp IC
- NE567N Tone decoder
- Any resistor, capacitor, transistor (of course)
- Infrared LED's
- etc...

I of course can also get other components.

One more thing,

I just thought of an idea. If I use a 555 timer to oscillate an Infrared LED at 56 KHz, can I use the infrared receiver module (TSOP1756) to KEEP a relay switched on when the beam hits the receiver?

I thank you all very much for your help (that’s if I get any, hehe ;D).

Later!

 

ante1

Jan 24, 2004
4,138
Joined
Jan 24, 2004
Messages
4,138
Hi, hamoodyjamal,


I think you are looking for a IR Beam Break Detector or a IR Barrier, try one of these links and then tell me if I’m right:

http://www.electronic-circuits-diagrams.com/alarmsimages/alarmsckt19.shtml

http://www.maplin.co.uk/Module.aspx?ModuleNo=27513&1&source=14&doy=search

http://www.hobbytron.com/product536.html

http://www.elexp.com/kit_k120.htm

http://rpelectronics.com/Default.asp?Main=/English/OnlineCat.asp?Menu=/English/Content/Categories/CatM_95.asp%26Detail=/English/Content/Items/B216.asp


;D

 

hamoodyjamal

Jun 15, 2005
74
Joined
Jun 15, 2005
Messages
74
Hi,

Thank you sooo much.

I prefer building the circuit my self. So, the first link was the best. If you know any more similar links to the first one, it would be greeeeeat if you could share it.

Again, thank you soo much.

Bye! :)

 

ante1

Jan 24, 2004
4,138
Joined
Jan 24, 2004
Messages
4,138
A few more to build yourself:

http://users.skynet.be/peter.smolders/lego_proximity_sensor.htm
http://www.hobbyengineering.com/appProximity.html

 

Shahriar

Mar 18, 2004
451
Joined
Mar 18, 2004
Messages
451
Dear hamoodyjamal

The easiest way and chipest way for what you want to do is Using IC PT2262 as transmitter(Encoder) and PT2272 as receiver(Decoder).
The PT2262 creat a special 11bit Pulse dedicated On how the Input pins are connected to GND or VCC. U can send the Pulse with a infrared  module. IF PT2272 gives the correct Pulse it enables one of It outputs otherwise, disable the Output pin. These ICs are designed for these purposes. There are many similar ICs call Encoder/Decoder. They are even multichannels and you can enable 2 or 4 relays. the Schematic is in the DATASHEET. Try them.


HTH - Shahriar

 

hamoodyjamal

Jun 15, 2005
74
Joined
Jun 15, 2005
Messages
74
Hi,

Thanks Shahriar, but the problem is, I can’t find these IC's. I even looked in Maplin and some other shops but no luck.

As you may have read, I have an LM567 Tone Decoder. I’m not sure if this will work, but would it be possible to use an NE555 timer to oscillate i.e. 10KHz and then use an LM567 (with some resistors and capacitors to set the frequency, I think this is how it works) to activate a relay when it receives only 10KHz?

I’m just assuming how the LM567 works. Am I right? The 555 timer works using just 2 timing resistors and a timing capacitor, so I presume the 567 decoder would work similarly using resistors and a capacitor to set it to receive a certain frequency.

Thanks.  ;D

 

Shahriar

Mar 18, 2004
451
Joined
Mar 18, 2004
Messages
451
Dear hamoodyjamal

It is Possible to Use LM567 and 555 together and it will work. I attached the schematic you need. (See Page 5)
But I beleive using Encoder and Decoder ICs is better. It is posible that You could't Find PT2262 in your area but I am sure there is At leats one of These ICs in your area. Ask a professional seller for such an Encoder/Decoder ICs and tell him what they are and what you are looking for. maybe he could help you but If You couldn't find any IC, then Use LM567 and 555.

Some of these Encoder/Decoder ICs are:

HT12E / HT12D
SC5262

You can find more by a search in      http://www.datasheetarchive.com
HTH - Shahriar

circuit17.pdf

 

Attachments

  • circuit17.pdf
    468.3 KB · Views: 28

hamoodyjamal

Jun 15, 2005
74
Joined
Jun 15, 2005
Messages
74
Dear Shahriar,

I took a look at the circuit you pointed me to, but that’s not what I'm looking for. The circuit has no optical input (i.e. phototransistor), and has a reset switch that I don’t know why it needs it.

I'll simplify things and ask a simpler question.

How do you use the LM567 IC to receive a certain frequency via a phototransistor to operate an LED, for instance?

Also, this is a side question. Would it work if you use a 555 timer to oscillate 50Hz (same frequency as the mains) then use an amplifier (with the help of a transformer) to operate low wattage 220v appliances? And would you need a centre-tap transformer?

Thanks ;D

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi,
You have a very good IR receiver that should be used with a 555 transmitter. If you use only 50Hz for the modulating frequency then a receiver made with an LM567 would pick-up mains hum.
Our IR Remote Control project has a CD4013 flip-flop used as a latch that maybe you could use: http://www.electronics-lab.com/projects/models/009/index.html

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
hamoodyjamal said:
Also, this is a side question. Would it work if you use a 555 timer to oscillate 50Hz (same frequency as the mains) then use an amplifier (with the help of a transformer) to operate low wattage 220v appliances? And would you need a centre-tap transformer?
Sorry, I missed this part.
The circuit for making mains AC power from a battery is called an inverter. An ordinary audio amp isn't used because it operates linear, and therefore would get very hot since the current into the step-up transformer is very high. Most inverter circuits have a square-wave output which is fine for most appliances. Since the circuit is switching the battery power on and off into the step-up transformer, the output transistors don't get too hot.
The circuit uses a center-tapped transformer to make the push-pull output transistors circuit simple.
We have a 500W inverter project: http://www.electronics-lab.com/projects/power/033/index.html
 

Shahriar

Mar 18, 2004
451
Joined
Mar 18, 2004
Messages
451
Dear hamoodyjamal

I didn't say that this schematic is exactly what You are looking for, I sent this schematic which is designed for a RF Application but the Amplifier and LM567 section is what You are looking for, Just Connect the input to Your IR Receiver and when the expected frequency Appeared at the input the LED turns ON.
I do not Know what that reset button does, But I don't think it is very important.
I attached the LM567 Datasheet, You can find a very nice App in Page 5. Also See that AC test circuit on page 6.

HTH - Shahriar

LM567.pdf

 

Attachments

  • LM567.pdf
    344.2 KB · Views: 32

Shahriar

Mar 18, 2004
451
Joined
Mar 18, 2004
Messages
451
About your side Question Audioguru Gave enough explanation.
What do you need that 50Hz  voltage for?

Yours, Shahriar

 

hamoodyjamal

Jun 15, 2005
74
Joined
Jun 15, 2005
Messages
74
Hi guys,

audioguru, I’m afraid the circuit you pointed me to is somewhat complicated and I don’t need 500W. Let me rephrase my question neglecting heating and power needed. If I were to oscillate 50 Hz using a 555 timer, then connect it the BE of a high power transistor to the output of the 555 timer, and the transistor's CE would be connected in series with a battery and a step up transformer (voltage of battery and output of transformer will be the same). Would I be able to power i.e. a 220v 5 watt light? I just want to know if the idea will work.

Secondly, I managed to solve my problem. Weird no one though of this. I just got a 56 KHz Ir receiver module, and connected it correctly, to minimal components, (just a battery and a light) and when I switched on the oscillator and pointed the IR LED at the receiver, the light on the receiver lighted up. Wicked. However, can you please take a look at a block diagram I drew? Info is on the picture.

I want to add something; the beam will be across the door, so when someone passes by...you'll understand when you see the picture.

Thanks.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi,
Why not just use a transistor as an inverter to drive the relay?

Why not use only a transistor to replace the relay?

You can capacitor-couple the signal to the monostable so it times-out if the beam remains blocked.

A single power transistor can be fed from a 555 through a current-limiting resistor, and used to drive a transformer to provide a square-wave at 220V/50Hz/5W. A larger than calculated transformer might be necessary because its core might saturate from the DC in its primary winding. The transistor will need a protection diode wired in reverse across the transformer's primary to arrest inductive flyback voltage spikes when the transistor turns-off.

 

hamoodyjamal

Jun 15, 2005
74
Joined
Jun 15, 2005
Messages
74
WOHO, hold up genius. I found a solution for my problem and I’m building it. It’s much simpler. Take a look.

Explanation.

The IR LED will be positioned across the door along with the IR Module on the same axis. The output of the receiver will always be high because it is receiving IR light at 56 KHz; this is why I added a transistor as an inverter to operate the relay. Thanks audioguru for the tip. I think I will also substitute the relay with a transistor. When the beam is broken, i.e. someone goes through the door, the receiver will output low, and the relay will be triggered and will trigger the monostable circuit which in turn will sound the alarm. I will actually add a relay instead of the alarm to switch on some lights. I just used the alarm to simplify explanation.

Weird, I couldn’t find such a circuit on the web. I might add this to some electronics site. Wicked.

What do you guys think?  ;D

Regarding the DC/AC inverter circuit, I think it should work properly. However, it was quite hard to set the 555 timer to 50Hz; it was not very stable and kept on increasing or decreasing by 1Hz every now and then. I don’t think this will be a problem for appliances that use rectifiers (i.e. Chargers). What about ones that don’t use rectifiers and work fully on AC current?

PS: audioguru, can you please explain "You can capacitor-couple the signal to the monostable so it times-out if the beam remains blocked."

Bye!

View attachment 37240

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Hamoodyjamal Genius! ;D
Don't use a -12V supply with the IR receiver, it will blow up! :eek:
Your circuit will work fine without the transistor, relay and -12V supply:
1) Use a well-filtered +12V supply for the 555 because it causes a huge current spike in the supply when its output switches high and low.
2) Use a 78L05 regulator to power the IR receiver and isolate it from the current spike from the 555. Connect a 47uF capacitor on its +5V output.
3) Connect a 10k resistor to the trigger pin 2 of the 555 with its other end at +5V.
4) Capacitor-couple the low-going "IR beam is blocked" signal from the IR receiver with a 0.1uF capacitor to the trigger pin 2 of the 555.
5) Connect all the grounds together.
The capacitor-coupling allows the 555 to time-out when the IR beam is continuously blocked. ;D

 

hamoodyjamal

Jun 15, 2005
74
Joined
Jun 15, 2005
Messages
74
Hey audioguru,

Thanks a lot for the help.

Sadly, I didn't understand all what you said. Sounds too complicated.

Regarding the -12, I meant the negative side of the +12, you can call it ground, or 0.

Also, I have the power supply figured out for each circuit. That’s not a problem. I will be using the 78L05 regulator for the IR module, and 555 timers.

Can you please explain in a more understandable way and a reason for each comment? Sorry  :-[  for some reason I'm having trouble understanding you. Again, sorry.

Also, I still don’t understand the capacitor-coupling regarding the IR beam continuously blocked. What is meant by "time-out?"

Bye!  ;D

 
Top