Lower voltage from 24V to 3.3V

Thread Starter

Scalpel78

Joined Aug 11, 2013
56
Hi guys,
I've got some LJ12A3-4-Z/BX inductive proximity sensors that I want to hook up to an input on my board that only accepts 3.3V.

The sensor is powered with 24V, and the output pin is 24V when no object is detected. When a metallic item comes within 4mm the output falls from 24V to 0V.

I want to hook that output up to an input on my microcontroller card, but that input only accepts maximum 3.3V.

I was thinking I'd create a circuitboard to put between the sensor and the mucrocontrollerboard, and that I could put a 3.3V voltage regulator on in, but the ones I have have maximum 20V input.

What would be the simplest way of reducing the 24V to 3.3V? Add a 12V regulator in front of the 3.3V regulator?
 

MaxHeadRoom

Joined Jul 18, 2013
28,696
Most proximity's have a open collector output, you could use a Opto isolator IC to transition from the 24v to the 3.3v
BTW the app note shows 6v - 36v working for the prox. NPN N.O..
Max.
 

ian field

Joined Oct 27, 2012
6,536
Hi guys,
I've got some LJ12A3-4-Z/BX inductive proximity sensors that I want to hook up to an input on my board that only accepts 3.3V.

The sensor is powered with 24V, and the output pin is 24V when no object is detected. When a metallic item comes within 4mm the output falls from 24V to 0V.

I want to hook that output up to an input on my microcontroller card, but that input only accepts maximum 3.3V.

I was thinking I'd create a circuitboard to put between the sensor and the mucrocontrollerboard, and that I could put a 3.3V voltage regulator on in, but the ones I have have maximum 20V input.

What would be the simplest way of reducing the 24V to 3.3V? Add a 12V regulator in front of the 3.3V regulator?
Check whether your sensor has open collector or open drain output, it may be as simple as hooking the pull-up resistor to the 3.3V rail instead of 24V.

If the output has active pull-up to 24V, you'll need an isolating diode so it can only pull the input down when its at 0V - you'll probably need a pull-up resistor to 3.3V for the input, and you'll probably need to use a Shottky-barrier diode for its low forward volt drop.
 

MaxHeadRoom

Joined Jul 18, 2013
28,696
Normally Open, output conducts on presence of metal target.
You can get NPN or PNP N.O. or N.C.
The one you have appears to have a 10k pull up resistor, I would tend to go with the Opto for the cleanest solution?


Max.
 

#12

Joined Nov 30, 2010
18,224
Better at what? You haven't said whether you are detecting something once a week or a million times a second.

and I think Max asked about the temperature.
 

MaxHeadRoom

Joined Jul 18, 2013
28,696
Better at what? You haven't said whether you are detecting something once a week or a million times a second.

and I think Max asked about the temperature.
I don't think there is any danger of that according the the frequency response of the unit shown!!.
0.5Hz
No, no temp mentioned?
Max.
 

MikeML

Joined Oct 2, 2009
5,444
Way too complicated. First, to find out if the sensor has an internal pull-up to 24V, power the sensor, and cause it to switch with a Voltmeter between its output pin and its own Gnd connection. If it pulls all the way to 24V, it has the internal pull-up. If you see a low voltage (few mV) with it switched either way, then it is an open-drain/open-collector (it doesn't matter which).

Here are two ways to wire it depending if it has the internal pull-up or not:

129.gif

PS, I just went an reread the first post, and the question is answered. Use the lower circuit...
 
Last edited:

MaxHeadRoom

Joined Jul 18, 2013
28,696
You mention in your build that you are looking to mill aluminum, you need to really ensure rigidity of the gantry to do any kind of milling on a router type machine.
Max.
 

shteii01

Joined Feb 19, 2010
4,644
If you don't need ground isolation, you should be able to use a two resistor voltage divider to reduce the 24V to 3.3V.
That would be by far the simplest way to do it.

If that is too simple. You can add a buffer to the output of the voltage divider. For buffer you can use op amp in buffer configuration.
 
Top