Thank you! Yes, they are extremely widespread. I am also planning to use them in some future projects, but they are not that cheap and they are also a bit bulky. Sometimes a tiny limit switch does a "better" job due to its size.
Thanks! I hope you'll have fun with it! I will publish a few more videos using this thing, I just need to get some more free time to be able to work on it.
Hi! You can find the product on my website under the Parts & Tools section, in the Motors and related circuits subsection! I also shared an inductive sensor on the exact same page. Cheers!
This is not a distance sensor but a proximity sensor. I guess their accuracy depends on the model, so I would suggest you check the datasheet of the product before buying it.
did not expect you would be answering so promptly, my respect for your communication with the followers. I do not want to measure the distance but to detect proximity whithin a certain distance which in sense is a kind of distance measurement but indirectly. So if I intentionally calibrate the sensor to detect the obect at 3 cm, what is the minimum distance the sensor will not detect the object? Will I still detect it at 3.5 cm? Thank you!
One of my principles is to try to communicate with my viewers as well as possible. So yeah, I am trying. The sensitivity of these sensors is quite good, and typically, you can adjust it with a potentiometer with a high accuracy. Unfortunately, I don't have the exact numbers, but if you can wait a day or two, I can measure it for this specific sensor. Otherwise, I still recommend referring to the datasheet.
@@CuriousScientist I appreciate that, don't worry, I looked up online for acurracy of 0.1mm sensors but I think it is not called like this. It is either resolution or something else. Data sheets would provide the range of detection but that is something different.
your project looks great. i have a question. can i use this for my laser machine to keep the distance constant in the z axis? if so, what changes should i make in the arduino code. thank you in advance for the information.
Hi and thank you! Not _this_ exact one, because this is a capacitive one. But there are similar, inductive proximity sensors. Same housing, same switching principles, but the sensing is done on inductive/magnetic basis. But if you want to sense something magnetic, or based on magnetism, I also suggest you to look at Hall-sensors. They are very cheap and they also detect magnetism, so the presence of a magnetic field can trigger them.
Thanks! I believe that capacitive sensors would not work, but I can be wrong. You might want to try magnetic proximity sensors, they should work under water. However, they would require magnetic material for detection.
@@CuriousScientist I've been trying to deal with this. Firstly i thought sonars would do but I found out there aren't any sonars that could be fitting in my gripper and also could work underwater. Gave up on sonars and went to proximity sensors and i'm trying to find an inductive or capacitive sensor that could work underwater but getting a bit hard. Maybe i'll only detect magnetical material, let's see. Thanks for the help!
Hey I am trying to build a circuit with a hall sensor, arduino uno, a motor and a push button switch. When the button is pushed, the motor should turn on and then when the hall sensor detects the magnet, the motor should turn off. Another press of the button should the reverse the direction that the motor spins. If I want the motor to turn off when the sensor detects a magnet do I need to use a PNP sensor?
@@daniellehenderson5272 Hi. If I am not wrong, the NPN proximity sensors go LOW when you detect something with them. You do not need to fiddle with the INPUT_PULLUP option. Also, you might need an additional circuit for your sensor if the operating voltage is more than 5 V. You cannot directly connect a 12 V or 24 V proximity sensor's output to your Arduino's GPIO pin...
Hi, I would love to know how to do this with acceleration and deceleration. runSpeed() does not seem to allow this function which is crazy for an Acceleration library. Is it possible to have a gradual start and stop speed initiated by a sensor input where you can't use runToPosition()? You code explanations are brilliant BTW! Thanks
Hi! You should read the very well written documentation of the library. RunSpeed() intentionally doesn't have acceleration. You should use run() if you want acceleration. Also, check my more recent videos where I have better code written using this library.
@@CuriousScientistThanks for the reply. I tried a straight swap, run() for runSpeed() but and it didn't make any difference. I have read the documentation but it's not easy to follow without example code for a newbie. I intend to watch all you videos, Any help is much appreciated. Thanks
@@CuriousScientist That's awesome of you! Thanks. I basically just need to run my motor in either direction depending on a sensor input, exactly like you are doing with the prox sensor but I need acceleration to keep the transitions smooth. Swapping runSpeed() for run() didn't seem to change anything.. should it work that easy or do I need to change something else too? I'm using your code, the same as in this video.
Acceleration also needs target position instead of speed. So you will need to use the move() or moveTo() functions to determine a target position. You should give some larger number as a target than the number of steps required to reach the end stop switch. Then, when the switch is reached, you stop using the stop() function which will decelerate to zero, then give the same (slightly larger) target with an opposite sign and let the motor run in the opposite direction. Obviously, you should have another limit switch on the other side. Actually, the code I used in this video should help you: th-cam.com/video/_enXxcBTOdM/w-d-xo.html You just need to modify a few conditions and it is done.
Yes, and no. I could, but I don't have the time and resources to fulfill requests for free. Also, my philosophy is to explain everything as carefully as possible. If you can't cope with my lengthy videos, speed them up, or skip parts of it.
It was very clear explanation. This devices are used everywhere from garage doors to production lines at factories.
Thank you! Yes, they are extremely widespread. I am also planning to use them in some future projects, but they are not that cheap and they are also a bit bulky. Sometimes a tiny limit switch does a "better" job due to its size.
Thanks for the video. I just decided to pick one up from your link and will give it a try on my milling machine.
Thanks! I hope you'll have fun with it! I will publish a few more videos using this thing, I just need to get some more free time to be able to work on it.
Hi
can you tell me what is the reference of the sensor and is there an eddy current sensor with similar properties?
Hi! You can find the product on my website under the Parts & Tools section, in the Motors and related circuits subsection! I also shared an inductive sensor on the exact same page. Cheers!
so what is the accuracy of capacity sensors? If I want to measure a variation of distance 0.5mm would it work or an inductive would be more accurate?
This is not a distance sensor but a proximity sensor. I guess their accuracy depends on the model, so I would suggest you check the datasheet of the product before buying it.
did not expect you would be answering so promptly, my respect for your communication with the followers. I do not want to measure the distance but to detect proximity whithin a certain distance which in sense is a kind of distance measurement but indirectly. So if I intentionally calibrate the sensor to detect the obect at 3 cm, what is the minimum distance the sensor will not detect the object? Will I still detect it at 3.5 cm? Thank you!
One of my principles is to try to communicate with my viewers as well as possible. So yeah, I am trying. The sensitivity of these sensors is quite good, and typically, you can adjust it with a potentiometer with a high accuracy. Unfortunately, I don't have the exact numbers, but if you can wait a day or two, I can measure it for this specific sensor. Otherwise, I still recommend referring to the datasheet.
@@CuriousScientist I appreciate that, don't worry, I looked up online for acurracy of 0.1mm sensors but I think it is not called like this. It is either resolution or something else. Data sheets would provide the range of detection but that is something different.
How do you think , how to count a non-slitted object ? for example clay bricks which hasn't space between themselves , just a small deepening.
Probably you would need something mechanical that is in contact with the bricks and can detect the small gaps.
your project looks great. i have a question. can i use this for my laser machine to keep the distance constant in the z axis? if so, what changes should i make in the arduino code. thank you in advance for the information.
Thanks! Sure you can. I have no idea how your code looks like, so I cannot really advise anything.
Hello great video , just wondering if this proximity sensor can be triggered by magnetism thank you
Hi and thank you! Not _this_ exact one, because this is a capacitive one. But there are similar, inductive proximity sensors. Same housing, same switching principles, but the sensing is done on inductive/magnetic basis. But if you want to sense something magnetic, or based on magnetism, I also suggest you to look at Hall-sensors. They are very cheap and they also detect magnetism, so the presence of a magnetic field can trigger them.
Know anything about how how using a capacitive sensor and instrumentation amplifier can be used together?
I think you don't need any additional circuit for this device as it has everything built in.
@@CuriousScientist what about software for data or a computer? Is that needed?
What exactly do you mean? This runs without any additional things. No software is needed for a proximity sensor.
Great video. Does the proximity sensor work underwater? I'm developing an underwater gripper and would like to add a proximity sensor to it.
Thanks! I believe that capacitive sensors would not work, but I can be wrong. You might want to try magnetic proximity sensors, they should work under water. However, they would require magnetic material for detection.
@@CuriousScientist I've been trying to deal with this. Firstly i thought sonars would do but I found out there aren't any sonars that could be fitting in my gripper and also could work underwater. Gave up on sonars and went to proximity sensors and i'm trying to find an inductive or capacitive sensor that could work underwater but getting a bit hard. Maybe i'll only detect magnetical material, let's see. Thanks for the help!
Hey I am trying to build a circuit with a hall sensor, arduino uno, a motor and a push button switch. When the button is pushed, the motor should turn on and then when the hall sensor detects the magnet, the motor should turn off. Another press of the button should the reverse the direction that the motor spins. If I want the motor to turn off when the sensor detects a magnet do I need to use a PNP sensor?
Hi! You have to program the logic anyway, so it doesn't matter if you have a PNP or NPN switch. You'll determine the behavior in the code.
@@CuriousScientist thanks so much for your reply. If I use a NPN sensor, does this mean that when the magnet is brought close, the signal will be LOW?
and do I need to configure the hall sensor as an INPUT_PULLUP?
@@daniellehenderson5272 Hi. If I am not wrong, the NPN proximity sensors go LOW when you detect something with them. You do not need to fiddle with the INPUT_PULLUP option. Also, you might need an additional circuit for your sensor if the operating voltage is more than 5 V. You cannot directly connect a 12 V or 24 V proximity sensor's output to your Arduino's GPIO pin...
@@CuriousScientist thank you that is very helpful!
the object in the non-metal sensor is there or not...example wood, plastics, and object non metal etc
I have no idea what you are trying to say, sorry.
@@CuriousScientist Can the sensor be used to sensor wood or plastic?
Yes. Capacitive sensors work with all non-metallic materials.
@@CuriousScientist thank very much Mr @CuriousScientist
Hi, I would love to know how to do this with acceleration and deceleration. runSpeed() does not seem to allow this function which is crazy for an Acceleration library. Is it possible to have a gradual start and stop speed initiated by a sensor input where you can't use runToPosition()? You code explanations are brilliant BTW! Thanks
Hi! You should read the very well written documentation of the library. RunSpeed() intentionally doesn't have acceleration. You should use run() if you want acceleration. Also, check my more recent videos where I have better code written using this library.
@@CuriousScientistThanks for the reply. I tried a straight swap, run() for runSpeed() but and it didn't make any difference. I have read the documentation but it's not easy to follow without example code for a newbie. I intend to watch all you videos, Any help is much appreciated. Thanks
What exactly is not working? Maybe I can help easily.
@@CuriousScientist That's awesome of you! Thanks. I basically just need to run my motor in either direction depending on a sensor input, exactly like you are doing with the prox sensor but I need acceleration to keep the transitions smooth. Swapping runSpeed() for run() didn't seem to change anything.. should it work that easy or do I need to change something else too? I'm using your code, the same as in this video.
Acceleration also needs target position instead of speed. So you will need to use the move() or moveTo() functions to determine a target position. You should give some larger number as a target than the number of steps required to reach the end stop switch. Then, when the switch is reached, you stop using the stop() function which will decelerate to zero, then give the same (slightly larger) target with an opposite sign and let the motor run in the opposite direction. Obviously, you should have another limit switch on the other side.
Actually, the code I used in this video should help you: th-cam.com/video/_enXxcBTOdM/w-d-xo.html
You just need to modify a few conditions and it is done.
Can you do a 5 minute version of this video?
Yes, and no. I could, but I don't have the time and resources to fulfill requests for free. Also, my philosophy is to explain everything as carefully as possible. If you can't cope with my lengthy videos, speed them up, or skip parts of it.
you have misspelled the link to your website (t>h) nice videos dude keep on :)
Hey, thank you very much! I fixed it now, it should work.
schneider-electric-capacitive-proximity-switch-xt230a1fal2 , Have any of you examined the electronic circuit of this product ?
Hi! I checked the datasheet and it looks like a normal switch. It is an industrial equipment and it works at higher voltages.
@@CuriousScientist I had read the datasheet. I know . I had questions about the electronic board inside the Plastic Round tube. I meant this.
Oh, I see! Unfortunately, I cannot help with that, I never encountered that piece of hardware.
that is a inductive sensor I bought the wrong sensor coz I thought this was the capacitive one
Nope, the LJC18A3-H-Z/BX is a capacitive one.