Repository navigation
PROBLEM DESCRIPTIONESP32 C3 Supermini with MOSFET module (PWM) swithces on randomly several times a daty (around 4-5 times). I have a rotary enconder KY040 connected, with a pull down resistor - 10k - used for the SW (press button). The KY040 seem to have pull down resistors in the module already for the OutputA and OutputB pins, so I just added a pull down resistor to the SW pin. This is another case of Ghost switching but cannot make why, even adding pull-down resistors to the SW channel on the rotary encoder. The light keeps switching on. Using the latest development pre-built binary. REQUESTED INFORMATION
13:26:14.832 MQT: stat/tasmota_FB3B78/RESULT = {"NAME":"ESP32C3","GPIO":[1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1],"FLAG":0,"BASE":1}
13:26:15.058 MQT: stat/tasmota_FB3B78/RESULT = {"Module":{"1":"ESP32C3"}}
13:26:15.310 MQT: stat/tasmota_FB3B78/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"416":"PWM1"},"GPIO2":{"3296":"Rotary B1"},"GPIO3":{"3264":"Rotary A1"},"GPIO4":{"32":"Button1"},"GPIO5":{"0":"None"},"GPIO6":{"0":"None"},"GPIO7":{"0":"None"},"GPIO8":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO11":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"0":"None"},"GPIO18":{"0":"None"},"GPIO19":{"0":"None"},"GPIO20":{"0":"None"},"GPIO21":{"0":"None"}}
13:27:11.763 MQT: stat/tasmota_FB3B78/RESULT = {"Rule1":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
13:27:11.992 MQT: stat/tasmota_FB3B78/RESULT = {"Rule2":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
13:27:12.243 MQT: stat/tasmota_FB3B78/RESULT = {"Rule3":{"State":"OFF","Once":"OFF","StopOnError":"OFF","Length":0,"Free":511,"Rules":""}}
13:27:41.231 MQT: stat/tasmota_FB3B78/STATUS = {"Status":{"Module":1,"DeviceName":"libreria","FriendlyName":["libreria"],"Topic":"tasmota_FB3B78","ButtonTopic":"","Power":0,"PowerOnState":3,"LedState":0,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":1,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
13:27:41.239 MQT: stat/tasmota_FB3B78/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"https://ota.tasmota.com/tasmota32/tasmota32c3.bin","RestartReason":"Software reset digital core","Uptime":"0T00:59:17","StartupUTC":"2024-01-30T11:28:24","Sleep":50,"CfgHolder":4617,"BootCount":81,"BCResetTime":"2023-12-16T01:39:06","SaveCount":861}}
13:27:41.248 MQT: stat/tasmota_FB3B78/STATUS2 = {"StatusFWR":{"Version":"13.3.0.4(tasmota32)","BuildDateTime":"2024-01-29T16:21:31","Core":"2_0_14","SDK":"4.4.6.240105","CpuFrequency":160,"Hardware":"ESP32-C3 v0.4","CR":"397/699"}}
13:27:41.255 MQT: stat/tasmota_FB3B78/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":4,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["SSB_IoT",""],"TelePeriod":300,"Resolution":"55C180C0","SetOption":["8000A02B","2805C80001000600003C5A0A192800000000","00008088","00006200","00004000","00000000"]}}
13:27:41.269 MQT: stat/tasmota_FB3B78/STATUS4 = {"StatusMEM":{"ProgramSize":1877,"Free":1002,"Heap":167,"StackLowMark":4,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"164020","FlashFrequency":80,"FlashMode":"DIO","Features":["0809","9F9AD7DF","0015A001","B7F7BFCF","05DA9BC4","E0360DC7","080840D2","20200000","D4BC482D","810A80B1","00000001"],"Drivers":"1,2,!3,4,!5,7,!8,9,10,11,12,!14,!16,!17,20,!21,!24,26,!27,29,!34,!35,38,50,52,!59,!60,62,!63,!66,!67,!68,!71,!86,!87,!88","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,98,103,105,109,127","I2CDriver":"7,8,9,10,11,12,13,14,15,17,18,20,24,29,31,36,41,42,44,46,48,58,62,65,69,76,77,82"}}
13:27:41.280 MQT: stat/tasmota_FB3B78/STATUS5 = {"StatusNET":{"Hostname":"tasmota-FB3B78-7032","IPAddress":"192.168.254.80","Gateway":"192.168.254.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.254.1","DNSServer2":"0.0.0.0","Mac":"40:4C:CA:FB:3B:78","IP6Global":"fd43:5867:2a7c::424c:caff:fefb:3b78","IP6Local":"fe80::424c:caff:fefb:3b78%st1","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":19.0}}
13:27:41.289 MQT: stat/tasmota_FB3B78/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.254.1","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_FB3B78","MqttUser":"mqtt","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
13:27:41.295 MQT: stat/tasmota_FB3B78/STATUS7 = {"StatusTIM":{"UTC":"2024-01-30T12:27:41Z","Local":"2024-01-30T13:27:41","StartDST":"2024-03-31T02:00:00","EndDST":"2024-10-27T03:00:00","Timezone":"+01:00","Sunrise":"08:23","Sunset":"17:42"}}
13:27:41.302 MQT: stat/tasmota_FB3B78/STATUS10 = {"StatusSNS":{"Time":"2024-01-30T13:27:41"}}
13:27:41.306 BRY: GC from 8867 to 4660 bytes, objects freed 14/42 (in 0 ms) - slots from 50/137 to 46/137
13:27:41.312 MQT: stat/tasmota_FB3B78/STATUS11 = {"StatusSTS":{"Time":"2024-01-30T13:27:41","Uptime":"0T00:59:17","UptimeSec":3557,"Heap":165,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":4,"Objects":42},"POWER":"OFF","Dimmer":100,"Fade":"ON","Speed":2,"LedTable":"ON","Wifi":{"AP":1,"SSId":"SSB_IoT","BSSId":"9C:9D:7E:53:7D:E2","Channel":1,"Mode":"11n","RSSI":82,"Signal":-59,"LinkCount":1,"Downtime":"0T00:00:04"}}}
13:09:39.386 WIF: Checking connection...
13:09:43.396 SRC: Light
13:09:43.481 MQT: stat/tasmota_FB3B78/RESULT = {"POWER":"ON","Dimmer":100}
13:09:46.247 CFG: Saved, Count 860, Bytes 4096
13:09:59.397 WIF: Checking connection...
TO REPRODUCEWait a couple of hours, the light will switch on automatically (ghost switching) EXPECTED BEHAVIOURNo ghost switching :) SCREENSHOTSADDITIONAL CONTEXTI don't understand what the SRC: Light means. If noisy SW line from KY040 encoder, then you should have a different source. Maybe this is related to the pinout used for the encoder on the ESP32? (Please, remember to close the issue when the problem has been addressed) |
Replies: 1 comment
|
Take it easy on the cross posting. Also dealt with here: You probably need to fix your wiring. |
Take it easy on the cross posting. Also dealt with here:
https://discord.com/channels/479389167382691863/490244847568158751/1201875875281518652
You probably need to fix your wiring.