int voltPin = A0;
float volt;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
//volt = 50*analogRead(voltPin)/1023;
volt = analogRead(voltPin);
Serial.println(volt);
delay(100);
}
I'm using an Arduino UNO, I have a circuit consisting of a 10Kohm pot with a 4.5v battery source (3 AA batteries in series). By using the voltage divider, I connect 2 resistors tapped to A0 pin.
I've attached an image of my connections via simulator.
Problem:
I haven't been able to get a consistent or accurate reading.
The values I get also seem to be cycling between 0 and 1023 in the form of a sine wave.
Objective:
I'm trying to use a digital potentiometer to cycle through a range of resistances to act as a load for a solar panel. I intend to trace the IV curve of the solar Panel using this.
Does this sound plausible at all?
Need some help, thanks!!!
Please do let me know if more information is needed!
Objective:
I'm trying to use a digital potentiometer to cycle through a range of resistances to act as a load for a solar panel. I intend to trace the IV curve of the solar Panel using this.
A digital pot will not have the power rating needed to even load a 1W panel.
Can you tell us your electronics, programming, Arduino, hardware experience?
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png of how you will connect the load and monitor current and voltage.?
The Arduino can do what you are asking, but power levels and voltage and current connections will have to be thought about.
What Voltage and power is/are the panels?
Here is a pretty serious version of what you are trying to do.
By the way digital pots are almost never used, they are only needed when handling delicate
analog signals that need attenuation, such as hifi audio. Most of the time if you think
you need a digipot, you actually need a DAC.
Objective:
I'm trying to use a digital potentiometer to cycle through a range of resistances to act as a load for a solar panel. I intend to trace the IV curve of the solar Panel using this.
The manufacturer's datasheet may already have this information.
MarkT:
By the way digital pots are almost never used, they are only needed when handling delicate
analog signals that need attenuation, such as hifi audio. Most of the time if you think
you need a digipot, you actually need a DAC.
In fairness to Okuside, this kind of thing is what a digipot would be useful for if it could handle the power. It was meant to be used as a variable resistance load, not just a divider outputting a voltage for some other subcircuit to reference.
The pot is being used as the PV load, the battery is simulating the PV.
But due to gnd problems will not work.
Also using fritzy instead of drawing a circuit of what he wants.