Skip to content

Teensy 3.1 encoder cts288 not working

Started by kurt-olsson, September 12, 2015, 06:51:26 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

kurt-olsson

Hi. I have a problem with my teensy and encoder.
I have used the sampleprogram usb-flightsim navfrequency.
I tried the blinktransponder program and it worked.

My problem now is that my encoder dont send any values. I have tried lots of encoders. These worked on mu arduinocard. Not the same library (i used rotaryencoder.h) now i use encoder.h instead.

It is just a simple connection

Pin 5,6 input from the encoder and the middle cable is connected to the ground.

Am i missing something here?

Also, what power pin should i use for the 5v? In this circuit i dont even have power connected.

Nothing works, i am out of ideas?

kurt-olsson

#1
Solved it!

Putting this line at the beginning solved it:
#define ENCODER_DO_NOT_USE_INTERRUPTS