Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need to select appropriate sensor.

Status
Not open for further replies.

MAXPAYNE

Member level 5
Member level 5
Joined
Feb 24, 2007
Messages
94
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Location
BD
Visit site
Activity points
1,879
I would like to make a device which will make alarm if the driver tries to get out of his driving seat. I cant use any sensor in the cushion as I have to set the sensor outside of the seat.

Can you guys give me idea, what could be an appropriate sensor for this purpose ?
 

Maybe an infrared barrier could work. It should be placed parallel to the door at the inner part of the car. Once the barrier is blocked you may supose that someone got out from the car.

Another better way is using 2 barriers. If one gets blocked, then both of them, then the first one is not blocked anymore, and if after all of that the second barrier stop being blocked, you are pretty sure that the object (driver) went into a direction. If you place the barrier pair into the right order you can detect when the driver gets in or out of the car.

I am planning to use that method on a personal project (nothing to do with cars, actually) and it can be really simple if you use a MCU. You may need to read a barrier at a time (that means that both emitters are not powered all the time).

That's the easier and cheaper method I can offer..

Hope being useful, just ask again if you didn't understand something or if you want to know anything.
 
Sounds good to me. But will not the ambient light effect the sensor and false trigger ?
 

No if you adapt it. There are several ways to do that. I had once ocurred a capacitive filter for DC but I never tried it out nor simulated it. I think it works but it uses an opamp. There's other ways using 2 transistors as digital buffer.

You will also add an opaque coverage surrounding the receiver lens (the longer the coverage, the less ambient light that will reach the sensor).

Emitting high current pulses through the emitter will allow to reach longer sensing distances. If that filter I told you worked (pretty sure it does) then you could reach distances of several yards (Sorry, I use SI units).

It's quite late here and I am tired right now, but as soon as I can I will show you a circuit and how to calculate it.
 
Thanks for such a nice explanation. I dont need longer distance as I am thinking to place the IR transmitter in the right side of the seat and the receiver to the left side of the seat.

Waiting for your calculation.
 

Well, Here I am again. I will not write every formula and equation, I suppose you alrady know how to calculate a transistor to saturate or a RC filter.

The circuit is the following:
**broken link removed**

You can see the IR LED emitter, It will conduct a very high current for its nominal one of aprox 150mA. It must not be turned on continuously, you have to generate pulses from less than 5us from the MCU (maybe a delay with a few instructions or a counter, depending of the bus frequency, or you can use the timer). Because of something I will tell you later, the pulses frequency should not pass the 1KHz.

Then, those high luminance pulses will reach the phototransistor which has a buffer at its output. As LM358 is a slow opamp (low slew rate) the emitter frequency should not pass the 1KHz, even lower frequencies could be used but the emitter pulse lenght should be the same. The R1 resistor determines the sensibility. At the buffer output there's a capacitor which with the 100K resistor will filter the most part of ambient light detected by the sensor. Only the pulses will flow through it. Then, there's another 100K resistor with a 10nF ceramic capacitor and a diode pointing to the capacitor.

That part will make a kind of continuous signal from the received and already filtered IR light pulses. The closer the emitter is to the receiver/sensor the higher that DC voltage will be. Take into account that at a determined maximum distance those pulses will be so small that the output signal may be zero.

The last diode (at the output) performs a protection since the electrolitic capacitor could generate negative voltages when being discharged (when the device is turned off, for example).

I didn't simulate it, I am out of time, but if it doesn't work play with the values; the electrolitic capacitor should charge in aprox 2s at its 80% by the ambient light. The ceramic capacitor must charge fastly and discharge slowly (make charge time 10 or more times smaller than the discharge one), 1ms to charge and 50ms to discharge would be fine. Take into account that the diode will charge it inmediately (which is good). If you have to change a resistor value for that change the resistor of the ceramic capacitor, otherwise you will afect the DC filter.

Finally, your MCU should have a CCP module. If it does not, use an external comparator IC but I recommend to use the MCU internal one to save components and space. Measure the output DC at the maximum distance from the emitter to the sensor and program it to be a bit higher.

That's all, ask me again if you didn't understand anything.
 

Well, I cant see the attachment link-

It says, "Invalid Attachment specified. If you followed a valid link, please notify the administrator"
 

The circuit is the following:

FILTER.jpg

I don't know why it gets uploaded as file if it's an image and should be displayed directly in the post.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top