Close

Connecting 4D Systems LCD display to an Arduino

A project log for 4 Ch Dimmer with 4D Systems Touch LCD and Arduino

Turning an Arduino into a dimmer controller with a visual twist on 4D Systems LCD

jaques-lopes-schroederJaques Lopes Schroeder 07/12/2016 at 19:270 Comments

After dealing with this, all test and failure with the Triacs, figuring out how to connect a 4D Systems display was a piece of cake: add the library to your Arduino programming environment, add 2 lines to the setup part in arduino program, and a few other lines just to send / receive the events reported by the display. YES, it is so much easier to connect using its library, you just have to build your project as a VisiGenie, and in the forms, you have to use "ReportEvents", so the objects you have envisioned would be able to report any change without having to query the device on every cycle! Much simpler!

Now, programming the arduino...

Due to some tests I've made with the Triacs firing angle, hertz and specs of these triacs, I've learned that it will not fire the triac just in the first part of the crescent sine wave. The reason for that is simple, and is in the datasheet for the Triac: to sustain a propagation in the junctions of the Triac, you have to have at least 10 volts at the end of your trigger event. If you do the calculations, that would request at least 5 cycles of our 104us cycles to reach that voltage. So, if you're wondering, you'll lose some of your power of your dimmed lights, but not much.

Discussions