Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsn_sr04t: Added options for AJ_SR04M sensor types #4022

Merged
merged 4 commits into from
Jul 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion components/sensor/jsn_sr04t.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ JSN-SR04T Waterproof Ultrasonic Range Finder
:image: jsn-sr04t-v3.jpg
:keywords: JSN-SR04T

This sensor allows you to use the JSN-SR04T Waterproof Ultrasonic Range Finder **in Mode 1 and 2**
This sensor allows you to use the JSN-SR04T and AJ_SR04M Waterproof Ultrasonic Range Finder **in Mode 1 and 2**
with ESPHome to measure distances. This sensor can measure
ranges between 25 centimeters and 600 centimeters with a resolution of 1 millimeter.

Expand All @@ -18,6 +18,12 @@ Configure the JSN-SR04T for mode 2:
- **V1.0 and V2.0**: Add a 120k resistor to pad R27.
- **V3.0**: Short pad M2 or add 120k resistor to pad mode.

Configure the AJ_SR04M for mode 1:
- Add a 120k resistor to pad R19.

Configure the AJ_SR04M for mode 2:
- Add a 47k resistor to pad R19.

.. figure:: images/jsn-sr04t-v3-mode-select-pads.jpg
:align: center
:width: 50.0%
Expand Down Expand Up @@ -55,6 +61,7 @@ Configuration variables:
sensor. Defaults to ``60s``. Not applicable in mode 1.
- **uart_id** (*Optional*, :ref:`config-id`): The ID of the :ref:`UART bus <uart>` you wish to use for this sensor.
Use this if you want to use multiple UART buses at once.
- **model** (*Optional*): Sensor model. Available options: ``jsn_sr04t`` (default) and ``aj_sr04t``.
- All other options from :ref:`Sensor <config-sensor>`.

See Also
Expand Down