How to implement DAC output in Domoticz
Moderator: leecollings
How to implement DAC output in Domoticz
I use esp32 (D25 & D26 DAC pins) to generate analog signal for a specific project. I would like to use Domoticz to specify the voltage I would like to output then trigger esp32 to generate the signal. Is this feasible with Domoticz? Thank you.
- waltervl
- Posts: 5910
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: How to implement DAC output in Domoticz
You perhaps can use a setpoint device (normally for heating purposes so in Celcius/Fahrenheit) or use a selector switch to send prefixed values.
With a selector switch you should be able to send commands per prefix. With a setpoint device it will be more complex and you will need a script in domoticz to get the setpoint and send it to ESP.
How do you now send the command to the ESP? If you do not have a command yet then would be the first thing to find out.
With a selector switch you should be able to send commands per prefix. With a setpoint device it will be more complex and you will need a script in domoticz to get the setpoint and send it to ESP.
How do you now send the command to the ESP? If you do not have a command yet then would be the first thing to find out.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: How to implement DAC output in Domoticz
When you run Domoticz on a Raspberry Pi (either as a main or slave), you could use the SysFs hardware to read and set the GPIO pins.
This way you can send/or receive digital signals (3.3v same as esp32).
And/or you can use add-on boards that can handle different voltages/current and provide ADC capabilities and read/set these through SysFs.
A more software based route could be through the use of ‘Dummy’ hardware devices in Domoticz and use MQTT to have the esp32 board listen and react on certain device changes of these Dummy hardware devices.
This way you can send/or receive digital signals (3.3v same as esp32).
And/or you can use add-on boards that can handle different voltages/current and provide ADC capabilities and read/set these through SysFs.
A more software based route could be through the use of ‘Dummy’ hardware devices in Domoticz and use MQTT to have the esp32 board listen and react on certain device changes of these Dummy hardware devices.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
Re: How to implement DAC output in Domoticz
waltervl wrote: ↑Wednesday 02 February 2022 10:41 You perhaps can use a setpoint device (normally for heating purposes so in Celcius/Fahrenheit) or use a selector switch to send prefixed values.
With a selector switch you should be able to send commands per prefix. With a setpoint device it will be more complex and you will need a script in domoticz to get the setpoint and send it to ESP.
How do you now send the command to the ESP? If you do not have a command yet then would be the first thing to find out.
Thank you. I think the setpoint solution may work. I still need to figure out how to send the command to ESP
- waltervl
- Posts: 5910
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: How to implement DAC output in Domoticz
You perhaps can find inspiration with viewtopic.php?t=22894
Or use Tasmota https://tasmota.github.io/docs/ESP32/ with domoticz integration https://tasmota.github.io/docs/Domoticz/
Or use Tasmota https://tasmota.github.io/docs/ESP32/ with domoticz integration https://tasmota.github.io/docs/Domoticz/
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 5910
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: How to implement DAC output in Domoticz
Just for reference, in latest beta 2023.2 a general setpoint device is introduced viewtopic.php?p=307044#p307044
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest