Circuit Creation
An Arduino Uno project that reads analog sensor values from a pin and converts them into voltage for monitoring via Serial output.
/*
Led blinking project
Components:
- Arduino UNO
- Potentionmeter
- Breadboard
- Jumber wire
Author: Circuit Creation RN
*/
#define pin A0
float read_value;
float voltage;
void setup() {
Serial.begin(9600);
pinMode(pin, INPUT);
}
void loop() {
read_value = analogRead(pin);
voltage = (read_value * 5.0) / 1023.0;
Serial.println(voltage);
delay(1000);
}