# DALI input to dim strip brightness

**URL:** <https://forum.electromage.com/t/dali-input-to-dim-strip-brightness/3299>\
**Category:** Uncategorized\
**Created:** [November 26, 2023, 10:03am UTC](https://forum.electromage.com/t/dali-input-to-dim-strip-brightness/3299 "2023-11-26T10:03:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![to.rben](https://forum.electromage.com/letter_avatar_proxy/v4/letter/t/858c86/32.png) [@to.rben](https://forum.electromage.com/u/to.rben)\
**Post date:** [November 26, 2023, 10:03am UTC](https://forum.electromage.com/t/dali-input-to-dim-strip-brightness/3299/1 "2023-11-26T10:03:39Z")

</div>

Hi there, I would like to integrate Pixelblaze with a set of DALI-controlled lights. Generally I would like to control the brightness of the strips via the DALI signal.

I was wondering what would be the best way of doing this. One simple way that came to my mind would be to use a DALI to analog adapter module like this one and connect it to an analog input of the Pixelblaze (e.g. IO33 or IO34)::

> **[DALI RM8 1-10V AN - Lunatone](https://www.lunatone.com/en/product/dali-rm8-1-10v-an/)**
>
> conversion of DALI to 1-10V - analog & 8A relay

On the software side, would it be possible to use the analog input directly in the pattern code to control the brightness?

On the hardware side, we would probably need a voltage divider as described here:  
[https://electromage.com/docs/GPIO#adc](https://electromage.com/docs/GPIO#adc)

Am I generally missing sth or is there a more simple way of doing this?

Cheers and thanks!

---

<div class="post-metadata">

**Author:** ![zranger1](https://forum.electromage.com/user_avatar/forum.electromage.com/zranger1/32/301_2.png) [@zranger1](https://forum.electromage.com/u/zranger1)\
**Post date:** [November 27, 2023, 10:52pm UTC](https://forum.electromage.com/t/dali-input-to-dim-strip-brightness/3299/2 "2023-11-27T22:52:41Z")

</div>

Wow, DALI. I’ve only seen it used in large industrial buildings and things like this:

 ![Another monster $flex$ in Dubai!](https://forum.electromage.com/uploads/default/original/2X/7/78aada7ed952b9b483ab07d7585f1c461d131ef0.jpeg)  
Would like to hear more about what you’re building. It’s got to be interesting!

What you’ve proposed, using the 1-10v/relay device, with the voltage scaled from 0-1v for the Pixelblaze’s analog in, will work. In that case, you’ll have to add the analogRead()-\>brightness scaling code to every pattern you want to use.

I have nothing around that speaks DALI to test with, but if you’ve got a way to read DALI’s wire protocol with a Raspberry Pi or other computer of some sort (possibly using the code [here](https://github.com/sde1000/python-dali)?), you could use it with the Pixelblaze python client to send commands to your Pixelblaze over wifi.

This would let you control brightness for all patterns without code changes, and to get color temperature and color information from DALI too if you were so inclined.
