Hi,
I am just getting back to this project. Thank you for your reply. I am actually using a neopixel programmable led strip but I am still a little fuzzy on how to make it work. I am using a simple voltage divider to measure the voltage from my two sources. See the code below.
/*********************************************
*
- Arduino DC Voltmeter
*********************************************/
float vPow = 4.7;
float r1 = 100000;
float r2 = 10000;
void setup() {
Serial.begin(9600);
}
void loop() {
float v = (analogRead(0) * vPow) / 1024.0;
float v2 = v / (r2 / (r1 + r2));
float v3 = (analogRead(1) * vPow) / 1024.0;
float v4 = v3 / (r2 / (r1 + r2));
Serial.print(v2);
Serial.print(",");
Serial.println(v4);
delay(1000);
}
I am looking to incorporate the LED strip to show the difference in voltage between the two sources.
Thanks