Search found 3 matches
- Fri Feb 28, 2020 2:53 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: MCP3008 voltage values are 2x larger than expected
- Replies: 6
- Views: 559
Re: MCP3008 voltage values are 2x larger than expected
So I tried using the value attribute, but the values are still 2x larger, as anything above 1.65V (3.3/2) returns a value of 1. I have 3.3V connected to Vref as that's what every tutorial did. I think my signal source is in fact 0.5V peak to peak, here are some photos of the waveform generator: http...
- Thu Feb 27, 2020 9:15 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: MCP3008 voltage values are 2x larger than expected
- Replies: 6
- Views: 559
Re: MCP3008 voltage values are 2x larger than expected
Hi thanks. I did use the following code using the gpiozero library and got the same numbers:
Code: Select all
import gpiozero
import time
m = gpiozero.MCP3008(channel=0)
while True:
print(m.voltage)
time.sleep(0.1)
- Wed Feb 26, 2020 9:02 pm
- Forum: Interfacing (DSI, CSI, I2C, etc.)
- Topic: MCP3008 voltage values are 2x larger than expected
- Replies: 6
- Views: 559
MCP3008 voltage values are 2x larger than expected
I'm currently using a MCP3008 and my analog input is coming from an arbitrary waveform generator. The generator is producing a sine wave with a peak to peak voltage of 0.5 and an offset of 0.5 volts. I would expect the MCP3008 to get values between 0.25 and 0.75, but instead I'm getting between 0.5 ...