mdot Analog Pin In

Home Forums mDot/xDot mdot Analog Pin In

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11538
    sabrine
    Participant

    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!

    #11539
    Andrew Lindsay
    Participant

    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

    #11544
    sabrine
    Participant

    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.

    #11554
    Mike Fiore
    Blocked

    You don’t need to configure anything to use the analog input – just create an AnalogIn object and call read().

    #11559
    sabrine
    Participant

    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

    #11560
    Mike Fiore
    Blocked

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.