Adjustable sensitivity IR Light gate

In summary, the conversation discusses a uni project involving a timing system for solar powered cars. The main challenge is getting the right sensitivity for the IR receiver, which is affected by ambient light and the frequency range of the receiver. To address this, the use of a hysteresis loop with a comparator is proposed. However, using a potentiometer in place of one of the resistors may affect the hysteresis loop. Using IR windows and modulating the IR signal at a high frequency are suggested solutions, along with using an IR remote control IC.
  • #1
xeozim
2
0
Hi guys, this is to make something for a uni project I'm doing, not asking for the answers to a homework-type problem so I wasn't sure if it should go in the homework section, but if you think it should let me know and I will move it.

So the project background is a timing system for solar powered cars, the bulk of my work for the system will be the software behind it, but I need to get the hardware working first. I've got an IR receiver and emitter (LDR and LED) pair, and want to build a light gate out of them for use in the timing system.

The circuit receive power from the +3V pin on the micro-controller I'm using, and send input back to a different pin, through a voltage comparator. The idea is that when the cars cross the line, the voltage across the IR receiver spikes and the comparator allows a signal through to the controller.

The trouble I have been having is getting the right sensitivity so that the sensor can detect the car. Because the frequency range on the receiver isn't very tight, the bright halogen lamps used to power the solar powered cars for the race mean that the IR emitter from 2 ft away is not making a big % difference to the amount of light falling on the receiver. This problem which I hope to solve later, combined with the fact that pretty much every time the timing system is used there is a different level of ambient light regardless of the halogens, makes using a specific resistance to set the comparator control voltage very difficult.

To make it more difficult for myself (and your wonderful selves), I'd like to use a hysteresis loop with the comparator, to make it less likely one car trips the switch multiple times and really confuses the computer program.

I've attached what I came up with for a hysteresis loop with fixed resistors, in theory, it works (I think) like this:

The value of R1 is used to pull up the voltage from the IR reciever to increase its sensitivity in general.
The ratio between R3 and R4 sets the comparison voltage.
The feedback loop is used to create the hysteresis, the loop size being defined by the value of R2.

So after all that waffle, could someone explain how to use a potentiometer to adjust input to a comparator, I imagine it can be done by replacing one of these resistors with a pot, but I'm not sure which one to change which wouldn't also affect the hysteresis loop.

I think I have included everything I know about this, but if you need more info just ask.

Thanks in advance,

Xeozim
 

Attachments

  • Hysteresis 256.bmp
    147.9 KB · Views: 518
Engineering news on Phys.org
  • #2
xeozim said:
Hi guys, this is to make something for a uni project I'm doing, not asking for the answers to a homework-type problem so I wasn't sure if it should go in the homework section, but if you think it should let me know and I will move it.

So the project background is a timing system for solar powered cars, the bulk of my work for the system will be the software behind it, but I need to get the hardware working first. I've got an IR receiver and emitter (LDR and LED) pair, and want to build a light gate out of them for use in the timing system.

The circuit receive power from the +3V pin on the micro-controller I'm using, and send input back to a different pin, through a voltage comparator. The idea is that when the cars cross the line, the voltage across the IR receiver spikes and the comparator allows a signal through to the controller.

The trouble I have been having is getting the right sensitivity so that the sensor can detect the car. Because the frequency range on the receiver isn't very tight, the bright halogen lamps used to power the solar powered cars for the race mean that the IR emitter from 2 ft away is not making a big % difference to the amount of light falling on the receiver. This problem which I hope to solve later, combined with the fact that pretty much every time the timing system is used there is a different level of ambient light regardless of the halogens, makes using a specific resistance to set the comparator control voltage very difficult.

To make it more difficult for myself (and your wonderful selves), I'd like to use a hysteresis loop with the comparator, to make it less likely one car trips the switch multiple times and really confuses the computer program.

I've attached what I came up with for a hysteresis loop with fixed resistors, in theory, it works (I think) like this:

The value of R1 is used to pull up the voltage from the IR reciever to increase its sensitivity in general.
The ratio between R3 and R4 sets the comparison voltage.
The feedback loop is used to create the hysteresis, the loop size being defined by the value of R2.

So after all that waffle, could someone explain how to use a potentiometer to adjust input to a comparator, I imagine it can be done by replacing one of these resistors with a pot, but I'm not sure which one to change which wouldn't also affect the hysteresis loop.

I think I have included everything I know about this, but if you need more info just ask.

Thanks in advance,

Xeozim

Welcome to the PF.

For IR receivers, you should use IR windows (plastic that is transparent to IR, but fairly opaque to visible light), and you should modulate the IR signal at some frequency much higher than the AC Mains. I think typical IR remote controls may use something like 39kHz, but I'm not sure. You should search on IR remote control ICs, and maybe use one of them to save you some work. They will use a bandpass filter on the received signal, to reject the noise from AC Mains powered lights and DC signals like sunlight.

And for your comparator hysteresis, you need positive feedback, not negative feedback.
 
  • #3
Thanks Berkeman, an IR window sounds like it will be useful
 

Related to Adjustable sensitivity IR Light gate

1. What is an adjustable sensitivity IR light gate?

An adjustable sensitivity IR light gate is a device that uses infrared light to detect objects passing through it. The sensitivity of the gate can be adjusted to detect objects of different sizes or at different distances.

2. How does an adjustable sensitivity IR light gate work?

The gate emits a beam of infrared light and uses a receiver to detect when the beam is broken. When an object passes through the beam, it interrupts the light and triggers the gate to send a signal.

3. What are the applications of an adjustable sensitivity IR light gate?

An adjustable sensitivity IR light gate can be used in a variety of applications, such as in automatic doors, security systems, and traffic control systems. It can also be used in robotics and industrial automation for object detection.

4. Can an adjustable sensitivity IR light gate be used outdoors?

Yes, an adjustable sensitivity IR light gate can be used outdoors. However, it may be affected by extreme weather conditions such as heavy rain or snow, which can disrupt the infrared light beam.

5. How do I adjust the sensitivity of an adjustable sensitivity IR light gate?

The sensitivity of the gate can be adjusted using a potentiometer or a switch on the device. This allows for fine-tuning of the gate to detect objects of different sizes or at different distances.

Similar threads

  • Electrical Engineering
Replies
32
Views
3K
Replies
2
Views
910
  • Electrical Engineering
Replies
20
Views
4K
  • Electrical Engineering
Replies
12
Views
888
  • Electrical Engineering
2
Replies
52
Views
7K
  • Electrical Engineering
Replies
3
Views
1K
Replies
2
Views
1K
Replies
3
Views
751
Replies
31
Views
2K
Replies
6
Views
2K
Back
Top