RGB Ultrasonic Ranger(Ping): Difference between revisions

From Visuino
Jump to navigation Jump to search
Created page with "Image:TArduinoRGBUltrasonicPing.png == Summary == RGB ultrasonic ranger module (Ping) with integrated LEDs. Measures distance and provides visual feedback via left and right RGB LEDs, with analog and single digital output. == Description == The RGB Ultrasonic Ranger (Ping) detects distance using ultrasonic pulses on a single pin. It includes two RGB LEDs (left and right) for visual indication of distance or status, with adjustable brightness and initial color..."
 
No edit summary
 
Line 29: Line 29:
=== Input Pins ===
=== Input Pins ===
*'''Clock''' – Clock input for measurement timing.   
*'''Clock''' – Clock input for measurement timing.   
*'''Echo (digital)''' – Digital pin for ultrasonic pulse trigger and echo detection.
*'''LED Left In (color)''' – Input to control left RGB LED.   
*'''LED Left In (color)''' – Input to control left RGB LED.   
*'''LED Right In (color)''' – Input to control right RGB LED.   
*'''LED Right In (color)''' – Input to control right RGB LED.   

Latest revision as of 05:36, 6 September 2025

File:TArduinoRGBUltrasonicPing.png

Summary

RGB ultrasonic ranger module (Ping) with integrated LEDs. Measures distance and provides visual feedback via left and right RGB LEDs, with analog and single digital output.

Description

The RGB Ultrasonic Ranger (Ping) detects distance using ultrasonic pulses on a single pin. It includes two RGB LEDs (left and right) for visual indication of distance or status, with adjustable brightness and initial color values. The module supports configurable pause time, ping duration, timeout, and measurement units (cm, inches, or raw time). Outputs include analog distance, a single digital distance output, timeout signal, and ping trigger/echo.

Diagram:

Properties

  • LEDs – Integrated LEDs configuration:
 * Brightness – Overall LED brightness.  
 * Left – Left LED: Enabled (boolean), Initial Value (color).  
 * Right – Right LED: Enabled (boolean), Initial Value (color).  
  • Pause Time – Minimum pause between measurements (ms).
  • Ping Time – Duration of ultrasonic pulse (µs).
  • Timeout – Maximum wait time for echo (ms).
  • Timeout Value – Value returned when a timeout occurs.
  • Units – Measurement units: rdCm, rdInch, rdTime.

Pins

Input Pins

  • Clock – Clock input for measurement timing.
  • Echo (digital) – Digital pin for ultrasonic pulse trigger and echo detection.
  • LED Left In (color) – Input to control left RGB LED.
  • LED Right In (color) – Input to control right RGB LED.

Output Pins

  • Out (digital) – Single digital distance output pin connected to the board’s digital input.
  • Out (analog) – Analog distance output.
  • Timeout (digital) – Digital pin indicating timeout.
  • Ping (trigger) / Echo (digital) – Digital pin for ultrasonic pulse trigger and echo detection.

Categories