Gabriel-LG / Ambioder

Reprogram Ikea's Dioder, to interface with Boblight for Ambient Lighting
10 stars 2 forks source link

How to ask for data? #1

Open piranna opened 9 years ago

piranna commented 9 years ago

The current implementation only allow to set the Dioder led values by using a GND and TX wire, but how could be added a RX wire? This would allow to ask for the current values of the LEDs and the buttons, and maybe also control the unused pins for other tasks (PWM sound?)

Gabriel-LG commented 9 years ago

Hi Jesús,

The current source code already contains both rx and tx. These can be mapped to any pin you like. The reasons I left it out: a) I did not have the need to read out the current color b) When TX functionality is added, the UART and PWM speed have to be decreased. c) Adding the TX signal requires an extra wire or the loss of the red channel.

The uart_tx.asm file is currently not built and may need fixing (I only used it shortly at the beginning of the project). I would suggest working in the "maintainable" branch and lowering the UART baud rate to 4800 baud; The master branch contains a few nasty optimizations in order to double the PWM frequency while hard realtime is still guaranteed.

Good luck.

Kind regards, Lambertus PS. If you plan to modify a recent version of dioder, you will find that it uses a cheaper Chinese microcontroller. Ambioder will never work on these...

On Tue, Aug 4, 2015 at 5:27 PM, Jesús Leganés Combarro < notifications@github.com> wrote:

The current implementation only allow to set the Dioder led values by using a GND and TX wire, but how could be added a RX wire? This would allow to ask for the current values of the LEDs and the buttons, and maybe also control the unused pins for other tasks (PWM sound?)

— Reply to this email directly or view it on GitHub https://github.com/Gabriel-LG/Ambioder/issues/1.