hi guys
i tried to power a transistor with a pwm pin but when i try to measure the voltage
that it provides with another analog pin i get a lot of zeros on the serial monitor! :
void loop() {
for(int i=0; i<255;i = i+1){
analogWrite(pwm,i);
vbb[i]= analogRead(Rb) ;
delay(100);
Serial.println(vbb[i]);
}
my question is could the analogRead measure the pwm output as analog data or its not possible ?
could i power a transistor with this pwm and would it recognize it as a variable voltage or not ?