souviksaha97 / MCP3202

Contains the library I created to interface the MCP3202 12 bit ADC I required for my final year thesis.
MIT License
7 stars 0 forks source link

Problem when using with Arduino Nano to read temperature from LM35 #2

Closed ChetanAmrao closed 4 years ago

ChetanAmrao commented 4 years ago

I downloaded the repo to try the ADC_test.ino but I cannot see any SPI values on the serial monitor all i see is 0 0 for both channels

Do i need to make any changes to the program? my connections:

i have not used your same circuit i connected the miso, mosi, ss, 5v, gnd to the MCP3202 from the Nano

can you suggest anything? thanks

souviksaha97 commented 4 years ago

How have you hooked up the LM35? Have you got the MISO, MOSI, CLK and SS pins right?

ChetanAmrao commented 4 years ago

thanks for the quick reply i am using a custom board so i made a wrong connection, should have checked that first before making an issue

i connected a pot to it and now i see 0-4096 range on the spi image

i have to find the same library for raspberry pi now, we can close this issue