Please be gentle with me as I am not familiar with Arduino but I have a project in mind and would like to use this as a reason to learn it.
So before I start I'd like to know if it's possible for one Arduino to perform all these functions, or maybe it would need two and I set the priority between them on the output stage.... or maybe there is a better controller to learn for this job?
The project is to control an LED spot light on so it can be a light sensitive DRL, but can switch to being a spot light or a variable output ramping alert "flasher".
1. I would like to use the PWM output via a FET to set three brightness levels low - Med - Full.
2. Read a light sensor to automatically switch between low and medium brightness (which will be as a day/night DRL setting).
3. Read a momentary switch (SPST) and if pressed override the above and go to full brightness (spot light mode)
4. Read a second momentary switch and if pressed override all above and perform a ramped brightness "flash" a set number of times and then revert back to previous state.
I'm guessing maybe have function 1-3 on one Arduino with function 4 on a separate one that overrides at the FET stage.
Any advice?
Many thanks, Rich.
So before I start I'd like to know if it's possible for one Arduino to perform all these functions, or maybe it would need two and I set the priority between them on the output stage.... or maybe there is a better controller to learn for this job?
The project is to control an LED spot light on so it can be a light sensitive DRL, but can switch to being a spot light or a variable output ramping alert "flasher".
1. I would like to use the PWM output via a FET to set three brightness levels low - Med - Full.
2. Read a light sensor to automatically switch between low and medium brightness (which will be as a day/night DRL setting).
3. Read a momentary switch (SPST) and if pressed override the above and go to full brightness (spot light mode)
4. Read a second momentary switch and if pressed override all above and perform a ramped brightness "flash" a set number of times and then revert back to previous state.
I'm guessing maybe have function 1-3 on one Arduino with function 4 on a separate one that overrides at the FET stage.
Any advice?
Many thanks, Rich.