AirGradient Forum

LED Bar colors not matching documentation

LED Bar colors not matching documentation · Issue #325 · airgradienthq/arduino

I just opened this issue in GitHub but wondered if anyone else is observing the LEDs being Orange when 3 LEDs are on, and red when 4 or 5 LEDs are on, when in CO2 mode.

On my I-9PSL running 3.3.7 I see the colours like they are in the pic you attached on the github issue.

1 Like

Thanks for checking.

It’s hard to get a good picture as changing the brightness of the camera can impact how it looks, but this represents what I’m seeing.

I ran the LED test on boot and I can’t quite compare the full red from the test to what I’m seeing at this concentration.

I did notice that the very center green LED appears to be out on my device, which I expect to make the center to be off of anything that involves mixing green, but since the entire bar looks more red than orange at this concentration, it shouldn’t factor in

I do see that on the commit CO2 led bar indicator sync fix · airgradienthq/arduino@a6b48ac
The set points were changed to match what the screenshot/support page shows, which could be partially the cause of seeing a darker color than Yellow, but this commit also address where Orange used to be skipped and it went from Yellow directly to Red.

But in the same file we also see that Orange is set to https://github.com/airgradienthq/arduino/blob/7049d21a410fcfbc6a6c336d83500a0f3cb9e1df/src/AgStateMachine.cpp#L15
#define RGB_COLOR_O 255, 40, 0 /** Orange */

This doesn’t appear to be Orange, but according to this site is “Ferrari Red”

True orange should be 100% Red, 50% Green, 0% Blue, (255,128,0) which would be

But this is nearly what Yellow is being classified as, currently at 255,150,0

Yellow is typically (255, 255, 0)

I have the same “issue” on my two I-9PSL (3.3.7). I was surprised to see the orange color appear after green initially, so I had to check the documentation again. But I thought it was a problem with the LEDs not being able to display colors accurately.