I am still quite new to arduino so I was hoping to get some help.
I have a code connected to RGB led which switches between 3 colours (yellow, orange and red). However, the transition is not smooth enough and because it is a loop it starts again. How I could have a smoother transition and make it fade out completely when it reaches red?
to fade out.
I don't know why, but when I put blue to control greenPin it eliminates blue colour, which is what I need to produce yellow, orange and red.
So you need more steps between them.
The easiest way to do it - add the loop, that will slowly increment or decrement color value from starting color to the desired one.
Welcome and thanks for using code tags in your first post.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project See About the Installation & Troubleshooting category.