Encoder with OPTA [Solved]

I am trying to hook up the encoder e38s6g5-600b-g24n which works fine with a normal Arduino uno and yes it can take from 5v to 24v, so it shoudl be working fine.

The issue I suspect is the output voltage of the cable A and B that are not high enough to trigger the interrupt on the OPTA.

is there a way to change the sensitivity or I need to get an opamp to boost the voltage?

This thread says that INPUT_PULLUP will work:

I tried with INPUT_PULLUP but didnt work. If I apply 12v to that interrupt pin I can see the function getting called, so I suspect the voltage coming out is not high enough

Have you got a DMM?

What ab-normal Arduino are you trying to connect it too.

Can you please post the UNO code and the ab-normal code?

Thanks... Tom.. :smiley: :+1: :coffee: :australia:

Actually never mind, using external pull-up resistor I managed to trigger using the 12V.

Arduino OPTA has a wider range of voltage input and I suspect it needs a higher voltage to trigger LOW and HIGH.

Just applied 2k across 12v and the interrupt, I can now read the steps :slight_smile:

1 Like

I dusted off an old project and my solution didn't work: it makes 5V internally with a 78L05. So "5-24V" is a lie, it needs 7V. I've updated the original thread. Sorry for confusion.