From 81a81f135ba3d07e0b2cdaf0623213c61256c795 Mon Sep 17 00:00:00 2001 From: qqqlab <46283638+qqqlab@users.noreply.github.com> Date: Sat, 14 Nov 2020 03:36:48 +0100 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 79d367c..736e3f1 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# DALI-arduino +# DALI Lighting Interface DALI LED Lighting Interface. Control LED Drivers with a microcontroller. -The code in qqqDali.cpp and qqqDali.h does not depend on Arduino, can be used in any C++ project by copying qqqDali_ATMega328.h and adding hardware specific code for a periodic interrupt and pin change interrupt. +The code in qqqDali.cpp and qqqDali.h does not depend on Arduino, can be used in any C++ project by writing hardware specific hooks for a periodic interrupt. -Examples for Arduino ATMEGA328 included: +Examples included: - Dimmer: Dims all lamps up and down - Commissioning: Assign short addresses to lamps - Monitor: Monitor DALI bus data @@ -25,7 +25,7 @@ GND ---+--------------------------+------------- DALI- ``` NOTE: For this interface, reverse the polarity of TX in the code. -### Explanation of the circuit +### Explanation of the DIY circuit 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. -- libgit2 0.21.4