Skip to content

Digital Pin 13 does not work as digital input on Arduino Mega 2560 #18

@Xevel

Description

@Xevel

Hi,

I'm using an arduino Mega 2560 Pro embedded, and I came accross a very peculiar behaviour.

I set up multiple pins as digital_input_pullup (13, 53, 57(=A3)), and one of them behaves very differently from the others: it goes to 1.8V (instead of the 5V the pullup should pull to) and does not generate any digital report when shorted to GND ( though that seems reasonable in any case since it is always always below V_IL).

The other pins behave as expected.

Another oddity, when the arduino is reset by the telemetrix lib connecting to it, when all the other pins (digital input) stay LOW until the command to use the pullup is received, that pin 13 goes HIGH (5V) and LOW twice for about 500ms (from memory, I can provide go back and make measurements if useful).

FYI I have added an ACK mechanism (discussed already in a telemetrix repo issue), that ensures that no command is missed or corrupted silently.
Tested on multiple ardunio units running the code in the repo at this date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions