peter_77
Urgestein
Offline
Posts: 735
THE mcHF and UHSDR forum !
|
|
Re:rotary encoders bouncing
« Reply #15 on: 29. May 2018, 14:15:39 »
|
|
Slawek is right here. In the configuration menue this is reproducable either on the mcHF or I40-UI. Not the way that its not functioning at all but the right left behaviour is somehow "shaky".
EDIT corrected typo in thread title
|
« Last Edit: 04. June 2018, 16:52:06 by DF8OE » |
Logged
|
|
|
|
|
OE3HKC
alter Hase
Offline
Posts: 348
Ich liebe dieses Forum und meinen MiniTRX !!
|
|
Re:rotary encoders boucing
« Reply #17 on: 29. May 2018, 19:55:48 »
|
|
Hallo Allerseits,
und auf "deutsch" würde ich sagen... prellende Kontakte können so manches verursachen...
ich habe in meinem MiniTRX die Encoder-Kontakte über pullup 4k7, dann Serien-Widerstand 100 Ohm und Ko von 1n gegen 0V "entprellt"... diese Probleme mit "falscher" Drehrichtung habe ich bisher noch nicht festgestellt. Ich verwende auch die preisgünstigen Encoder von ALPS...
Schaltbild dazu unter https://www.amateurfunk-sulingen.de/forum/attachments/MINIMCU.PDF
MiniMCU.pdf
vy 73, Helmut
|
« Last Edit: 29. May 2018, 20:09:43 by OE3HKC » |
Logged
|
wer immer strebend sich bemüht, dem wird es auch gelingen !!
|
|
|
peter_77
Urgestein
Offline
Posts: 735
THE mcHF and UHSDR forum !
|
|
Re:rotary encoders boucing
« Reply #18 on: 31. May 2018, 08:27:33 »
|
|
As a conclusion following Helmuts advice would would mean to simply cut the encoder lines and add a 100Ohm resistor. Thats a quick fix.
Looks like Helmut has done here too much as he has not taken into account that the STM CPU has an internal pullup resistor on chip and the 1nF capacitor is there anyway either on mcHF and I40-UI.
|
« Last Edit: 31. May 2018, 08:28:20 by peter_77 » |
Logged
|
|
|
|
S53DZ
schon länger dabei
Offline
Posts: 58
Ich liebe dieses Forum!
|
|
Re:rotary encoders boucing
« Reply #19 on: 31. May 2018, 11:07:01 »
|
|
Hi there,
I did some LTspice simple simulations of contact bouncing. I have used an optocoupler for that.
It seems that a lower value pull-down resistor makes a difference. Perhaps the slope of end pulse could be important here for FW level-decision.
Just guessing.
Beside that, my experience is: don't use the cheapest encoders.
73 Bojan
|
|
|
|
SP9BSL
positron alter Hase
Offline
Posts: 443
|
|
Re:rotary encoders boucing
« Reply #20 on: 31. May 2018, 16:31:23 »
|
|
Hi Bojan, as Danilo said, the problem lies somewhere between the hardware and firmware. I always use ALPS encoders wchich are known as good ones, and i met this issue in mcHF/OVI40. From other side, i replaced few unknown encoders in stuff like Hameg/Rigol oscilloscopes/spectrum analyzers, and the new ones from ALPS works much better and longer than those mounted in factory. Increase of capacitance and/or series resistance may cause problems with slope as mentioned. This issue doesn't occur with magnetic encoder chip (AS5040, AS5601) I use, so I think that this leads to conclusion that we have slope problem.
|
|
Logged
|
73 Slawek
|
|
|
SP9BSL
positron alter Hase
Offline
Posts: 443
|
|
Re:rotary encoders boucing
« Reply #21 on: 03. June 2018, 18:03:49 »
|
|
Hi, Beside the slope, there is also zero crossing counter issue for sure. Anyway: workin' on it...
|
|
Logged
|
73 Slawek
|
|
|
SP9BSL
positron alter Hase
Offline
Posts: 443
|
|
Re:rotary encoders boucing
« Reply #22 on: 04. June 2018, 06:41:32 »
|
|
Hi, Please test the new 2.9.34 version. It contains fixup for encoder boundary crossing and hardware filter usage (internal STM settings) for encoder sampling. Hope this will work better. For my mcHF, after this fixup, the issue is no longer reproduceable.
|
|
Logged
|
73 Slawek
|
|
|
peter_77
Urgestein
Offline
Posts: 735
THE mcHF and UHSDR forum !
|
|
Re:rotary encoders boucing
« Reply #23 on: 04. June 2018, 14:03:11 »
|
|
Tested and works perfectly fine now. The hangers are not reproducable anymore. Either on mcHF or I40. Good job Slawek !
|
|
Logged
|
|
|
|
SP9BSL
positron alter Hase
Offline
Posts: 443
|
|
Re:rotary encoders boucing
« Reply #24 on: 04. June 2018, 16:09:02 »
|
|
Hi Peter, thank you for the report. This part of code is very old and still needs some cleanup. I'm curious of reports from others who changed the encoder capacitors to bigger than in schematics.
|
|
Logged
|
73 Slawek
|
|
|
|
SP9BSL
positron alter Hase
Offline
Posts: 443
|
|
Re:rotary encoders boucing
« Reply #26 on: 04. June 2018, 18:51:56 »
|
|
Hi Andreas, I will do so.
|
|
Logged
|
73 Slawek
|
|
|
OE3HKC
alter Hase
Offline
Posts: 348
Ich liebe dieses Forum und meinen MiniTRX !!
|
|
Re:rotary encoders boucing
« Reply #27 on: 04. June 2018, 19:08:00 »
|
|
TNX Slawek for your great work,
I also tested the new version with my MiniTRX..
sometimes there were little boucings, only some few, perhaps because of the small pullup of 4k7...
but now there is no more issue from the encoders and I think it is not necessary to change it for a magnetic type...
73, Helmut
|
|
Logged
|
wer immer strebend sich bemüht, dem wird es auch gelingen !!
|
|
|