# Dig quad with tm1814 losing data

**URL:** <https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568>\
**Category:** Issues\
**Created:** [February 23, 2023, 11:00pm UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568 "2023-02-23T23:00:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chad](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/chad/32/4517_2.png) [@Chad](https://wled.discourse.group/u/Chad)\
**Post date:** [February 23, 2023, 11:00pm UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568/1 "2023-02-23T23:00:29Z")

</div>

I have two implementations of a dig quad with tm1814 running WLED 0.14.0-b1. One implementation has 4 segments with a mix of length and AWG wire while the other is a bench setup to diagnose problems. The bench setup is 12 inches from power to the dig quad and 12 inches to a 18 inch strip using 16 awg wire throughout. In both setups, the LEDs briefly go into demo mode/lose data/flash red periodically. This happens when on or “off”. The 4 segment strip seems to affect all segments at the same time which makes me believe this is a software issue and not a wiring issue. I have a similar issue with the bench setup with just the one segment. I’d like to start troubleshooting this and looking for some direction. The problem has been present while running both 0.13.3 and 0.14-b1. Anecdotally, 0.14-b1 seems worse.

---

<div class="post-metadata">

**Author:** ![Chad](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/chad/32/4517_2.png) [@Chad](https://wled.discourse.group/u/Chad)\
**Post date:** [March 3, 2023, 5:43am UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568/2 "2023-03-03T05:43:48Z")

</div>

So maybe some more information to help track this down. 0.14-b1 was crashing on both setups which explains the frequency increase. I’ve reverted back to 0.13.3 and have noticed that the first “pixel” (6 LEDs on the 24v tm1814) is unaffected when “off” but the rest of the segment is. So, when the segment flashes red (presume to be demo mode), LED “0” or pixel 0 remains off while the rest of the strip flashes red.

---

<div class="post-metadata">

**Author:** ![Chad](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/chad/32/4517_2.png) [@Chad](https://wled.discourse.group/u/Chad)\
**Post date:** [March 9, 2023, 6:14am UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568/3 "2023-03-09T06:14:29Z")

</div>

OK, compiled 0.14.0-b2, (March 8), with WLED\_DEBUG and right near the last entry the TM1814 strip goes into demo mode for sub 1 sec and returns. I have a SK6812 as segment 1, GPIO 16, and the TM1814 as segment 2 on GPIO 4. There is nothing on GPIO 3 and 1 so that I can debug over serial. I don’t see anything in the logs that would provide a hint on the root cause but hoping someone else does. Only the TM1814 strip has an issue but then again, they behave differently when they “lose” the data line.

```auto
---DEBUG INFO---
Runtime: 18488109
Unix time: 1678340616,142
Free heap: 201240
Wifi state: 3
State time: 0
NTP last sync: 4398
Client IP: 192.168.100.158
Loops/sec: 1782
UM time[ms]: 0/1
Strip time[ms]: 0/7
Segments: 1 -> 72B
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Local time: 05:44
---DEBUG INFO---
Runtime: 18518122
Unix time: 1678340646,155
Free heap: 201240
Wifi state: 3
State time: 0
NTP last sync: 4398
Client IP: 192.168.100.158
Loops/sec: 1776
UM time[ms]: 0/1
Strip time[ms]: 0/10
Segments: 1 -> 72B
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
---DEBUG INFO---
Runtime: 18548135
Unix time: 1678340676,168
Free heap: 201240
Wifi state: 3
State time: 0
NTP last sync: 4398
Client IP: 192.168.100.158
Loops/sec: 1776
UM time[ms]: 0/1
Strip time[ms]: 0/3
Segments: 1 -> 72B
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Local time: 05:45
---DEBUG INFO---
Runtime: 18578148
Unix time: 1678340706,181
Free heap: 201240
Wifi state: 3
State time: 0
NTP last sync: 4398
Client IP: 192.168.100.158
Loops/sec: 1781
UM time[ms]: 0/1
Strip time[ms]: 0/1
Segments: 1 -> 72B
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
---DEBUG INFO---
Runtime: 18608161
Unix time: 1678340736,194
Free heap: 201240
Wifi state: 3
State time: 0
NTP last sync: 4398
Client IP: 192.168.100.158
Loops/sec: 1782
UM time[ms]: 0/1
Strip time[ms]: 0/45
Segments: 1 -> 72B
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Not-Found HTTP call:
URI: /presets.json
FileRead: /presets.json
JSON buffer locked. (17)
JSON buffer size: 2088 for request: 3
JSON buffer released. (17)
Local time: 05:46
---DEBUG INFO---
Runtime: 18638174
Unix time: 1678340766,207
Free heap: 201240
Wifi state: 3
State time: 0
NTP last sync: 4398
Client IP: 192.168.100.158
Loops/sec: 1783
UM time[ms]: 0/1
Strip time[ms]: 0/2
Segments: 1 -> 72B
Modes: 4*187=748B
Data: 4*187=748B
Map: 2*0=0B

```

---

<div class="post-metadata">

**Author:** ![ttsquared](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/ttsquared/32/5855_2.png) [@ttsquared](https://wled.discourse.group/u/ttsquared)\
**Post date:** [September 30, 2023, 1:21pm UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568/4 "2023-09-30T13:21:03Z")

</div>

Chad -  
I think I am seeing the same thing. Curious, have you found a fix? If not, are you running Home Assistant? If so, this may be the issue.

> <https://github.com/home-assistant/core/issues/90676>
>
> \### The problem
> 
> The Wled integration in HA is causing lag every ~10s on my wl…ed ruinning on esp32c3 (tested on esp32s3 and same problem). This is very notticeable when using ledfx. 
> 
> Disableing Wled integration and reboot HA system (it seems not completely off otherwise) and lag disappear.
> 
> Wled 0.14.b19 but problem already present on 0.13
> 
> \### What version of Home Assistant Core has the issue?
> 
> core-2023.3.6
> 
> \### What was the last working version of Home Assistant Core?
> 
> \_No response\_
> 
> \### What type of installation are you running?
> 
> Home Assistant OS
> 
> \### Integration causing the issue
> 
> Wled
> 
> \### Link to integration documentation on our website
> 
> https://www.home-assistant.io/integrations/wled/
> 
> \### Diagnostics information
> 
> \_No response\_
> 
> \### Example YAML snippet
> 
> \_No response\_
> 
> \### Anything in the logs that might be useful for us?
> 
> \_No response\_
> 
> \### Additional information
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [September 30, 2023, 7:31pm UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568/5 "2023-09-30T19:31:49Z")

</div>

Might also be worth an update to 14.0-b5(6?) as there were a number of communications issues handled in the interim.

Unfortunately HA has caused issues with ‘over polling’ WLED (trying not to finger-poinr).

---

<div class="post-metadata">

**Author:** ![ttsquared](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/ttsquared/32/5855_2.png) [@ttsquared](https://wled.discourse.group/u/ttsquared)\
**Post date:** [October 2, 2023, 8:20pm UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568/6 "2023-10-02T20:20:37Z")

</div>

@divsys I am running 14.0-b6 currently, and it seemed to have the same issue at 14.0-b5 as well. I don’t recall exactly what version I originally noticed this with, but it was certainly 14 something, but it didn’t seem to change with any of the updates provided on that front.

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [October 2, 2023, 8:27pm UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568/7 "2023-10-02T20:27:20Z")

</div>

Not a long term solution, but what happens if you “disconnect” HA from the process (either disable HA connection to WLED or drop WLED off the WiFi net so it’s unreachable)?

There is some HA support available from the writers of HA, but it tends to be more problematic than what we’re used to from WLED. I have run HA myself, but most was Sunrise/Sunset on-off via Node-red interfacing. Since the Time/Date Macro stuff was introduced, my WLED setups have been largely standalone.

---

<div class="post-metadata">

**Author:** ![ttsquared](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/ttsquared/32/5855_2.png) [@ttsquared](https://wled.discourse.group/u/ttsquared)\
**Post date:** [October 4, 2023, 7:32pm UTC](https://wled.discourse.group/t/dig-quad-with-tm1814-losing-data/7568/8 "2023-10-04T19:32:33Z")

</div>

When I disable/disconnect from HA, the problem seems to resolve itself. Clearly there is some issue here in how HA polls WLED for information, and due to the type of LED connected - it goes into a data loss mode and begins to flash the lights. I posted on the WLED integration for HA github and hopefully they will help rectify this issue.
