Hi,
I use GPIO interrupt & GP timer to create an algorithm to drive a triac by calculating the phase to produce a firing impulse. This works well.
However the application uses MQTT/WiFi connection to exchange data with an external application. When there is such communication (incoming and outgoing messages) the phase control is disturbed for while, until the communication is ongoing.
How to prevent this? Is it possible to be prevented? May be GP timer is used in Wifi module? Someone experienced such behavior?
Regards, Ivan
GP TIMER and WiFi/MQTT modules?
-
- Posts: 56
- Joined: Sat Jan 18, 2025 2:31 pm
Re: GP TIMER and WiFi/MQTT modules?
You can run the TRIAC control on Core 1 and Wi-Fi on Core 0:
Code: Select all
xTaskCreatePinnedToCore(mqtt_task, "MQTT", 4096, NULL, 1, NULL, 0);
xTaskCreatePinnedToCore(triac_task, "TRIAC", 4096, NULL, 2, NULL, 1);
-
- Posts: 2045
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Who is online
Users browsing this forum: No registered users and 94 guests