View Single Post
  #2   Spotlight this post!  
Unread 22-01-2015, 12:16
RyanShoff RyanShoff is offline
Registered User
FRC #4143 (Mars Wars)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Metamora, IL
Posts: 147
RyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to behold
Re: Inductive Sensor E2E-X7D1-M1GJ 2158

I think that is an Omron 2-wire proximity switch. I doubt wiring it to an analog input will do anything but put 12v to the input. You might get it to work if you wire it to gnd through a resistor or two. This link talks about wiring that type of sensor to an arduino: http://forum.arduino.cc/index.php?topic=149367.0 Something similiar should work. Using a DIO pin instead of an analog pin is probably more appropriate.

The are lots of posts here about wiring 3-wire NPN proximity switches to DIO pins.
__________________
Ryan Shoff
4143 Mars/Wars
CheapGears.com
Reply With Quote