M30 Capacitive Proximity Sensor

Digital Fiber, Photoelectric, Laser Range, Optical, Temperature, Rotary Encoder, Ultrasonic, Gas, Gyro, Accelerometer, FlexiBend, Flexiforce, Compass......

M30 Capacitive Proximity Sensor

Postby kenshih » Mon Oct 03, 2011 10:05 pm

i've purchased the capacitive sensor as mentioned in the title for my project, and had followed the datasheet provided, providing 12v supply to sensor after going through 2 330ohm resistor, which produce a current to the sensor of around 19mA which is within the accepted range of the sensor.
i've also use a pull-up resistor as recommended. but im still not getting anything when im waving my hand and/or objects in front. anythin im missing out here? need advise, ty in advance.

link to the sensor im mentioning, http://www.cytron.com.my/viewProduct.ph ... y%20Sensor
kenshih
Novice
 
Posts: 17
Joined: Mon Oct 03, 2011 9:57 pm

Re: M30 Capacitive Proximity Sensor

Postby hyng » Tue Oct 04, 2011 9:54 am

If i'm not mistaken, there are two output signal, NPN and PNP. Did you pull up at the correct output which should be NPN?
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: M30 Capacitive Proximity Sensor

Postby hyng » Tue Oct 04, 2011 10:05 am

One more thing, there is a sensitivity adjuster which is covered. Probably you can open that cover, and try to adjust the sensitivity and see if it is detectable.
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: M30 Capacitive Proximity Sensor

Postby kenshih » Tue Oct 04, 2011 4:00 pm

for the NPN and PNP based output, i tried switching them when im testing and yet there is no changes. as for the sensitivity switch, i've not try them out, will try asap. thx for giving me advise.
kenshih
Novice
 
Posts: 17
Joined: Mon Oct 03, 2011 9:57 pm

Re: M30 Capacitive Proximity Sensor

Postby kenshih » Thu Oct 06, 2011 3:37 pm

i've just tried tweaking the sensitivity adjuster from end to end(some clicking sound indicates the end) and there is still no response!! still need help here. is there any way to check if the sensor's working? there is two LEDs within the sensor that lights up when i turn on the power supply, which means its suppose to be working... right?
kenshih
Novice
 
Posts: 17
Joined: Mon Oct 03, 2011 9:57 pm

Re: M30 Capacitive Proximity Sensor

Postby hyng » Thu Oct 06, 2011 5:24 pm

Do you have the schematic on your connection? It would be great if you can post it here so that we can verify the problem .. :)
Anyway, you can request for warranty so that we can test on the sensor for you. You just need to fill up the form at the support tab, and our technical PIC will follow up with you ASAP.
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: M30 Capacitive Proximity Sensor

Postby kenshih » Thu Oct 06, 2011 6:46 pm

this is the circuit i constructed for the capacitive sensor, took the original circuit from the B106 Rotary Encoder User's Manual and edited it according to the circuit i have.
cct.jpg
circuit for the capacitive sensor


the coding i used to test this sensor is:

#define ss0 RC0
#define itm0 RB0

void main()
{
TRISC = 0b11111111; //defining port c for input
TRISB = 0b00000000; //defining port b for output
while(1)
{
if (ss0==0) itm0=1;
else itm0=0;
}
}
kenshih
Novice
 
Posts: 17
Joined: Mon Oct 03, 2011 9:57 pm

Re: M30 Capacitive Proximity Sensor

Postby hyng » Thu Oct 06, 2011 7:22 pm

Please try to detach 660 ohm from your circuit, connect 12V source directly to the sensor. Hope this will help.
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: M30 Capacitive Proximity Sensor

Postby robosang » Thu Oct 06, 2011 8:13 pm

Woh.... capacitive sensor? Great, what is the application?
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: M30 Capacitive Proximity Sensor

Postby ober » Thu Oct 06, 2011 8:26 pm

Good to see you know how to modify the sample circuit from rotary encoder, at least it is useful :lol: .

The code seem to be correct. Maybe the resistor highlighted by hyng should help.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Next

Return to Sensor

Who is online

Users browsing this forum: No registered users and 14 guests