Fastled ATTINY85 20U

HI
I have a problem with Attiny85 20U When I want to use fastled all my leds are WHITE (intens White)
If I use nano the prog is correct if i use ATTINY 20PU it 's correct Do you know this problem ??
Thank you

Which core are you using?

Post the code. Read the forum guidelines to see how to properly post code and some hints on how to get the most from this forum.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Post a schematic.

Post a photo of the wiring.

This sounds very much like a clock speed problem. Extending the HIGH times in the control pulses would presumably cause all bits to be read as "1", thus full white.

Hi i tried all the clock
This is i obtain

Envoyé de mon iPhone

| Paul_B
November 6 |

  • | - |

This sounds very much like a clock speed problem. Extending the HIGH times in the control pulses would presumably cause all bits to be read as "1", thus full white.

That is the most likely cause. Consider to tune it
It may of course be something with FastLED (which i don't support)
I know this library works on an ATtiny13 (and compiles on an 85 as well) Try that one if you like.

I also think this is a clock problem, and your assertion that you "tried all the clock" does not give me confidence.

In order to drive this type of led, the clock speed must be at least 8MHz. ATtiny85 default to 1MHz. In order to set the clock to 8MHz, you must select "8MHz internal clock" in the IDE menu and then select "burn bootloader" before you upload your sketch.

Ok thank you
Can you explain why it works with attiny85 PU ?

Envoyé de mon iPhone

| PaulRB
November 7 |

  • | - |

I also think this is a clock problem, and your assertion that you "tried all the clock" does not give me confidence.

In order to drive this type of led, the clock speed must be at least 8MHz. ATtiny85 default to 1MHz. In order to set the clock to 8MHz, you must select "8MHz internal clock" in the IDE menu and then select "burn bootloader" before you upload your sketch.

Ui did for the clock i’ll try for the boot

Envoyé de mon iPhone

Ok thank you
Can you explain why it works with attiny85 PU ?

Envoyé de mon iPhone

| PaulRB
November 7 |

  • | - |

I also think this is a clock problem, and your assertion that you "tried all the clock" does not give me confidence.

In order to drive this type of led, the clock speed must be at least 8MHz. ATtiny85 default to 1MHz. In order to set the clock to 8MHz, you must select "8MHz internal clock" in the IDE menu and then select "burn bootloader" before you upload your sketch.

Hello
Thank you it was the burn boot Thank you

Envoyé de mon iPhone

Ok thank you
Can you explain why it works with attiny85 PU ?

Envoyé de mon iPhone

| PaulRB
November 7 |

  • | - |

I also think this is a clock problem, and your assertion that you "tried all the clock" does not give me confidence.

In order to drive this type of led, the clock speed must be at least 8MHz. ATtiny85 default to 1MHz. In order to set the clock to 8MHz, you must select "8MHz internal clock" in the IDE menu and then select "burn bootloader" before you upload your sketch.

To my knowledge, all variants of Attiny default to 1MHz, so I guess you selected "8MHz internal clock" + "burn bootloader" with that other chip then later forgot you had done it?

Was the other chip on an digistump board? They normally have the digispark bootloader already burned, which runs at > 8MHz.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.