I have a problem with my project.
The project idea is to control 3 LED strips with 4 limit switches like this: Limit sw. 1 - door 1 (sliding to the left) Limit sw. 2 - door 2 (sliding to the right) Limit sw. 3 & 4 - door 3 (front door sliding to both sides)
and now i would like the led strips to be controled with PWM ( the electronics is not a problem i designed PCB board with all of the components including MOSFT's and the rest)
How i would like it to work :
when Limit sw. 1 will go HIGH led strip 1 will ramp up from 0 to 255 (lets say in 2s) when it will go LOW the LED strip will ramp down from 255 to 0 (lets say in 5s)
same for Limit Switch 2
difference will be in LED strip 3 because it will be controlled by 2 Limit switches so when the door will press 1 of them the ramp up sequence will start, also when it will be depressed the ramp down sequence will start.
i tried the coding but PWM is still a mistery to me.
can any one help please
PS. sorry for my english