logo
Welcome, Guest. Please Login or Register.
02. May 2024, 22:11:43


Home Help Search Login RegisterWIKIUHSDR Download

Amateurfunk Sulingen
Diskussions- und Newsboard des DARC-Ortsverbandes I40  |  allgemeine Kategorie  |  mcHF Projekt Deutsch / English (here you can discuss everything related to mcHF) (Moderators: DF8OE, DL1PQ)  |  Topic: rotary encoders boucing <- zurück vorwärts ->
Pages: 1 [2] Go Down Print
   Author  Topic: rotary encoders boucing  (Read 4927 times)
peter_77
Urgestein
*****

Offline

Posts: 735



THE mcHF and UHSDR forum !

View Profile
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
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:rotary encoders boucing
« Reply #16 on: 29. May 2018, 16:23:53 »

I think like Danilo. It is a combination of hardware problem and "simple firmware interpretation".

If you want to code a debouncing filter this would cause more delay in firmware processing, more code and probably new configuration for different encoders.

So best is to add a RC lowpass between encoder contacts and GPIOs. You need three parts: one resistor as pullup (already present built-in STM), a capacitor to GND (already present) and a serial resistor between contact and GPIO/capacitor (missing). So you can cut the track and insert it. I never have had tried but I thin 1K...3.3K will do the job. But pay attention! Screwing up resistor will cause lower maximum pulses ( ==> you cannot turn very fast). I would think hardware lowpass is sufficient for volume, AGC and RIT but not for VFO.

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
OE3HKC
alter Hase
****

Offline

Posts: 348



Ich liebe dieses Forum und meinen MiniTRX !!

View Profile
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 !

View Profile
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!

View Profile WWW E-Mail
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
 Bounce.pdf
Logged
SP9BSL
positron
alter Hase
****

Offline

Posts: 443





View Profile WWW
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





View Profile WWW
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





View Profile WWW
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 !

View Profile
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





View Profile WWW
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
DF8OE
Administrator
*****

Offline

Posts: 6268



Stellvertr. OVV I40, Jugend / Nachwuchsreferent

View Profile WWW
Re:rotary encoders boucing
« Reply #25 on: 04. June 2018, 16:51:36 »

You should ask in Yahoo group because of changing capacitors is mainly mentioned to 0.7 boards whichs layout is not rf resistent 

vy 73
Andreas
Logged

Wenn der Wind des Wandels weht, nageln die einen Fenster und Türen zu und verbarrikadieren sich. Die anderen gehen nach draußen und bauen Windmühlen...
qrz.com-Seite von DF8OE
-----------------------------------------------------
>>>> Die Inhalte meiner Beiträge dürfen ohne meine explizite Erlaubnis in jedwedem Medium weiterverbreitet werden! <<<<
SP9BSL
positron
alter Hase
****

Offline

Posts: 443





View Profile WWW
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 !!

View Profile
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 !!
Pages: 1 [2] Go Up Print 
Diskussions- und Newsboard des DARC-Ortsverbandes I40  |  allgemeine Kategorie  |  mcHF Projekt Deutsch / English (here you can discuss everything related to mcHF) (Moderators: DF8OE, DL1PQ)  |  Topic: rotary encoders boucing <- zurück vorwärts ->
Jump to: 


Login with username, password and session length

 Es wird die Verwendung von Browsern die auf der "Blink"-Engine basieren und mindestens
1024x768 Pixel Bildschirmauflösung für die beste Darstellung empfohlen
 
Amateurfunk Die Beiträge sind, sofern nicht anders vermerkt, unter der folgenden Lizenz veröffentlicht:
GNU Free Documentation License 1.3 GNU Free Documentation License 1.3
verbindet!
Powered by MySQL Powered by PHP Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
- modified by Andreas Richter (DF8OE)
Impressum & Disclaimer
Valid XHTML 1.0! Valid CSS!