Hi!
I am using this code in the arduino ide with a ESP32 and it works .
'==============================
const int Analog_channel_pin= 15;
float ADC_VALUE = 0;
float voltage_value = 0;
void setup()
{
Serial.begin(115200);
}
void loop()
{
ADC_VALUE = analogRead(Analog_channel_pin);
Serial.print(" ADC VALUE = ");
Serial.println(ADC_VALUE);
delay(1000);
voltage_value = (ADC_VALUE * 3.3 ) / (4095);
//voltage_value = (ADC_VALUE / 205 );
Serial.print("Voltage = ");
Serial.print(voltage_value);
Serial.print("volts");
delay(1000);
}
'======================
Maybe a dumb question, but can it be used as inlne C in B4r.
I have searched and not found anything.
Can anyone tell me if it's possible? and point me in the right direction.
Thanks Dave.
I am using this code in the arduino ide with a ESP32 and it works .
'==============================
const int Analog_channel_pin= 15;
float ADC_VALUE = 0;
float voltage_value = 0;
void setup()
{
Serial.begin(115200);
}
void loop()
{
ADC_VALUE = analogRead(Analog_channel_pin);
Serial.print(" ADC VALUE = ");
Serial.println(ADC_VALUE);
delay(1000);
voltage_value = (ADC_VALUE * 3.3 ) / (4095);
//voltage_value = (ADC_VALUE / 205 );
Serial.print("Voltage = ");
Serial.print(voltage_value);
Serial.print("volts");
delay(1000);
}
'======================
Maybe a dumb question, but can it be used as inlne C in B4r.
I have searched and not found anything.
Can anyone tell me if it's possible? and point me in the right direction.
Thanks Dave.