Add support for ME007-ULS

Add support for ME007-ULS narrow FoV ultrasonic distance sensor by Mathias Buder (#17376)
This commit is contained in:
Theo Arends 2022-12-14 12:18:49 +01:00
parent fc8039d960
commit 1ad8b7713e
9 changed files with 32 additions and 21 deletions

View File

@ -219,6 +219,7 @@ Note: `minimal` variant is not listed as it shouldn't be used outside of the [up
| USE_IR_REMOTE_FULL | - | - / - | - | - | x | - | Enable ALL protocols | USE_IR_REMOTE_FULL | - | - / - | - | - | x | - | Enable ALL protocols
| | | | | | | | | | | | | | | |
| USE_SR04 | - | - / - | - | x | - | - | | USE_SR04 | - | - / - | - | x | - | - |
| USE_ME007 | - | - / - | - | - | - | - |
| USE_DYP | - | - / - | - | - | - | - | | USE_DYP | - | - / - | - | - | - | - |
| USE_TM1638 | - | - / x | - | x | - | - | | USE_TM1638 | - | - / x | - | x | - | - |
| USE_HX711 | - | - / x | - | x | - | - | | USE_HX711 | - | - / x | - | x | - | - |

View File

@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
- Serial Modbus transmit enable GPIOs to all modbus energy drivers and modbus bridge (#17247) - Serial Modbus transmit enable GPIOs to all modbus energy drivers and modbus bridge (#17247)
- Berry crypto module, with AES_GCM by default and EC_CC25519 optional - Berry crypto module, with AES_GCM by default and EC_CC25519 optional
- IPv6 support for Ethernet (ESP32) - IPv6 support for Ethernet (ESP32)
- Support for ME007-ULS narrow FoV ultrasonic distance sensor by Mathias Buder (#17376)
### Breaking Changed ### Breaking Changed

View File

@ -111,7 +111,7 @@ In addition to @arendst the following code is mainly owned by:
| xsns_20_novasds | Norbert Richter | xsns_20_novasds | Norbert Richter
| xsns_21_sgp30 | Gerhard Mutz | xsns_21_sgp30 | Gerhard Mutz
| xsns_22_sr04 | Nuno Ferreira, @arendst | xsns_22_sr04 | Nuno Ferreira, @arendst
| xsns_23 | | xsns_23_me007 | Mathias Buder
| xsns_24_si1145 | | xsns_24_si1145 |
| xsns_25 | | xsns_25 |
| xsns_26_lm75ad | Andre Thomas | xsns_26_lm75ad | Andre Thomas

View File

@ -127,6 +127,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo
- Support for BP1658CJ RGBCW led bulbs like Orein OS0100411267 by Cossid [#17011](https://github.com/arendst/Tasmota/issues/17011) - Support for BP1658CJ RGBCW led bulbs like Orein OS0100411267 by Cossid [#17011](https://github.com/arendst/Tasmota/issues/17011)
- Support for Dingtian x595 shift register based relay boards by Barbudor [#17032](https://github.com/arendst/Tasmota/issues/17032) - Support for Dingtian x595 shift register based relay boards by Barbudor [#17032](https://github.com/arendst/Tasmota/issues/17032)
- Support for HMC5883L 3-Axis Digital Compass sensor by Andreas Achtzehn [#17069](https://github.com/arendst/Tasmota/issues/17069) - Support for HMC5883L 3-Axis Digital Compass sensor by Andreas Achtzehn [#17069](https://github.com/arendst/Tasmota/issues/17069)
- Support for ME007-ULS narrow FoV ultrasonic distance sensor by Mathias Buder [#17376](https://github.com/arendst/Tasmota/issues/17376)
- WS2812 and Light ArtNet DMX control over UDP port 6454 [#17059](https://github.com/arendst/Tasmota/issues/17059) - WS2812 and Light ArtNet DMX control over UDP port 6454 [#17059](https://github.com/arendst/Tasmota/issues/17059)
- Teleinfo TEMPO (BBR) contract [#17160](https://github.com/arendst/Tasmota/issues/17160) - Teleinfo TEMPO (BBR) contract [#17160](https://github.com/arendst/Tasmota/issues/17160)
- Serial Modbus transmit enable GPIOs to all modbus energy drivers and modbus bridge [#17247](https://github.com/arendst/Tasmota/issues/17247) - Serial Modbus transmit enable GPIOs to all modbus energy drivers and modbus bridge [#17247](https://github.com/arendst/Tasmota/issues/17247)

View File

@ -177,6 +177,7 @@
#define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+0k7 code) #define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+0k7 code)
#define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor #define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor
#define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code) #define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code)
//#define USE_ME007 // Add support for ME007 ultrasonic devices (+1k5 code)
//#define USE_DYP // Add support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) //#define USE_DYP // Add support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code)
#define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+2k code) #define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+2k code)
//#define USE_MODBUS_BRIDGE // Add support for software Modbus Bridge (+3k code) //#define USE_MODBUS_BRIDGE // Add support for software Modbus Bridge (+3k code)
@ -449,6 +450,7 @@
#undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor #undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor
#undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor #undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor
#undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code) #undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code)
#undef USE_ME007 // Disable support for ME007 ultrasonic devices (+1k5 code)
#undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) #undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code)
#undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge #undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge
#undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code) #undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code)
@ -580,6 +582,7 @@
#undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor #undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor
#undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor #undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor
#undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code) #undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code)
#undef USE_ME007 // Disable support for ME007 ultrasonic devices (+1k5 code)
#undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) #undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code)
#undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge #undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge
#undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code) #undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code)
@ -728,6 +731,7 @@
#undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor #undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor
#undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor #undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor
#undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code) #undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code)
#undef USE_ME007 // Disable support for ME007 ultrasonic devices (+1k5 code)
#undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) #undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code)
#undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge #undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge
#undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code) #undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code)
@ -882,6 +886,7 @@
#undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor #undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor
#undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor #undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor
#undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code) #undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code)
#undef USE_ME007 // Disable support for ME007 ultrasonic devices (+1k5 code)
#undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) #undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code)
#undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge #undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge
#undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code) #undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code)

View File

@ -113,6 +113,7 @@
#undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor #undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor
#undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor #undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor
#undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code) #undef USE_SR04 // Disable support for HC-SR04 ultrasonic devices (+1k code)
#undef USE_ME007 // Disable support for ME007 ultrasonic devices (+1k5 code)
#undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) #undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code)
#undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge #undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge
#undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code) #undef USE_MODBUS_BRIDGE // Disable support for software Modbus Bridge (+3k code)
@ -445,6 +446,7 @@
//#define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+0k7 code) //#define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+0k7 code)
//#define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor //#define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor
//#define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code) //#define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code)
//#define USE_ME007 // Add support for ME007 ultrasonic devices (+1k5 code)
//#define USE_DYP // Add support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) //#define USE_DYP // Add support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code)
#define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+2k code) #define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+2k code)
//#define USE_MODBUS_BRIDGE // Add support for software Modbus Bridge (+3k code) //#define USE_MODBUS_BRIDGE // Add support for software Modbus Bridge (+3k code)
@ -665,6 +667,7 @@
#define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+0k7 code) #define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+0k7 code)
#define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor #define USE_HPMA // Add support for Honeywell HPMA115S0 particle concentration sensor
#define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code) #define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code)
//#define USE_ME007 // Add support for ME007 ultrasonic devices (+1k5 code)
//#define USE_DYP // Add support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) //#define USE_DYP // Add support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code)
#define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+2k code) #define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+2k code)
#define USE_MODBUS_BRIDGE // Add support for software Modbus Bridge (+3k code) #define USE_MODBUS_BRIDGE // Add support for software Modbus Bridge (+3k code)

View File

@ -915,8 +915,8 @@
#define D_SENSOR_CM11_TX "CM110x - TX" #define D_SENSOR_CM11_TX "CM110x - TX"
#define D_SENSOR_CM11_RX "CM110x - RX" #define D_SENSOR_CM11_RX "CM110x - RX"
#define D_SENSOR_FLOWRATEMETER "Portata" #define D_SENSOR_FLOWRATEMETER "Portata"
#define D_SENSOR_ME007_TRIG "ME007 Tri" #define D_SENSOR_ME007_TRIG "ME007 - Tri"
#define D_SENSOR_ME007_RX "ME007 Rx" #define D_SENSOR_ME007_RX "ME007 - RX"
// Units // Units
#define D_UNIT_AMPERE "A" #define D_UNIT_AMPERE "A"

View File

@ -438,12 +438,12 @@ void me007_read_value( void )
me007_data_s.error_cnt_current_u8, me007_data_s.error_cnt_current_u8,
me007_data_s.error_cnt_total_u16 ); me007_data_s.error_cnt_total_u16 );
#ifdef ME007_ENABLE_MEDIAN_FILTER
/* Add small delay between measurement */ /* Add small delay between measurement */
if ( ( ME007_MEDIAN_FILTER_SIZE - 1U ) > idx_u8 ) if ( ( ME007_MEDIAN_FILTER_SIZE - 1U ) > idx_u8 )
{ {
delay( ME007_MEDIAN_FILTER_MEASURE_DELAY ); delay( ME007_MEDIAN_FILTER_MEASURE_DELAY );
} }
#ifdef ME007_ENABLE_MEDIAN_FILTER
} }
/* Sort median filter buffer and assign median value to current distance measurement */ /* Sort median filter buffer and assign median value to current distance measurement */