Hello everyone
I’m new here, and quite new to programming in general, so I’m sorry if I ask some obvious questions.
I will start by stating what I want to do:
I’m making an RGB led strip controller. This will have several pattern settings (that are mostly already programmed). It will use 3 different PWM pins, one for each led-color.
My program makes heavy use of the millis() function.
Most of the settings define both color and brightness of the leds.
Now, to my particular problem:
One of the settings is a bit more complicated. It defines only the amplitude by making calculations, but the color is defined by an external led controller that sends 3 PWM signals.
I would like my arduino controller to read the 3 PWM signals and use those as starting points to make said calculations.
Therefore, I am wondering if there is a way to read those 3 PWM signals as inputs, make some calculations based on them, and define 3 PWM outputs with those new numbers.
More detailed information (Why do I want to do this?):
I have a system that already has a led controller, which has very nice controls and is already built-in into the system. But said controller only has the ability to define resulting led color, always at maximum amplitude.
I want to add more options, while modifying the system as little as possible. It would also be very important that said controls didn’t have to be modified, and could still be used.
And if I wanted to, I could just take out my Arduino controller and leave the system as it was before, with minimal effort (unplugging/re-plugging just a few cables).
For this reason, I decided to have the Arduino controller directly connected to the led strip to be able to have as many patterns as I wanted. But I don’t want to remove/replace the previous controller (in case I want to take my Arduino out). And, in order to be able to use the existing color controls without modifying the existing controller, I would like to get the PWM signal said controller gives, and use it as an input.
I’m sorry if I wasn’t very clear, I’m not sure how to explain the details here ._.