<commit_before># DISTANCE SENSOR

[Distance Sensor] with **ArduinoUno**, perfect for cars. With LCD screen, LED, buzzer and pause button.
![alt tag][img/circuits_io.jpg]

 

--------------------------------------------------------------------------------
## OUTPUTS & INPUTS
This distance sensor allows 3 different outputs and 1 input:
- **OUTPUTS**:
    - **LCD Screen**: Shows "Distance: XXXcm" and "Range: X" (or "PAUSED"), with both contrast and backlight regulators (by two potenciometers)
    - **LED**: Flashes, faster as the distance is smaller
    - **Buzzer**: Beeps, faster as the distances is smaller
- **INPUTS**:
    - **Button**: Pause/Resume Button

 

 

--------------------------------------------------------------------------------
## CONFIGURATION
### Distance Ranges and Beep periods (distanceSensor.ino):
```c
const int rangesSize = 4;
const short int ranges[rangesSize]    = {10, 30, 100, 200};  // cm<commit_msg>Added reference to circuits.io in first line<commit_after># DISTANCE SENSOR

[Distance Sensor] with **ArduinoUno**, perfect for cars. With LCD screen, LED, buzzer and pause button. Check real time emulation in [circuits.io].
![alt tag][img/circuits_io.jpg]

 

--------------------------------------------------------------------------------
## OUTPUTS & INPUTS
This distance sensor allows 3 different outputs and 1 input:
- **OUTPUTS**:
    - **LCD Screen**: Shows "Distance: XXXcm" and "Range: X" (or "PAUSED"), with both contrast and backlight regulators (by two potenciometers)
    - **LED**: Flashes, faster as the distance is smaller
    - **Buzzer**: Beeps, faster as the distances is smaller
- **INPUTS**:
    - **Button**: Pause/Resume Button

 

 

--------------------------------------------------------------------------------
## CONFIGURATION
### Distance Ranges and Beep periods (distanceSensor.ino):
```c
const int rangesSize = 4;
const short int ranges[rangesSize]    = {10, 30, 100, 200};  // cm
{'fraction_non_alphanumeric': 0.2721681189133778, 'fraction_numerical': 0.013326499231163505, 'mean_word_length': 2.040498442367601, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7497339', 'n_tokens_mistral': 571, 'n_tokens_neox': 512, 'n_words': 197}