Doubt Regarding Encoder

Hi,
Each one of your Mega inputs should have a potential divider configured like this.


What values do you have for R1 and R2?
Have you got the gnds connected together?

Tom... :slight_smile: