@Maximilian-Gerhardt Wow thank you so much! I totally missed the leading 0's part in the datasheet... I'll try it out tomorrow.
S
Posts made by Sasha D
-
RE: MCP3008 SPI Addressing and 0x00 returned values
-
MCP3008 SPI Addressing and 0x00 returned values
Hi,
I've been having issues using an MCP3008 with the Omega2. I saw this post: Using a MCP3008 via SPI, and am also having issues. I'm trying to read channel 0 on the ADC.That post mentioned sending the command word 1100 or 11000000 to read from the device, however my attempts were unsuccessful. I used the following command:
res = spi.readBytes(0xC0,1)
I consistently get 0x00 as the returned value , when attempting a whole range of different addresses (not just 0xC or 0xC0).
My specific questions are:- Am I addressing channel 0 correctly?
- What should I check if I keep getting 0x00 as the readBytes returned value?
Thanks!