how to connect inductive sensor to PIC via optocoupler

Status
Not open for further replies.

betuse

Junior Member level 3
Joined
Oct 17, 2013
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
173
Dear colleagues,
I am new on this forum,
I need help about how to connect inductive sensor to PIC via optocoupler,
I attach images from optocoupler sch, sensor image (that is NPN normally open type),
I need to drive this sensor with 12 VDC,
thanks
BR
 

Attachments

  • optoc.jpg
    133.9 KB · Views: 96
  • sensor.jpg
    71 KB · Views: 85
  • npn_no.jpg
    24.4 KB · Views: 87

Dear collegues, this connection version dont work,
any suggestion?
best regards
 

Hi there,
first, maybe is better for you to test your sensor alone with out mcu,
use for example 9V battery, connect + and -, on the back side of sensor you probably have led indicator, when metal is close to sensor, led will light,
check your black wire and condition when led light,
regards
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…