Ok, i bought new CTS 288 Encoders since i bent my old ones and they became unreliable.
Now i have solid connectors and a very good setup.
BUT, now my encoders only read -1,0,1,0???
I have tested with different input pins on my teensy 2.0++ and i have tested with several encoders. This has never happend to me before.
Anyone experienced this?
Looks like a wiring issue to the encoder.
Chances are Input A & B aren't wired correctly to the encoder A &| B channels.
..or it could be code. Double-check your code to make sure you do in fact have the related pins set up for encoder inputs.
Tried another Teensy 2.0++, same thing.
different teensy
different encoders
same problem,
well well.... wiring issues. again =)
The only thing i did this time was have more solid connectors on the encoder and then i twisted the wires like said before in previous posts... :-[
new wires, same thing. This starts to feel like a bad joke.
Must be code. But nothing has changed, i runned the same code before and it worked!
If your code hasn't changed, it's 99.9% wiring.
Somewhere, somehow, you either have a short or open, or the encoder center pin isn't grounded. (Are you using pullup resistors?)
There's a very slight possibility that you might have the wrong encoder type defined in your code.
Yeah, i use pullup resistors on the pins. I removed all terminals and connected to the pins directly.
I wonder if theres been some update to the encoder library that messes it up?only thing left is to test with my 3.1 and see if there are any results...
And the answer is.... *drumroll*
STUPIDITY!!!!!!!
I hooked up 27,0 but read the 0,1 pins! Great work Kurt! Really awesome!
:o :o :o :-[
Glad you got it sorted out!
And.. don't be too hard on yourself.. It happens to all of us at some point in this hobby. (Well, not *me* but, you know, the rest of us. )
;D ;D ;D ;D
Quote from: RayS on May 10, 2016, 10:06:16 AM
Glad you got it sorted out!
And.. don't be too hard on yourself.. It happens to all of us at some point in this hobby. (Well, not *me* but, you know, the rest of us. )
;D ;D ;D ;D
lol....do we need to revisit the soldering you were doing at WorldFlight last year Ray? :P :D
And yes it happens to everyone, even those of us that do this sort of thing for a living.
HAhaha
Thanks for the support compadres!!! =)
The Encoder War is coming to an end and i have won!!!
I got rid of the bad soldering, twisted the wires, mounted the encoder correct without the glue, without bending the encoder pins, using real connectors and now...
... 100% stable!!!...
I am almost crying right now having three of them working on my interrupt pins!!! 100% smooth, and i can throw the MCP around, disconnect and connect etc without loosing contact or get any twitch!!!
It has been a journey to say at least! Now with my opencockpit Korry switches and finalizing the backlight i can move on to the throttle and begin work on the overhead!
Special thanks to Ray, Kyle and lots of others on this forum for helping me with my encoder issues! =)
Some pictures...
Kurt:
Awesome work! You should dig up one of your first images when you started this project and put it next to the ones you just posted. Would be interesting to see the difference.
Kyle:
That 4-hour soldering job was some of my best work. 1 hour per pin.. not bad! ::) :P (It didn't help that Trevor would interrupt every 10 minutes with "*NOW* WTF are you doing?)
...good times, man.......... good times...................................
Quote from: RayS on May 10, 2016, 12:16:33 PM
Kurt:
Awesome work! You should dig up one of your first images when you started this project and put it next to the ones you just posted. Would be interesting to see the difference.
Thanks for your words!
Yeah, i think there is some improvement! will look for old stuff and see if i can dig up old photos, remember my first: direct-solder-on-arduino! Not nice! heheh
Quote from: RayS on May 10, 2016, 12:16:33 PM
Kurt:
Awesome work! You should dig up one of your first images when you started this project and put it next to the ones you just posted. Would be interesting to see the difference.
Kyle:
That 4-hour soldering job was some of my best work. 1 hour per pin.. not bad! ::) :P (It didn't help that Trevor would interrupt every 10 minutes with "*NOW* WTF are you doing?)
...good times, man.......... good times...................................
And the entire time I was curled up, fetal position scared to death.. It was my CDU he was working on! lol :o
And here is the proof!!!!
Quote from: RayS on May 10, 2016, 12:16:33 PM
Kurt:
Kyle:
That 4-hour soldering job was some of my best work. 1 hour per pin.. not bad! ::) :P (It didn't help that Trevor would interrupt every 10 minutes with "*NOW* WTF are you doing?)
...good times, man.......... good times...................................
Quote from: Sam Llorca on May 14, 2016, 05:11:49 AM
And here is the proof!!!! Quote from: RayS on May 10, 2016, 12:16:33 PM
Kurt:
Kyle:
That 4-hour soldering job was some of my best work. 1 hour per pin.. not bad! ::) :P (It didn't help that Trevor would interrupt every 10 minutes with "*NOW* WTF are you doing?)
...good times, man.......... good times...................................
OMG!! Too funny! Now you see why I was so afraid??!! :o