Cockpitbuilders.com

Main => General Discussion Board. => Topic started by: kurt-olsson on September 12, 2015, 06:51:26 AM

Title: Teensy 3.1 encoder cts288 not working
Post by: kurt-olsson on September 12, 2015, 06:51:26 AM
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?
Title: Re: Teensy 3.1 encoder cts288 not working
Post by: kurt-olsson on September 12, 2015, 08:12:01 AM
Solved it!

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