Добавляем FreqMeter

This commit is contained in:
2022-10-07 14:02:45 +03:00
parent bc26f77e5c
commit 2fc6b0b59a
6 changed files with 626 additions and 60 deletions

View File

@@ -276,7 +276,58 @@
"num": 20
},
{
"name": "21. GY21 Температура",
"name": "21. Частотомер на ADC, Частота",
"type": "Reading",
"subtype": "FreqMeterF",
"id": "freq",
"widget": "anydataHtz",
"page": "Частотомер",
"descr": "Частота",
"plus": 0,
"multiply": 1,
"round": 1,
"pin-Esp32": 33,
"samples": 512,
"samplingFrequency": 5000,
"int": 5,
"num": 21
},
{
"name": "22. Частотомер на ADC, Процент Пульсации",
"type": "Reading",
"subtype": "FreqMeterPcFl",
"id": "pctFlicker",
"widget": "anydataPct",
"page": "Частотомер",
"descr": "Процент Пульсации",
"plus": 0,
"multiply": 1,
"round": 1,
"pin-Esp32": 33,
"samples": 512,
"samplingFrequency": 5000,
"int": 5,
"num": 22
},
{
"name": "23. Частотомер на ADC, Индекс Пульсации",
"type": "Reading",
"subtype": "FreqMeterFlIn",
"id": "flickerIndex",
"widget": "anydataDef",
"page": "Частотомер",
"descr": "Индекс Пульсации",
"plus": 0,
"multiply": 1,
"round": 10,
"pin-Esp32": 33,
"samples": 512,
"samplingFrequency": 5000,
"int": 5,
"num": 23
},
{
"name": "24. GY21 Температура",
"type": "Reading",
"subtype": "GY21t",
"id": "tmp4",
@@ -285,10 +336,10 @@
"descr": "Температура",
"round": 1,
"int": 15,
"num": 21
"num": 24
},
{
"name": "22. GY21 Влажность",
"name": "25. GY21 Влажность",
"type": "Reading",
"subtype": "GY21h",
"id": "Hum4",
@@ -297,10 +348,10 @@
"descr": "Влажность",
"round": 1,
"int": 15,
"num": 22
"num": 25
},
{
"name": "23. HDC1080 Температура",
"name": "26. HDC1080 Температура",
"type": "Reading",
"subtype": "Hdc1080t",
"id": "Temp1080",
@@ -310,10 +361,10 @@
"int": 15,
"addr": "0x40",
"round": 1,
"num": 23
"num": 26
},
{
"name": "24. HDC1080 Влажность",
"name": "27. HDC1080 Влажность",
"type": "Reading",
"subtype": "Hdc1080h",
"id": "Hum1080",
@@ -323,10 +374,10 @@
"int": 15,
"addr": "0x40",
"round": 1,
"num": 24
"num": 27
},
{
"name": "25. MAX6675 Температура",
"name": "28. MAX6675 Температура",
"type": "Reading",
"subtype": "Max6675t",
"id": "maxtmp",
@@ -337,71 +388,89 @@
"DO": 12,
"CS": 13,
"CLK": 14,
"num": 25
"num": 28
},
{
"name": "26. PZEM 004t Напряжение",
"name": "29. PZEM 004t Напряжение",
"type": "Reading",
"subtype": "Pzem004v",
"id": "v",
"widget": "anydataVlt",
"page": "Сенсоры",
"page": "PZEM",
"descr": "Напряжение",
"int": 15,
"addr": "0xF8",
"num": 26
"round": 1,
"num": 29
},
{
"name": "27. PZEM 004t Сила тока",
"name": "30. PZEM 004t Сила тока",
"type": "Reading",
"subtype": "Pzem004a",
"id": "a",
"widget": "anydataAmp",
"page": "Сенсоры",
"page": "PZEM",
"descr": "Сила тока",
"int": 15,
"addr": "0xF8",
"num": 27
"round": 1,
"num": 30
},
{
"name": "28. PZEM 004t Мощность",
"name": "31. PZEM 004t Мощность",
"type": "Reading",
"subtype": "Pzem004w",
"id": "w",
"widget": "anydataWt",
"page": "Сенсоры",
"page": "PZEM",
"descr": "Мощность",
"int": 15,
"addr": "0xF8",
"num": 28
"round": 1,
"num": 31
},
{
"name": "29. PZEM 004t Энергия",
"name": "32. PZEM 004t Энергия",
"type": "Reading",
"subtype": "Pzem004wh",
"id": "wh",
"widget": "anydataWth",
"page": "Сенсоры",
"page": "PZEM",
"descr": "Энергия",
"int": 15,
"addr": "0xF8",
"num": 29
"round": 1,
"num": 32
},
{
"name": "30. PZEM 004t Частота",
"name": "33. PZEM 004t Частота",
"type": "Reading",
"subtype": "Pzem004hz",
"id": "hz",
"widget": "anydataHtz",
"page": "Сенсоры",
"page": "PZEM",
"descr": "Частота",
"int": 15,
"addr": "0xF8",
"num": 30
"round": 1,
"num": 33
},
{
"name": "31. Сканер кнопок 433 MHz",
"num": 31,
"name": "34. PZEM 004t Косинус",
"type": "Reading",
"subtype": "Pzem004pf",
"id": "pf",
"widget": "anydata",
"page": "PZEM",
"descr": "Косинус F",
"int": 15,
"addr": "0xF8",
"round": 1,
"num": 34
},
{
"name": "35. Сканер кнопок 433 MHz",
"num": 35,
"type": "Reading",
"subtype": "RCswitch",
"id": "rsw",
@@ -410,7 +479,7 @@
"pinTx": 12
},
{
"name": "32. Sht20 Температура",
"name": "36. Sht20 Температура",
"type": "Reading",
"subtype": "Sht20t",
"id": "tmp2",
@@ -419,10 +488,10 @@
"descr": "Температура",
"int": 15,
"round": 1,
"num": 32
"num": 36
},
{
"name": "33. Sht20 Влажность",
"name": "37. Sht20 Влажность",
"type": "Reading",
"subtype": "Sht20h",
"id": "Hum2",
@@ -431,10 +500,10 @@
"descr": "Влажность",
"int": 15,
"round": 1,
"num": 33
"num": 37
},
{
"name": "34. Sht30 Температура",
"name": "38. Sht30 Температура",
"type": "Reading",
"subtype": "Sht30t",
"id": "tmp30",
@@ -443,10 +512,10 @@
"descr": "SHT30 Температура",
"int": 15,
"round": 1,
"num": 34
"num": 38
},
{
"name": "35. Sht30 Влажность",
"name": "39. Sht30 Влажность",
"type": "Reading",
"subtype": "Sht30h",
"id": "Hum30",
@@ -455,11 +524,11 @@
"descr": "SHT30 Влажность",
"int": 15,
"round": 1,
"num": 35
"num": 39
},
{
"name": "36. HC-SR04 Ультразвуковой дальномер",
"num": 36,
"name": "40. HC-SR04 Ультразвуковой дальномер",
"num": 40,
"type": "Reading",
"subtype": "Sonar",
"id": "sonar",
@@ -471,7 +540,7 @@
"int": 5
},
{
"name": "37. UART",
"name": "41. UART",
"type": "Reading",
"subtype": "UART",
"page": "",
@@ -481,13 +550,13 @@
"tx": 12,
"rx": 13,
"speed": 9600,
"num": 37
"num": 41
},
{
"header": "Исполнительные устройства"
},
{
"name": "38. Кнопка подключенная к пину",
"name": "42. Кнопка подключенная к пину",
"type": "Writing",
"subtype": "ButtonIn",
"id": "btn",
@@ -500,10 +569,10 @@
"pinMode": "INPUT",
"debounceDelay": 50,
"fixState": 0,
"num": 38
"num": 42
},
{
"name": "39. Управление пином",
"name": "43. Управление пином",
"type": "Writing",
"subtype": "ButtonOut",
"id": "btn",
@@ -513,10 +582,10 @@
"int": 0,
"inv": 0,
"pin": 2,
"num": 39
"num": 43
},
{
"name": "40. Сервопривод",
"name": "44. Сервопривод",
"type": "Writing",
"subtype": "IoTServo",
"id": "servo",
@@ -527,10 +596,10 @@
"pin": 12,
"apin": -1,
"amap": "0, 4096, 0, 180",
"num": 40
"num": 44
},
{
"name": "41. Расширитель портов Mcp23017",
"name": "45. Расширитель портов Mcp23017",
"type": "Reading",
"subtype": "Mcp23017",
"id": "Mcp",
@@ -540,10 +609,10 @@
"int": "0",
"addr": "0x20",
"index": 1,
"num": 41
"num": 45
},
{
"name": "42. MP3 плеер",
"name": "46. MP3 плеер",
"type": "Reading",
"subtype": "Mp3",
"id": "mp3",
@@ -553,10 +622,10 @@
"int": 1,
"pins": "14,12",
"volume": 20,
"num": 42
"num": 46
},
{
"name": "43. Расширитель портов Pcf8574",
"name": "47. Расширитель портов Pcf8574",
"type": "Reading",
"subtype": "Pcf8574",
"id": "Pcf",
@@ -566,10 +635,10 @@
"int": "0",
"addr": "0x20",
"index": 1,
"num": 43
"num": 47
},
{
"name": "44. PWM ESP8266",
"name": "48. PWM ESP8266",
"type": "Writing",
"subtype": "Pwm8266",
"id": "pwm",
@@ -581,10 +650,10 @@
"freq": 5000,
"val": 0,
"apin": -1,
"num": 44
"num": 48
},
{
"name": "45. Телеграм-Лайт",
"name": "49. Телеграм-Лайт",
"type": "Writing",
"subtype": "TelegramLT",
"id": "tg",
@@ -593,13 +662,13 @@
"descr": "",
"token": "",
"chatID": "",
"num": 45
"num": 49
},
{
"header": "Экраны"
},
{
"name": "46. LCD экран 2004",
"name": "50. LCD экран 2004",
"type": "Reading",
"subtype": "Lcd2004",
"id": "Lcd",
@@ -611,10 +680,10 @@
"size": "20,4",
"coord": "0,0",
"id2show": "id датчика",
"num": 46
"num": 50
},
{
"name": "47. LCD экран 1602",
"name": "51. LCD экран 1602",
"type": "Reading",
"subtype": "Lcd2004",
"id": "Lcd",
@@ -626,6 +695,6 @@
"size": "16,2",
"coord": "0,0",
"id2show": "id датчика",
"num": 47
"num": 51
}
]