6 encoders on a Teensy 4.1 ?

Status
Not open for further replies.

Gadget999

Well-known member
can a single teensy read 6 encoders - 600 pulses each

is it best to set up interrupts to read the encoder pulses

the encoders are 5v outputs i think

or is it best to use an encoder interface to do the counting and send the data to the T4.x

any advice appreciated
 
5V is bad for T_4.1 that should not see more than 3.3V on any pin - except VIN or VUSB.

As far as interrupts - that would only be a few thousand per second with multiple encoders triggering. The T_4.x can handle a million well up to a couple of million before it gets swamped. If it would work well for encoder processing ... that would be an interesting test.

... Seems another thread with multiple encoders posted recently ???
 
Thanks for the fast replies !

I will give it a go :)

Can i protect the T4.1 pins with zener diodes ?

Or should i use a transitor/chip/level shifter
 
If the encoders are open-collector there's no need for protection as this can only pull to ground.

Which encoders are you using?
 
NPN means open-collector output, so yes, try using a few kohms to Teensy Vcc for the pullups. You can double check with a multimeter
too for peace of mind :)
 
Please correct me if I'm wrong, but I believe the E6B2-CWZ3E part does not have an open-collector output. I think it's called totempole output.
See these parts from the datasheet:

OMRON.PNG

OMRON2.PNG

The -CWZ3C part does have an open-collector output that can be pullled-up to 3V3 for use with a Teensy.

Paul
 
Status
Not open for further replies.
Back
Top