Voltmeter question
Posted: Thu Jun 23, 2011 10:53 pm
He guys,
its been a while busy with school and work but I started a new project to learn more about electronic components such as op amps and other stuff.
I'm planning to make a micro controlled power supply.
I started with a simple voltage meter from 0-5V and it works great. the only wired thing is that it never actually measures 5.04 volt its always 4.992V I thinks that its has something to do with the reference voltage.
anyway,
I have made a setup that takes the 12V supply from the EB006 board into an pot. meter to regulate from 0 to 12V (for simulation only) and by a resistor divider network scale this down to an 0 to 5V level. so 0V represents 0V and 5V represents 12V. this working greet. I have also used a low pass filter to eliminate noise so the reading wont jump all over the place.
In my program I read the ADC as a voltage or floating point number.
Therefrom do some calculations and have the corresponding voltage. that works fine but this reading is not constant it jumps ad the last two digits fast resolutions is 0.000V or 00.00V depends on how many volts. What I think that I need to do is sample the incoming data take the average of that and this hopefully will have a stable reading.
The only problem I have is that in the simulation its works very nice but in the real world it won't display the calculated average.
Can somebody help me out.
Thanks,
Regards Jordy Kleian
its been a while busy with school and work but I started a new project to learn more about electronic components such as op amps and other stuff.
I'm planning to make a micro controlled power supply.
I started with a simple voltage meter from 0-5V and it works great. the only wired thing is that it never actually measures 5.04 volt its always 4.992V I thinks that its has something to do with the reference voltage.
anyway,
I have made a setup that takes the 12V supply from the EB006 board into an pot. meter to regulate from 0 to 12V (for simulation only) and by a resistor divider network scale this down to an 0 to 5V level. so 0V represents 0V and 5V represents 12V. this working greet. I have also used a low pass filter to eliminate noise so the reading wont jump all over the place.
In my program I read the ADC as a voltage or floating point number.
Therefrom do some calculations and have the corresponding voltage. that works fine but this reading is not constant it jumps ad the last two digits fast resolutions is 0.000V or 00.00V depends on how many volts. What I think that I need to do is sample the incoming data take the average of that and this hopefully will have a stable reading.
The only problem I have is that in the simulation its works very nice but in the real world it won't display the calculated average.
Can somebody help me out.
Thanks,
Regards Jordy Kleian