dyvardana / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Make the default reference Voltage for ADC´s configurable in the config file. #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Wrong Voltage for example MCP3008 connected to 5V reference.
2.
3.
...

WebIOPi version used?
=> 0.6.0

Python version used?
=> python3

Distro used? (WebIOPi has only been tested on Raspbian Wheezy)
=> Raspbian Wheezy

Raspberry Pi board revision? (1 or 2)
=> 2

For Javascript side bugs, Browser?
=>

Please provide any additional information below.

I have am MCP3008 connected via I2C to my Raspberry Pi. As i have a different 
power Supply for this i connected everything to 5V. Well your Software is 
really great but i found out that the Voltage was shown false with 3.3 Volt 
maximum.
I found out that this was hard coded in your Code. It would be cool if we could 
set this reference Voltage in the mail config file.

Original issue reported on code.google.com by san...@oehler.eu.org on 18 Apr 2013 at 2:55

GoogleCodeExporter commented 9 years ago
You right, I've kept this feature to later need.
But you can use analogReadFloat instead of analogReadVolt.
Simply multiply analogReadFloat with real VREF to get a voltage value.
analogReadFloat is binded to REST API and Javascript lib too.

Original comment by tro...@trouch.com on 18 Apr 2013 at 5:06

GoogleCodeExporter commented 9 years ago

Original comment by tro...@trouch.com on 4 Jan 2014 at 9:00

GoogleCodeExporter commented 9 years ago

Original comment by tro...@trouch.com on 4 Jan 2014 at 9:01

GoogleCodeExporter commented 9 years ago

Original comment by tro...@trouch.com on 28 Jan 2014 at 9:11

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1440.

Original comment by tro...@trouch.com on 23 Feb 2014 at 5:02