logo elektroda
logo elektroda
X
logo elektroda

Small, Low-Cost Industrial Sensor for Real-Time Object Distance & Length (0.5-0.6m)

165 22
ADVERTISEMENT
  • #1 21679878
    Jon Jon
    Anonymous  
  • ADVERTISEMENT
  • #2 21679879
    EEWeb
    Anonymous  
  • #3 21679880
    Jon Jon
    Anonymous  
  • #4 21679881
    David Ashton
    Anonymous  
  • ADVERTISEMENT
  • #5 21679882
    Jon Jon
    Anonymous  
  • #6 21679883
    David Ashton
    Anonymous  
  • ADVERTISEMENT
  • #7 21679884
    Jon Jon
    Anonymous  
  • #8 21679885
    David Ashton
    Anonymous  
  • ADVERTISEMENT
  • #9 21679886
    EEWeb
    Anonymous  
  • #10 21679887
    Aubrey Kagan
    Anonymous  
  • #11 21679888
    Jon Jon
    Anonymous  
  • #12 21679889
    Jon Jon
    Anonymous  
  • #13 21679890
    Jon Jon
    Anonymous  
  • #14 21679891
    Jon Jon
    Anonymous  
  • #15 21679892
    Aubrey Kagan
    Anonymous  
  • #16 21679893
    David Ashton
    Anonymous  
  • #17 21679894
    Jon Jon
    Anonymous  
  • #18 21679895
    Jon Jon
    Anonymous  
  • #19 21679896
    David Ashton
    Anonymous  
  • #20 21679897
    Aubrey Kagan
    Anonymous  
  • #21 21679898
    Jon Jon
    Anonymous  
  • #22 21679899
    Jon Jon
    Anonymous  
  • #23 21679900
    ML Components
    Anonymous  

Topic summary

✨ The discussion focuses on identifying a small, low-cost industrial sensor capable of real-time detection and measurement of object distances and lengths within a sensing range of 0.5 to 0.6 meters. The application involves detecting multiple similar objects (comparable to cars) positioned parallel to a reference line, with the need to measure presence (yes/no) and length along one dimension in real time, tolerating delays up to 15 seconds. Various sensing approaches were considered, including arrays of light detectors for spatial resolution, beam break sensors, reflective photoelectric sensors, ultrasonic sensors, and inductive detection. Beam break sensors with a single-sided setup (transmitter and receiver integrated in one unit) were favored for simplicity and cost-effectiveness, especially in a sideways arrangement to avoid overhead lighting issues. Reflective photoelectric sensors were recommended for one-sided detection, requiring modulation (e.g., 40 kHz IR LED) to reduce ambient light interference. Inductive loops were discussed as an alternative for metallic objects but noted for limited range and resolution. Implementing multiple sensors in a string to cover the required length with approximately 5 cm resolution was proposed, necessitating additional electronics such as 24 V DC power supplies, open-collector outputs, and microcontrollers or PLCs for signal processing. Vendors like Red Lion Controls, Automation Direct, Omega, Banner, and Vishay were mentioned as sources for photoelectric and IR emitter/receiver components. The need for software to handle sensor input, filter false signals, and calculate object length and spacing was emphasized. The user was advised to communicate application specifics clearly to vendors and consider expert consultation for system integration and programming.

FAQ

TL;DR: For one‑sided, 0.5–0.6 m detection, use low‑cost photoelectric sensors; at 5 cm resolution you need 20 sensors per meter. “OK, resolution 5 cm, that’s 20 per metre.” [Elektroda, Anonymous, post #21679883]

Why it matters: This FAQ helps engineers choose a small, cheap sensor setup to detect presence and length in real time along a line.

Quick Facts

What’s the simplest, low-cost way to detect cars side‑on at 0.5–0.6 m?

Use one‑sided photoelectric sensors configured as reflective IR “beam‑break” along the line. They’re compact, inexpensive, and easy to scale by spacing emitters every 5 cm where needed. Modulate the LED to avoid ambient light errors and read each channel digitally for a yes/no output. [Elektroda, Anonymous, post #21679885]

Can I do it with sensors on only one side?

Yes. Use reflective photoelectric or ultrasonic sensors. Reflective IR strengthens with nearer objects and works at short standoff. One‑sided layouts reduce resolution as distance varies, so keep object paths consistent to maintain a 5 cm grid. Mirrors or opposite modules are not allowed in your case. [Elektroda, Anonymous, post #21679893]

How many sensing points do I need for 5 cm resolution across a 4 m span?

At 5 cm pitch, you need 20 points per meter. Over 4 m, that’s about 80 sensing points. This grid can report occupied vs empty segments and approximate object length from contiguous “on” zones. This is the trade‑off between resolution and channel count in your budget. [Elektroda, Anonymous, post #21679883]

Do I need a PLC or can I use a microcontroller?

Either works. A PLC offers industrial I/O and 24 V compatibility. A microcontroller can be cheaper but may need multiplexing to handle many inputs. Plan enough channels for 80+ sensors, or shard inputs across small controllers and aggregate results. [Elektroda, Anonymous, post #21679883]

What outputs do typical industrial photoelectric sensors provide?

Expect transistor outputs, often open‑collector, suitable for easy interfacing to PLC or MCU inputs with a pull‑up. Power is commonly 24 VDC, so budget for a suitable supply sized to your sensor count. Verify NPN/PNP type before wiring. [Elektroda, Anonymous, post #21679892]

How do I avoid false triggers from ambient light or dirt?

Modulate the IR LED around 40 kHz and detect that carrier to ignore sunlight and lighting flicker. Keep optics shielded with tubes or shrouds, and align carefully. Clean lenses on a schedule if dust is present. “Often you will modulate the LED output at a certain frequency.” [Elektroda, Anonymous, post #21679885]

Could inductive loops work for metal objects in this setup?

Yes, but consider constraints. Sideways inductive loops detect metal presence within a couple of feet and act as yes/no sensors with lower spatial resolution than IR beams. They are useful for robust vehicle detection but not precise 5 cm mapping. [Elektroda, Anonymous, post #21679896]

Can I estimate object length if speed isn’t constant?

Yes. Use two spaced sensors to estimate speed from time‑of‑flight, then multiply the first sensor’s on‑time by speed to get length. With a 5 cm grid, you can also count contiguous hits to estimate length without speed if resolution suffices. [Elektroda, Anonymous, post #21679881]

What update delay is acceptable if I want to save money?

You stated a 1–15 second delay is fine. That allows slower polling or simpler processing, reducing cost. Choose hardware that can sustain your channel count while meeting this timing target for real‑time occupancy reporting. [Elektroda, Anonymous, post #21679880]

How should I brief vendors for a one‑sided reflective sensor?

Share the application constraints: 0.5–0.6 m standoff, one‑sided mounting, 5 cm spatial resolution, ambient‑light rejection, temperature range, and cost priority. “Tell them as much as you can about your application.” Ask for IR reflective sensors with 24 V supply and transistor outputs. [Elektroda, Anonymous, post #21679897]

How do I wire a basic multi‑sensor strip to read presence along a line?

  1. Provide a 24 VDC supply sized for all sensors.
  2. Wire each sensor’s open‑collector output to a PLC/MCU input with pull‑ups.
  3. Poll inputs, group contiguous ON segments, and report length and gaps. Write software to handle occasional false signals and alignment issues. [Elektroda, Anonymous, post #21679892]

Are safety light curtains a fit here?

Standard light curtains report only “field free” or “interrupted” and not position or size. Measuring light grids exist, but most safety units won’t give segment‑level length without extra logic. You also require one‑sided hardware, which rules many out. [Elektroda, Anonymous, post #21679887]

What temperature range should the components tolerate?

Design for about 23–122 °F based on the stated environment. Confirm each sensor’s datasheet meets or exceeds this range and derate the power supply accordingly. Enclosures may extend operating limits if needed. [Elektroda, Anonymous, post #21679880]

What edge cases can break one‑sided detection accuracy?

If the object’s distance from the sensor varies, reflected signal strength changes and effective resolution drops. Keep the path consistent and perpendicular to the sensing line. Angle of incidence can also cause false “no object” reads. [Elektroda, Anonymous, post #21679892]

Should I hire a consultant or DIY this build?

If you need results soon, hire an expert to accelerate selection, wiring, and software. “Based on the questions you are asking, it seems that you have some way to go.” Prototype with a few sensors first to validate detection. [Elektroda, Anonymous, post #21679897]
ADVERTISEMENT