# Nextion HMI + Arduino = 4 second delay

**URL:** https://forum.xod.io/t/nextion-hmi-arduino-4-second-delay/6219
**Category:** XOD Programming Questions
**Created:** [August 18, 2022, 12:15pm UTC](https://forum.xod.io/t/nextion-hmi-arduino-4-second-delay/6219 "2022-08-18T12:15:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mlaurin](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mlaurin](https://forum.xod.io/u/mlaurin)
#### Post date: [August 18, 2022, 12:15pm UTC](https://forum.xod.io/t/nextion-hmi-arduino-4-second-delay/6219/1 "2022-08-18T12:15:34Z")

</div>

I build a machine to be able to transfer material and stop when the correct weight is same as the one set on the HMI. Also some safety feature should stop the fan if you open the door ! BUT i have 4 second delay before the motor stop !!! I run this on a arduino NANO and also try on a esp32 same result !  
What i can do !

Thanks

---

<div class="post-metadata">

### Author: ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)
#### Post date: [August 19, 2022, 7:57am UTC](https://forum.xod.io/t/nextion-hmi-arduino-4-second-delay/6219/2 "2022-08-19T07:57:21Z")

</div>

Hi Michael and welcome to the forum!

Are you able to share your XOD patch/project and HMI?

---

<div class="post-metadata">

### Author: ![mlaurin](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mlaurin](https://forum.xod.io/u/mlaurin)
#### Post date: [August 22, 2022, 11:23am UTC](https://forum.xod.io/t/nextion-hmi-arduino-4-second-delay/6219/3 "2022-08-22T11:23:35Z")

</div>

Not sure if I can directly post it, but i can send it to you 🙂  
The nextion HMI working great but every action take to much time.  
I think is the code that was generated by XOD.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)
#### Post date: [September 21, 2022, 11:24am UTC](https://forum.xod.io/t/nextion-hmi-arduino-4-second-delay/6219/4 "2022-09-21T11:24:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
