I'm attempting to read the temperature using a TMP36 Temperature Sensor following the example
at https://learn.adafruit.com/tmp36-temper ... cuitpython.
In this example, the output voltage of the Sensor goes in port A0 of a Feather M0
The document says that there is an analog to digital converter built-in to the board.
However Instead of a Feather M0 I am using a Trinket M0.
When I looked on the specification for the Trinket M0 it does say there A0 - A4 can
be used as analog input pins but I don't see any mention of a built in ADC.
Am I correct in assume that all the analog pin A0 - A4 on the Trinket M0 when used as input pins, go into
an ADC and if so, how many bits of data are in the digital value outputted. Thanks in advance for
any assistance.
Are Trinket M0 Input pins connected to internal ADC
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Jerryy
- Posts: 29
- Joined: Thu Feb 22, 2018 9:06 pm
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Are Trinket M0 Input pins connected to internal ADC
Yes, analog inputs use the ADC to convert the voltage on the pin to a corresponding number.
Dave
Dave
- Jerryy
- Posts: 29
- Joined: Thu Feb 22, 2018 9:06 pm
Re: Are Trinket M0 Input pins connected to internal ADC
Thanks for the reply, Would you know how many bits of data the ADC outputs?
Thanks
Jerry
Thanks
Jerry
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Are Trinket M0 Input pins connected to internal ADC
It depends on the MCU, but the SAMD21/51 are 12 bit.
Dave
Dave
Please be positive and constructive with your questions and comments.