77Views7Replies

# what is the value that obtained from serial monitor in arduino?? ?

I working with my DIY sensor ( colour sensor) and i have no idea what the reading i obtained from the serial monitor in arduino software ? Anyone know? and how to change the value to voltage value? as i need to write down the voltage reading for my result part.

## Discussions

Best Answer 2 years ago

The analogue to digital converter (adc) will change an analogue value (voltage) into a digital number.

Depending on how many bits are involved it will split the max value up by that number of bits

So if you max value is 5 volts and your measuring it to 8 bit accuracy that means the 5 volts will be split into 255 (8 binary bits) sections each equal to 5/255 volts. simple maths will give you the value you need once you know how many bits your ADC uses.

Answer 2 years ago

thankyou sir, do you know the way to connect my value to Visual Basic? i need to interface VB with arduino :)

Answer 2 years ago

Never written for it, but IIRC, you open a "file" to the "file" COM1 or whatever.

2 years ago

Looking at your numbers

Voltage = number received * 5/4095 where the 5 is the reference voltage to the ADC and 4095 is the number of bits in your number

Which arduino are you using ? The basic one had an output that would only go 0..1024

Answer 2 years ago

the number received ... every time the number gt three readings which are Red , Blue and Green. which number should i take ?

Answer 2 years ago

All of them ! The colour is encoded in the return from all three channels.

Red volts= red number*5/4095 etc

Answer 2 years ago

thank you very much . helped me alot :)