user43245: I have an RGB LED strip which I want to control with my arduino uno, everything works fine, except for the green LEDs.
They cannot be dimmed to less than 50%, because they will simply turn off.
I have this test code in my setup:
Serial.write("dimming green test started");
for(int x = 255; x > 0; x--) {
    analogWrite(greenPin,x);
    Serial.write(" - g:");
    Serial.print(x);
    delay(6);
  }
  Serial.println();
  Serial.write("dimming green test done");
  Serial.println();

And the green LEDs are fully turned on in the beginning, and at about 127, the just turn off. All the other colors are perfectly dimmable.
I checked the energy usage, and green does only use a little more than the other colors, so that's not the problem.
Are green LEDs not dimmable? Or is this just an optical effect?
(I use a setup very similar to this one with one difference: but only use 5V, because my LED strip only needs 5V) 

user2881: analogWrite only works on pins that support PWM. Those are the pins with the ~ next to it.
On no-PWM pins, analogWrite will set the pin to LOW, for all values lower than 128, and HIGH for all the higher values. Which is what you are experiencing.

43245: <p>I have an RGB LED strip which I want to control with my arduino uno, everything works fine, except for the green LEDs.
They cannot be dimmed to less than 50%, because they will simply turn off.</p>

<p>I have this test code in my setup:</p>

<pre><code>Serial.write("dimming green test started");
for(int x = 255; x &gt; 0; x--) {
    analogWrite(greenPin,x);
    Serial.write(" - g:");
    Serial.print(x);
    delay(6);
  }
  Serial.println();
  Serial.write("dimming green test done");
  Serial.println();
</code></pre>

<p>And the green LEDs are fully turned on in the beginning, and at about 127, the just turn off. All the other colors are perfectly dimmable.
I checked the energy usage, and green does only use a little more than the other colors, so that's not the problem.</p>

<p><strong>Are green LEDs not dimmable? Or is this just an optical effect?</strong></p>

<p>(I use a setup very similar to this one with one difference: but only use 5V, because my LED strip only needs 5V) <a href="https://i.stack.imgur.com/hyYPg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hyYPg.png" alt="setup"></a></p>
 2881: <p><code>analogWrite</code> only works on pins that support PWM. Those are the pins with the <code>~</code> next to it.</p>

<p>On no-PWM pins, analogWrite will set the pin to LOW, for all values lower than 128, and HIGH for all the higher values. Which is what you are experiencing.</p>
