12-14-2020 09:08 AM
I am currently a final-year student doing my project and I need help with it. I want to use myRIO SHARP GP2Y0A21YK0F Infrared Proximity Sensor to count the objects while reading data. How do I achieve this?
Solved! Go to Solution.
12-16-2020 07:13 AM
First connect the sensor to an anlog input and supply it with 5V
Depending on counting speed and object length or pulse length , choose a meaningfull samplerate.
Now you can capture the voltage reading.
If you look at the datasheet you can expect a voltage waveform for your object. (Better choose a min distance to avoid the foldback at the near end 😉 )
depending on the needed samplerate and your setup you now just have to use the threshold detection or do a window detection, like has to be higher than v_h and then lower than v_l to have an item counted.
12-17-2020 09:21 PM
Thanks! 😊
12-18-2020 03:11 AM
Hi, can you show me the VI of it? I would be gladly appreciate it!
01-06-2021 02:51 AM
Hi, Henrik
I don't understand what you mean by "counting speed and object length"...
Can you give me the VI snippet on it?
Thanks!