Uneven RGB Rainbow
Posted: Mon Feb 26, 2018 12:01 pm
Hello.
I am trying to make a simple RGB rainbow in Flowcode V5, using the built-in LED RGB and a loop which slowly increases each color from 1 to 255 and make a TICK after each time.
The simulation works perfectly but when I try it out for real, it flickers and looks horrible, almost like it can't make the fine adjustments required for a smooth transition. I am using the PIC16F628A chip.
I have looked for solutions for several days now but I can't seem to get anything to work. the PIC is connected directly to the RGB LED with 330 Ohm resisters in between.
I have included the Flowcode file. It is also worth mentioning that I have access to the following PICs, if they would work better: 16F628, 16F676, 16F688, 16F84, 18F13K50, 16F88, 16F648A and 18F4550.
If anyone could tell me what I am doing wrong, I would be very grateful.
I am trying to make a simple RGB rainbow in Flowcode V5, using the built-in LED RGB and a loop which slowly increases each color from 1 to 255 and make a TICK after each time.
The simulation works perfectly but when I try it out for real, it flickers and looks horrible, almost like it can't make the fine adjustments required for a smooth transition. I am using the PIC16F628A chip.
I have looked for solutions for several days now but I can't seem to get anything to work. the PIC is connected directly to the RGB LED with 330 Ohm resisters in between.
I have included the Flowcode file. It is also worth mentioning that I have access to the following PICs, if they would work better: 16F628, 16F676, 16F688, 16F84, 18F13K50, 16F88, 16F648A and 18F4550.
If anyone could tell me what I am doing wrong, I would be very grateful.