Commit 5b4bb9068dc83f2805406d57a4f4e38e41f068f9

Authored by qqqlab
Committed by GitHub
1 parent ea891e14

Update README.md

Showing 1 changed file with 5 additions and 3 deletions
README.md
... ... @@ -11,7 +11,7 @@ Examples for Arduino ATMEGA328 included:
11 11 Needs a DALI hardware interface such as Mikroe DALI click. Or use this very basic DALI interface design for your experiments.
12 12  
13 13 ```
14   -Micro- 5.6V ___
  14 +3-5V Micro- 5.6V ___
15 15 controller Zener +----|___|---- 12V Power Supply
16 16 ___ Diode | 220
17 17 RX ---+----|___|-----|>|---------+------------- DALI+
... ... @@ -27,7 +27,9 @@ NOTE: For this interface, reverse the polarity of TX in the code.
27 27  
28 28 ### Explanation of the circuit
29 29  
30   -The DALI bus needs to be powered with a 16V (9.5V to 22.5V) power supply, current limited to 250mA. In the circuit the 220 ohm resister is the current limiter (gives approx 50 mA with 12V power supply). Using a lower current allows us to use a common 100mA PNP transistor such as BC547. A logic low is -6.5V to 6.5V, a logic high is 9.5V to 22.5V. The zener diode takes removes the 6.5V offset, and the 10K/100K resistors together with the shunt diodes in the GPIO port protect the microcontroller from overcurrent & overvoltage.
  30 +TX pin: The DALI bus needs to be powered with a 16V (9.5V to 22.5V) power supply, current limited to 250mA. In the circuit the 220 ohm resister is the current limiter (gives approx 50 mA with 12V power supply). Using a lower current allows us to use a common general purpose 100mA PNP transistor such as BC547 or similar.
31 31  
32   -Each device on the bus should not draw more than 2mA, and the bus voltage should be at be around 10V for things to work. So every device on the bus will lower the supply voltage by 220 Ohm * 2mA = 0.5V, so this simple circuit should work with up to 4 devices on the bus.
  32 +RX pin: On the DALI bus a logic low is -6.5V to 6.5V, a logic high is 9.5V to 22.5V. The zener diode takes removes the 6.5V offset of the DALI signal. The 10K resistors together with the shunt diodes in the GPIO port protect the microcontroller from overcurrent & overvoltage. The 100K pull down resistor ensures that a low DALI bus state results in a low RX pin.
  33 +
  34 +DALI specifies that each device on the bus should not draw more than 2mA, and the minimum bus voltage is approx 10V. So every device on the bus will lower the supply voltage by 220 Ohm * 2mA = 0.5V, so this simple circuit with a 12V supply should work with up to 4 devices on the bus. If you want more devices, use a higher supply voltage and/or lower the 220 Ohm resistor value.
33 35  
... ...