Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay #34

Closed
hex-1 opened this issue Aug 3, 2021 · 1 comment
Closed

Delay #34

hex-1 opened this issue Aug 3, 2021 · 1 comment

Comments

@hex-1
Copy link

hex-1 commented Aug 3, 2021

I am using an ESP32 and a custom made PCB to covert an art-net signal to a 0-10v analogue signal for a dimmer rack however i am noticing some issues with delay. increasing the brightness of a fixture is delayed by approximately 4 seconds and decreasing the brightness is approximately 8 seconds.

During development i had it set so that i sent values via the serial monitor and that was instant so i know it isn't an issue with my circuitry or the way im interfacing with it.

i can also see that other devices on my network react instantly even over WIFI so i believe my transmission is fine.

This is my code https://pastebin.com/RdDEFgNu

Any help would be appreciated.
Thanks

@rstephan
Copy link
Owner

rstephan commented Aug 5, 2021

Hi,
I have tried your code and it's looking good, at least with my hardware setup (ESP32 and oscilloscope).
Your code is fine. To make the code more robust, add a bit rang-checking to length and offset in onDmxFrame.
I can't explain any delay from the code.
In most cases it is more likely a WiFi issue. Sometimes the ArtNet transmitter is quite demanding in terms of bandwidth. It can easily emit many 100 packets/s.

How do you make the analog voltage from the PWM output? RC-filter? Maybe the time-constant is a bit off?

Try my ArtnetWifiDebug example and check the transmitter output with the serial monitor output.

@rstephan rstephan closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants