Question about FastLED compatibility with Arduino 1.8.5 windows store ide

I have been lightly developing using Aurduino 1.6.8 using FastLED library on my old PC, everything works fine there.

I picked up a new windows PC and downloaded the Arduino 1.8.5 from the windows store and now my LEDs are behaving erratically, its the same sketch same librarys, only diff is the version of the IDE.

any idea why this would be happening?

any idea why this would be happening?

Well what ever it is it is not your new computer. This is because once it has been programmed the Arduino is in control and the computer has nothing to do with anything.

Unless that is you are using your computer as a power supply, and you are drawing too much current from your USB socket to light the LEDs, and this is upsetting your new computer, where as your old one could supply perhaps more that the official current for a USB.

How much current are your LEDs drawing and how have you wired them up?

I am not sure how much current the led's are using, it cant be much thou there are only 16 rgb leds in the strip.

if i load the sketch from my old computer using 1.6.8 it works fine plugged into either computer. the sketch is just randomly assigning colors and brightness to the leds

if i load the sketch from my new computer using 1.8.5 the leds go into a hyper flicker in a whiteish purple color. when its loaded from this ide it beahaves this way connected to any power supply i have.

I guess what i am asking does the newer 1.8.5 windows store ide compile the sketch differently than the older 1.6.8?

thank you

I am not sure how much current the led's are using, it cant be much thou there are only 16 rgb leds in the strip.

So what makes you think that it can't be "that much"?

An RGB LED is 3 LEDs in one. Normally an LED will take 20mA, so 16 RGB LEDs is the same as 48 LEDs and at 20mA that is a total of 0.96A.

A USB connector will provide a maximum of 0.5A so this load is too much for powering off a USB connector.

I guess what i am asking does the newer 1.8.5 windows store ide compile the sketch differently than the older 1.6.8?

It might do but not in any way that will explain your problem.

Load your sketch into the Arduino using your old computer. Then plug it into your new computer. Don't download any sketch it will run the one it has. It should work (or not work ) the same as if you uploaded the sketch from your new computer.

I just assumed that led's dont use much, i literally only have a few hours in with Arduino. started messing with it 2 years ago and lost interest, picked it back up yesterday.

So i loaded the sketch back up from the old computer using 1.6.8 to the nano here is a video of it, it works the same plugged into either computer https://drive.google.com/file/d/1QOeqekZn2ZVtj-gaZNaIDJAWEV0X35RD/view?usp=sharing

this second video is the exact same sketch loaded from my new computer using 1.8.5

https://drive.google.com/file/d/143ZnGcON1AmCJmLij9HiRqihgAaaF6Sr/view?usp=sharing

it does this full flashing plugged into either computer, i even tried it on a usb charger that does 2.1 amp Still does the white flashing

i literally only have a few hours in with Arduino.

So stop disagreeing with someone who has been doing it for years. What ever you think is happening is not.

Write a simple deterministic program that is meant to do the same thing each time it is run. If you get different results from that then post your code and the schematic.

not sure why you think i am disagreeing with you, i went back and tested it like you asked, and i still got the same results.

now i write a very basic sketch that will blink the first led red.

when i compile and upload this sketch from my old computer using 1.6.8 it works as expected

when i compile and upload this sketch from my new computer using 1.8.5 from the windows store. all 16 leds blink white, in the exact same way is they do when i upload my other sketch.

basicledsurface.ino (561 Bytes)

So install 1.8.5 on your old system, what happens then?

x1lightning:
I picked up a new windows PC and downloaded the Arduino 1.8.5 from the windows store and now my LEDs are behaving erratically, its the same sketch same librarys, only diff is the version of the IDE.

Don’t use Windows Store app.

Download and install the EXE.

I un installed the windows store app, restarted the PC, then installed the fresh 1.8.5 exe and still get the same issue.

is there a driver or something else i need to install?

Can you post your code so we can all try it please.

Please read this:- How to use this forum It will tell you the rules about posting code here.

#include <SPI.h>
#include "FastLED.h"
// How many leds are connected?
#define NUM_LEDS 16

// Define the Pins
#define DATA_PIN 2


// Define the array of leds
CRGB leds[NUM_LEDS];

void setup() {
 // put your setup code here, to run once:

FastLED.addLeds<NEOPIXEL,DATA_PIN>(leds, NUM_LEDS);
}

void loop() {
       // Turn the first led red for 1 second
     leds[0] = CRGB::Red; 
     FastLED.show();
     delay(1000);
     
     // Set the first led back to black for 1 second
     leds[0] = CRGB::Black;
     FastLED.show();
     delay(1000);

}

Sigh! You didn't read that link did you?

I have run that code on my Arduino Uno and it does what is expected, that is it blinks red the first LED. It was compiled in IDE 1.8.5. The only difference is that I am using a Mac. So I am forced to concede that it looks like something in Windows is screwing you up, however it wouldn't be a first would it?

Hi,
Load the old version of the IDE on your new computer, you can have both versions on the same computer.

Try it with one then the other.

Tom… :slight_smile: