From ebce34f049893af6cbaba9c86ae60ad347c22d92 Mon Sep 17 00:00:00 2001 From: lt <1370582156@qq.com> Date: Thu, 26 Sep 2024 17:54:29 +0800 Subject: [PATCH] addde the files of nl50 nad nlcs11 sensor --- docs/sensors/sensors/rus_04.md | 4 +- .../sensors/temperature_sensor_nl50.md | 67 ++++++++++++ .../temperature_sensor_nl50/nl50_example.zip | Bin 0 -> 1938 bytes .../smart_modules/color_recognition_nlcs11.md | 100 ++++++++++++++++++ .../nlcs11_example.zip | Bin 0 -> 2742 bytes mkdocs.yml | 2 + 6 files changed, 171 insertions(+), 2 deletions(-) create mode 100644 docs/sensors/sensors/temperature_sensor_nl50.md create mode 100644 docs/sensors/sensors/temperature_sensor_nl50/nl50_example.zip create mode 100644 docs/sensors/smart_modules/color_recognition_nlcs11.md create mode 100644 docs/sensors/smart_modules/color_recognition_nlcs11/nlcs11_example.zip diff --git a/docs/sensors/sensors/rus_04.md b/docs/sensors/sensors/rus_04.md index 6235bae..7986e07 100644 --- a/docs/sensors/sensors/rus_04.md +++ b/docs/sensors/sensors/rus_04.md @@ -35,10 +35,10 @@ ## 模块结构图 -### RUS-04(蓝色款)尺寸图 +### RUS-04(蓝色款)和HC-04(普通款)尺寸图 ​ ![RGB](rus_04/rus_04_blue_cad.png) -### RUS-04(蓝色款)尺寸图 +### RUS-04(黑色款、蓝色款)尺寸图 ![RUS-04](rus_04/rus_04_cad.png) diff --git a/docs/sensors/sensors/temperature_sensor_nl50.md b/docs/sensors/sensors/temperature_sensor_nl50.md new file mode 100644 index 0000000..45591a1 --- /dev/null +++ b/docs/sensors/sensors/temperature_sensor_nl50.md @@ -0,0 +1,67 @@ +# NL50温度传感器 + +## 实物图 + + + + + + + +## 概述 + +NL50是由我司自主研发的温度传感器,该温度传感器是利用二极管的基本原理来测量已知温度值。随着温度的升高,二极管俩端的电压的已知的速率增加.通过精确放大电压变化,产生与环境温度成正比的电压信号,从而获取相应的温度值。 + +因此NL50传感器具有精确度高,连接方式简单等优点。 + + + +## 模块参数 + +| 引脚名称 | 描述 | +| :------: | :------------------: | +| G | GND | +| V | VCC | +| S | DATA串行数据,单总线 | + +- 供电电压:3v3/5V +- 连接方式:4PIN防反接杜邦线 +- 模块尺寸:40 x 22.5 mm +- 安装方式:M4螺钉兼容乐高插孔固定 + + + +## Arduino示例程序 + +```c +/** + * @example read_temperature.ino + */ + +#include "temperature_sensor_nl50.h" + +namespace { +#if defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_ARCH_ESP32S3) +constexpr uint8_t kPin = 34; +#elif defined(ARDUINO_ARCH_AVR) +constexpr uint8_t kPin = A0; +#endif + +emakefun::TemperatureSensorNl50 g_nl50(kPin); +} // namespace + +void setup() { + Serial.begin(115200); + Serial.println(String(F("temperature sensor NL50 lib version: ")) + emakefun::TemperatureSensorNl50::Version()); + g_nl50.Initialize(); + Serial.println(F("setup successful")); +} + +void loop() { + Serial.println(String("temperature: ") + g_nl50.Read()); + delay(100); +} + +``` + +[点击下载Arduino库以及示例程序](temperature_sensor_nl50/nl50_example.zip) \ No newline at end of file diff --git a/docs/sensors/sensors/temperature_sensor_nl50/nl50_example.zip b/docs/sensors/sensors/temperature_sensor_nl50/nl50_example.zip new file mode 100644 index 0000000000000000000000000000000000000000..a1976b0b119cb2d167cc25627e262c70aaa6283f GIT binary patch literal 1938 zcmWIWW@Zs#00AC9t4J^dO7H^dyc|=5_|%HT+=84`{Q#&^4u;ry?2!lDEf4rJGBA`d zF)%2iD=kV*Oo=Z^%`HeRN-QZYO4ZBE%Ws_&n|;VYr0xA@ZN9H+r3tJ3B&HrbWjDiM z&X(ERRktnIo3TvQ^Jwm``_sb;jm*l$i_XpdY|~zGSFcg;&Vx45sSW`rHXTU_T$r>h z?8f6wTX^LZW%Yss(>cz0T3*yBT`8pLR`>p_qRS?x(xX8w{?rT*dsHUuWSE3{^u8G7Q8S| zocVE%fX)rB&rxg#Pj3&oW97S6NGIC(mdahjn~W85GNPQ3(`}f0m#tfo-O890GNvyx*h61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