Inductive sensor for rpm reading for automotive purposes

Hello all. I'm currently enrolled on a college project in which we're trying to use a LJ12A3-4-Z/BY inductive proximity sensor to return rpm data, and we're having problems when it comes to coding and the sensor overall. Since it is a very worn down sensor (our former colleagues have used it many times before, but we've lost the codes used then), we don't know if the issue is in the sensor itself, in the new code or both. If anyone has used this sensor before for this purpose and could share a sure-fire code with us, I'd be very very grateful! We've looked everywhere for a code that works and couldn't find any.

Here is an interesting thing. When I asked Google to search for "LJ12A3-4-Z/BY arduino", the VERY FIRST hit was a complete instruction and code to set up and test your sensor.

2 Likes

the thing is, in case you actually think I didn't check "the very first" result to such an obvious search, the code available doesn't match our needs because what we're doing is a little bit more complex than that. the other ones as well. so yeah, thanks I guess.

Sorry, but you wrote that you could not determine if the sensor worked or not. That seems to be your FIRST need.

1 Like

let me rephrase it then. the sensor seems to be working, according to simple tests such as the ones you are reccomending, the problem is that when it comes to more extensive measurements, like RPM readings from a phonic wheel, we are uncertain whether the discrepancies in results are due to a sensor malfunction or if the code we are using is not suitable for this application. (english is not my first language, so sorry if anything is still unclear)

Perhaps if you provided some diagrams, and the code you tried, and a schematic, and a link to the sensor and ... why (or how) it doesnt work
you might help us to help you.

Like this

However my best guess is that the sensor can not discriminate over such small distances. You could TRY putting a magnet on the other side of the wheel.

1 Like

That is something new to me. Had to look at Google images.

Added: What is your wheel made of? I see images of plastic phonic wheels.

1 Like

I get the impression they do not want to do the code, they can post on the for hire section. For sure they read the Arduino Cookbook?

Can you use an oscilloscope to look at the signal from the sensor?
Unless you know what the signal looks like you cant expect to write code that will process it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.