Hello every one I have a question here. Can we control minimum voltage to maximum voltage using arduino?
Sure, I can use an Arduino to control minimum and maximum voltage. I do not know of your coding and electronic skills to give you an honest answer to weather you can do it. What I suggest is that you give it a try and your own success or failure will let you know if you can do it.
#include <FastLED.h>
#define LED_PIN 7
#define NUM_LEDS 20
const int DUTY = 64;
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
for (int i = 0; i <= 19; i++) {
leds[i] = CRGB ( 0, 0, 255);
FastLED.show();
delay(40);
}
for (int i = 19; i >= 0; i--) {
leds[i] = CRGB ( 255, 0, 0);
FastLED.show();
delay(40);
}
}
LED_BRIGHTNESS:1:10: fatal error: FastLED.h: No such file or directory
#include <FastLED.h>
^~~~~~~~~~~
compilation terminated.
exit status 1
FastLED.h: No such file or directory
Can anyone rectify this error
did you install the fast led library? Did you try the example code?
The posted code does not show the Arduino being used as a voltage controller.
What this problem has to do with your initial question?
here is some instructions that I am not sue if you will be able to follow, with me being unfamiliar with your ability to follow instructions, that you may find helpful on installing fastled.
Thanks, I tried this library still I'm getting this error.
LED_BRIGHTNESS:1:10: fatal error: FastLEDHub.h: No such file or directory
#include <FastLEDHub.h>
^~~~~~~~~~~~~~
compilation terminated.
exit status 1
FastLEDHub.h: No such file or directory
So you need to install the FastLEDHub.h
library too.
Please read and TRY TO UNDERSTAND the error messages yourself.
Did you install the library?
Did you install the library to Arduino/libraries/FastLEDHub-master/FastLEDHub-master? The library should be in Arduino/libraries/FastLEDHub.
I am sure you did not follow this instruction
C:\Users\DELL\Documents\Arduino\libraries\FastLEDHub\FastLEDHub
LED_BRIGHTNESS:1:10: fatal error: FastLEDHub.h: No such file or directory
#include <FastLEDHub.h>
^~~~~~~~~~~~~~
compilation terminated.
exit status 1
FastLEDHub.h: No such file or directory
I have send library path and error
#include <FastLEDHub.h>
#define LED_PIN 7
#define NUM_LEDS 20
const int DUTY = 64;
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
for (int i = 0; i <= 19; i++) {
leds[i] = CRGB ( 0, 0, 255);
FastLED.show();
delay(40);
}
for (int i = 19; i >= 0; i--) {
leds[i] = CRGB ( 255, 0, 0);
FastLED.show();
delay(40);
}
}
Why not put the library into
C:\Users\DELL\Documents\Arduino\libraries\FastLEDHub\ where it belongs?
do you see the difference between
C:\Users\DELL\Documents\Arduino\libraries\FastLEDHub\FastLEDHub
and
C:\Users\DELL\Documents\Arduino\libraries\FastLEDHub
?
And also can you chek the code again?
Why did you created TWO directories
enclosed one in another?
I did not create 2 directories. I am trying to let the OP know they created 2 directories but the OP keeps missing the clue.