Hello and thanks for taking the time to read my question. I'm hoping to use the ADC functionality of the chipkituC32 but I have some questions. As I understand it, when I write the command
Input = analogRead(A3)
I should get an interger number 1023 /3.3 = x . However when I have no input into the A3 port, I get the constant number 788. How do I do the correct conversion? When I was sending in a DC voltage of 2 V I was getting alternating numbers between 600 and 1023 which make no sense.
Also, I cannot find in the datasheet, what is the frequency to read in a signal? I found somewhere online that it was only 10kHz. That seems incredibly low. IS the read frequency for digital signals higher? If I have a separate ADC and send a digital signal could I speed this up? Thanks again
Question
andrewkhardy
Hello and thanks for taking the time to read my question. I'm hoping to use the ADC functionality of the chipkituC32 but I have some questions. As I understand it, when I write the command
Input = analogRead(A3)
I should get an interger number 1023 /3.3 = x . However when I have no input into the A3 port, I get the constant number 788. How do I do the correct conversion? When I was sending in a DC voltage of 2 V I was getting alternating numbers between 600 and 1023 which make no sense.
Also, I cannot find in the datasheet, what is the frequency to read in a signal? I found somewhere online that it was only 10kHz. That seems incredibly low. IS the read frequency for digital signals higher? If I have a separate ADC and send a digital signal could I speed this up? Thanks again
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.