mdot Analog Pin In
- This topic has 5 replies, 3 voices, and was last updated 8 years, 9 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Tagged: analog pins
Hello,
I need information about how can I use the analog pins in the mdot:
1. how many are they?
It is mentionned up to 11 in the developer gide, is their some kind of multiplexing?
2. which pin number are affected to the Analog pin?
3. Is their a spceial configuration to be able to use them (to connect a Grove temperatyure senosr on A0 for example)?
4. ADC conversion, is it 12 bits?
I haven’t find links describing how can I access and use them 🙁
Thanks in advance for your help!
Hi,
Have you had a look at https://developer.mbed.org/platforms/MTS-mDot-F411/ It includes all the pinouts you need plus here are example applications on the right hand side that should help.
Andrew
Hello,
Thanks for your response, I actually have looked at it, and from my understanding is that I can connect for example a Grove temperature sensor to the PIn 20 PB_1 (A0 on UDK).
But I am not sure if it is that simple or should I configure the ADC to use this PIn to be able to read the value from it.
Best reagrds.
You don’t need to configure anything to use the analog input – just create an AnalogIn object and call read().
Thanks for your response,
so if my understanding is correct: if in the PIN support the fonctionality of analog pin like:
pin 20 that mentionned in its description: PB_1/AD0/DIO0
I can create AnalogIn on it and use it.
What about if is GPIO, can I also create AnalogIn on it like the pin: 16?
Best regards
Here’s a link to the mDot platform page on mbed: https://developer.mbed.org/platforms/MTS-mDot-F411/
Any pin that has a UDK2 pin name of A# should be usable as an analog input.