Here is a video example on what I'm trying to replicate. The board in the video below is not an arduino, but a vendor in the modeling realm that sells light and sound effects boards. I'm still working on sound on mine, so please disregard.
https://drive.google.com/file/d/1zL7UC3TW6K288FIcT6GeJQ_JAqz_On09/view?usp=sharing
So what it amounts to is 3 steps using pwm and analogwrite of the Arduino nano. Step 1 - Build up the color red from 0 to a setting that isn't fully on for a duration of time via analogwrite on a pin. Step 2 - turn off the red LED and turn on the white LED for a duration of time at full brightness. Step 3 - Turn off the White LED, turn the red LED back at the level it was at the end of Step 1, and slowly dim to 0. This all has to be powered by the external power supply and not the arduino itself, and using 2 bicolor LEDs with a common cathode.
If I use separate LEDs for the colors, it works perfectly. Please note, the time has been extended hence why it's slow.
https://drive.google.com/file/d/1Lknv_ripjVziDopjy3Z4LCtX-39KRkvz/view?usp=sharing
When I rewire it up to use the bi-color LED, this is the effect. Both LEDs come on. For this example, it's a blue/amber 5mm bicolor LED. Kinda the same but different.
https://drive.google.com/file/d/1nuxUaUS6J3lxUS_jM_xr6Tf-Dw7c-a2g/view?usp=sharing
This is the LED I am using. https://www.unique-leds.com/leds/bi-color-led/5mm-bi-color-red-white-led-common-cathode/
As you can see, both colors are on at the same time or so it appears. Here is the circuit diagram on what I'm trying to accomplish. Be gentle, I'm a bit new at designing and putting together my own circuits.
I'm positive it's the common cathode on the drain side of either mosfet that it causing this. I just don't know how to wire up the mosfet drain side so that either of them act independently and don't power both anodes of the same LED at the same time.
https://drive.google.com/file/d/1zL7UC3TW6K288FIcT6GeJQ_JAqz_On09/view?usp=sharing
So what it amounts to is 3 steps using pwm and analogwrite of the Arduino nano. Step 1 - Build up the color red from 0 to a setting that isn't fully on for a duration of time via analogwrite on a pin. Step 2 - turn off the red LED and turn on the white LED for a duration of time at full brightness. Step 3 - Turn off the White LED, turn the red LED back at the level it was at the end of Step 1, and slowly dim to 0. This all has to be powered by the external power supply and not the arduino itself, and using 2 bicolor LEDs with a common cathode.
If I use separate LEDs for the colors, it works perfectly. Please note, the time has been extended hence why it's slow.
https://drive.google.com/file/d/1Lknv_ripjVziDopjy3Z4LCtX-39KRkvz/view?usp=sharing
When I rewire it up to use the bi-color LED, this is the effect. Both LEDs come on. For this example, it's a blue/amber 5mm bicolor LED. Kinda the same but different.
https://drive.google.com/file/d/1nuxUaUS6J3lxUS_jM_xr6Tf-Dw7c-a2g/view?usp=sharing
This is the LED I am using. https://www.unique-leds.com/leds/bi-color-led/5mm-bi-color-red-white-led-common-cathode/
As you can see, both colors are on at the same time or so it appears. Here is the circuit diagram on what I'm trying to accomplish. Be gentle, I'm a bit new at designing and putting together my own circuits.
I'm positive it's the common cathode on the drain side of either mosfet that it causing this. I just don't know how to wire up the mosfet drain side so that either of them act independently and don't power both anodes of the same LED at the same time.