|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I have some questions about a couple Infrared Sensors I found.
So I found a couple of Keyence PZ-G61CB Infrared Sensors while I was digging around in my team's stash of parts. Problem is nobody knows how to use them, and we're really trying to implement IR so...
1. What are the pros/cons of using this model of sensor? 2. Does the latest version of LabVIEW offer example code for these kind of sensors or even support them at all? 3. If it does, where can I find it? Thanks in advance! If I can think of more questions I'll let you know ![]() |
|
#2
|
||||
|
||||
|
Re: I have some questions about a couple Infrared Sensors I found.
The answer to this depends on what you are trying to do with the sensor. IR sensors do not all do the same type of measurement. Are you trying to measure distance to an object? Are you trying to detect the presence/non-presence of an object? Are you trying to detect the edge of a line?
We have not used this same model, but it looks like (from the manufacturer website) it is intended to be pointed at a particular retro-reflective target. I am not familiar with the output protocol it has either. I didn't download the full data sheet since they wanted a lot of info from me. Depending on what you are trying to measure, there are probably better options that are inexpensive and will work with Roborio out out the box. We use Sharp IR sensors extensively. I can help recommend ones of those. |
|
#3
|
||||
|
||||
|
Re: I have some questions about a couple Infrared Sensors I found.
Quote:
Apologies for not being kinda vague. First time I'm actually working with something like this, which is kinda embarrassing since I'm the team's head programmer :/ |
|
#4
|
||||
|
||||
|
Re: I have some questions about a couple Infrared Sensors I found.
Quote:
2. If I can, where can I find LabVIEW code to help me out? |
|
#5
|
||||
|
||||
|
Re: I have some questions about a couple Infrared Sensors I found.
Quote:
It's an analog device so you would look at the analog sensor example to see how you might use it. It returns a voltage directly proportional to the distance to a solid object in the path of the sensor. Hope this helped. |
|
#6
|
||||
|
||||
|
Re: I have some questions about a couple Infrared Sensors I found.
Quote:
As for other IR sensors, they are good for measuring the distance to an object in front of them. Most output an analog signal that is proportional to the distance measured. Like this one: https://www.adafruit.com/products/164 This same feature can be used to detect presence of an object (if range to object is less than X, then there is something there), and some IR sensors come with a carrier board that is set to do this for a particular range. Like this one: https://www.adafruit.com/products/1927 Another is line-following sensors that look for a difference between two detectors to sense an edge: https://www.sparkfun.com/products/11769 For finding the goals in autonomous, vision processing is going to be your best bet. Many active threads here on CD to help with that, and the example code provided in your software install is very helpful. For help with finding them in teleop, you can also go with a low-tech solution. Have a bright light (flashlight) aligned with your shooter. When the drive team sees a bright reflection on the tape in their camera view...time to shoot. Quote:
https://www.adafruit.com/products/1568 |
|
#7
|
||||
|
||||
|
Re: I have some questions about a couple Infrared Sensors I found.
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|