IR Detection

  • Thread starter Wetmelon
  • Start date
  • #1
154
0
Hey experts! I've designed an infrared detection circuit to drive a motor, but I need the circuit and my math checked. I tried 5Spice, but I can't get my head around it. Circuit image attached.

Do you know about how far I would be able to detect someone crossing in front of the light? I need 10-20 feet. Even farther would be great!

Edit: I should also mention that the TIP41C transistors are the correct components, but I am only using what Eagle had in its library for the other components, so they are not necessarily to spec.
 

Attachments

  • IR Detector.png
    IR Detector.png
    3.1 KB · Views: 429
Last edited:

Answers and Replies

  • #2
berkeman
Mentor
59,643
9,785
Hey experts! I've designed an infrared detection circuit to drive a motor, but I need the circuit and my math checked. I tried 5Spice, but I can't get my head around it. Circuit image attached.

Do you know about how far I would be able to detect someone crossing in front of the light? I need 10-20 feet. Even farther would be great!

Edit: I should also mention that the TIP41C transistors are the correct components, but I am only using what Eagle had in its library for the other components, so they are not necessarily to spec.

You're not really adding any gain to the IR Rx diode -- it would be better to use a photocurrent-to-voltage converter stage with an opamp. Also, for best real-world IR TX-->Rx performance, you should modulate the IR transmission and demodulate at the RX stage, to help reject DC IR and AC Mains (60Hz, 120Hz) interference.

You might be able to use Passive IR (PIR) sensing instead, if you are just looking for the motion of people / warm objects.
 
  • #3
161
0
Also, by modulating, you can typically drive the emitters at a higher current which can help increase the distance.

One of the closest real-world examples I could give you for the detection of an object detection 10-20Ft away would be the circuitry associated with the safety beam on a garage door system.

Edit:
I'm with Berkeman - PIR sensors for motion usually have a pretty solid performance. Just make sure you select the appropriate device with the correct lens (distance and detection area).
 
  • #4
154
0
Alright, so I decided that PIR was indeed the option most suitable for my application. I have revised my circuit to be compatible with the AMN33111 PIR sensor

However, this sensor is expensive! Does anybody know of a similar product that is quite a bit cheaper? xD
 

Attachments

  • PIRDector2.png
    PIRDector2.png
    20.6 KB · Views: 412
  • #5
berkeman
Mentor
59,643
9,785
Alright, so I decided that PIR was indeed the option most suitable for my application. I have revised my circuit to be compatible with the AMN33111 PIR sensor

However, this sensor is expensive! Does anybody know of a similar product that is quite a bit cheaper? xD

What is the function of Q1? Doesn't seem like it's needed anymore...
 
  • #6
154
0
What is the function of Q1? Doesn't seem like it's needed anymore...

I don't want to burn out the switch. In my experience, most switches I've used only handle about .5A, which is just about how much my load draws, so it was iffy.

On the other hand, digikey search brings up small, cheap, effective slide switch that handles 6A @ 120VAC, (http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=CKN9891-ND), so I guess I don't really need it.

Edit: Updated diagram.
 

Attachments

  • PIR Circuit 3.png
    PIR Circuit 3.png
    3.6 KB · Views: 444
Last edited:
  • #7
161
0
Some general notes:

1. At power-up, the output of the PIR is typically not stable, so your motor may run unexpectedly at first.

2. I'm pretty sure you will need some bypass capacitance to stabilize the output of the regulator. In addition, a bypass cap for the sensor wouldn't hurt.
 
  • #8
154
0
Some general notes:

1. At power-up, the output of the PIR is typically not stable, so your motor may run unexpectedly at first.

Yea, I was aware of this, and have corrected for it in the mechanical design rather than the electronic design. However, if there's an easy way to fix that in the electronics, I'd love to hear about it :)

2. I'm pretty sure you will need some bypass capacitance to stabilize the output of the regulator. In addition, a bypass cap for the sensor wouldn't hurt.

Added :) Any idea on the capacitor sizing I'll need?



The sensor only outputs 4.5 volts and .1mV, so I had to switch to a darlington transistor with high (10k) hFe to get appropriate current to power the solenoid (load).
 

Attachments

  • PIRCircuit4.png
    PIRCircuit4.png
    5.3 KB · Views: 387
  • #9
161
0
The required bypass capacitance for the sensor is listed on the data sheet (application circuit).

The bypass capacitance for the regulator would be listed on its data sheet as well.

One other thing: the pull-down on the base of the transistor should go to ground. As it is drawn, (attached to the motor), its bias will vary between the motor on/motor off states.
 

Related Threads on IR Detection

  • Last Post
Replies
6
Views
7K
Replies
3
Views
18K
  • Last Post
Replies
2
Views
6K
  • Last Post
2
Replies
42
Views
17K
  • Last Post
Replies
4
Views
6K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
11
Views
1K
  • Last Post
Replies
4
Views
4K
Top