0

Are Trinket M0 Input pins connected to internal ADC
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Are Trinket M0 Input pins connected to internal ADC

by Jerryy on Tue Jul 27, 2021 9:40 pm

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.

Jerryy
 
Posts: 29
Joined: Thu Feb 22, 2018 9:06 pm

Re: Are Trinket M0 Input pins connected to internal ADC

by dastels on Wed Jul 28, 2021 8:17 am

Yes, analog inputs use the ADC to convert the voltage on the pin to a corresponding number.

Dave

dastels
 
Posts: 7285
Joined: Tue Oct 20, 2015 3:22 pm

Re: Are Trinket M0 Input pins connected to internal ADC

by Jerryy on Sun Aug 01, 2021 8:58 pm

Thanks for the reply, Would you know how many bits of data the ADC outputs?

Thanks
Jerry

Jerryy
 
Posts: 29
Joined: Thu Feb 22, 2018 9:06 pm

Re: Are Trinket M0 Input pins connected to internal ADC

by dastels on Sun Aug 01, 2021 9:22 pm

It depends on the MCU, but the SAMD21/51 are 12 bit.

Dave

dastels
 
Posts: 7285
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.