I attempted to make a dimmable LED control by touch screen interface. However, due to the limited equipment (I don’t have a touch screen laptop ☹), I have to demonstrate with the mouse.
Arduino code : Max patch :
The layout of the circuit and the connections to the Arduino are very simple, as shown below.
I used “spectroscope~” as a touch screen field to adjust the number that will send serial data to the Arduino, and, obviously, the diode LED’s brightness is depending on such number.
link : https://youtu.be/t0qUxdoR4yY