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.

Cheap proximity sensor

Status
Not open for further replies.

danst83

Junior Member level 1
Joined
Nov 2, 2009
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,410
I'm looking for a proximity sensor that can detect metal about 7mm away. A capacitive or inductive solution. The sensor should have a relatively low cost (under $1). I've used the tda0161 chip from ST in the past but they are phasing the chip out so I can't use it any more.
 

Im thinking a hall effect ic can work for you. i found one for under .80 cents.

**broken link removed**
 

I plan on using this sensor in a container that contains magnetic particles so a hall effect sensor won't work cause it detect magnetic fields so I'll have to use a magnet instead of metal which is not feasible in my case.
 

Have u tried searching for IR sensors,there are a wide variety of IR sensors,though im not sure about their price
 


Ard, Thank you! I think your solution might work. I just need to figure out if a 7mm range is too much for that picoDetector. I'll build it something this week. I'll keep you posted.
 

I built that picoDetector a couple of days ago and it is not very stable. Sometimes it signals metal presence when there is none. The detection range for the sensor is more like 4mm. It wasn't able to get 7mm out of it. Another requirement that I have that I forgot to mention is the detection speed needs to be less 1ms. I'd really appreciate any input on the subject. IR sensors won't work there's a 3mm piece of plastic that separates the sensor from the target. Thanks!
 

Replacing the inductor shown with a larger diameter hand-wound coil might help. But you'll need to experiment with the number of turns to get approximately the same vale as the one shown.

Regards,

Anand
 

I played with different inductor sizes but 7mm was very hard to achieve. But my main concern is not the distance. It's the stability of the sensor and the response time. (I believe the stability problem comes from the fact that I use a bigger inductor that requires more samples) If I keep increasing the size of the inductor then the OSC frequency will drop to the point when I'll have to increase the number of samples the PIC takes before it can accurately detect metal presence, which will increase the response time. But even now, the sensor is too slow for my needs. The response time of the sensor is 18ms (watchdog timer) * 2 (pre-scale factor they use) = 36 ms, which is way above 1ms that I'm aiming for.
 


Anand,

Thank you for your help. It's a feasible option. I like the idea of that metal detector. It's a basic colpitts OSC that it's constantly being compared to a stable frequency reference. The only problem that I see with it is that it might go out of calibration over time. It's not temperature-compensated and i don't think it's linearized either. It will also require a separate uC to process the output. But still a good option. I'll have to see how much the frequency of the colpitts OSC changes with the presence of metal.
 

Anand,
The only problem that I see with it is that it might go out of calibration over time. It's not temperature-compensated and i don't think it's linearized either. It will also require a separate uC to process the output.

You know, the calibration might not be a problem; you could use another small cpu to sample the beat frequency before every use, and make it output the same frequency thereon. Perhaps add a calibrate button that saves the value so you dont have to do it till you suspect the calibration is off, in which case you just hit the button.

For the linearity I guess you'll need a look-up table or a curve fitting algorithm. But if you just need a go, no-go reading, the linearity wouldnt matter, would it?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top