I wonder if there is some aggressive switch de-bounce happening.   Without
looking at your hal file, I'd bet there is a software debounce.   If so it
has to wait until it sees a steady-state on the pin for some period of
time.  Any random noise above some threshold would re-set the waiting time.

Two ways to address that.   (1) do hardware debounce with an RC circuit.
and (2) clean up the noise issue.  YOu would like for noise to be one full
order of magnitude below the signal.   This is a reasonable goal is ANY
system like this and should be easy to achieve.

On my do-to list, to design simple hardware debounce PCB that uses some RC
filters and a Schmitt trigger.

On Wed, Aug 19, 2020 at 11:07 AM Thaddeus Waldner <thadw...@gmail.com>
wrote:

> Can someone define a good way to test the keypad scan signals? I put a
> scope on a circuit and it appears that the signals stands out clearly from
> the noise. I don’t know what the switch thresholds are so the noise could
> still be enough to cause issues. Setting the scope trigger voltage to about
> 1/3 of the scan voltage causes it to trigger on noise.
>
> Should I be doing anything to condition the keypad lines? Pullup resistors
> are internal, so I  connected them directly to the 7i73.
>
> Could unused pins be an issue?
>
>
> > On Aug 7, 2020, at 1:34 PM, Gene Heskett <ghesk...@shentel.net> wrote:
> >
> > On Friday 07 August 2020 14:07:04 Thaddeus Waldner wrote:
> >
> >> I finally got to do a little troubleshooting and here’s what I found:
> >>
> >> Key response on the keypad is never as fast as the on-screen UI but it
> >> is consistent. I’m guessing there’s about a 100-300 ms delay but
> >> that’s just a guess. Could this delay be due to the fact that this is
> >> a scanning keypad? What is the scan rate on
> >>
> >> Once the inverter starts, I get a LOT of noise on the SmartSerial
> >> lines. The noise voltage is around 4v  as measured from the 7i73
> >> ground but it spikes to higher than that. Frequency is about 40khz but
> >> it’s not consistent.
> >
> > Check the invertor for a ground that does not go directly to that single
> > bolt or buss bar I preach about. If its connected to that bolt, lift it
> > and see if its still grounded someplace else, and isolate it from that
> > unwanted ground. Then hook it back up to the common bolt.  The static
> > ground line to the invertors PSU should go only to this bolt. The static
> > ground in the power cord should go to this bolt.  But only once if there
> > are more than one power cord.
> >
> > In rare cases, the moving parts of the machine, such as the table and Z
> > sled or knee should be jumpered to the machine frame, and that frame
> > connected to this common bolt. Well oiled moving ways are not that great
> > an ohmic connection if actively moving on a film of oil.
> >
> >> The noise on the 5v power supply line to the 7i73 is minimal. The 7i73
> >> and all its connected switches are grounded only through the board’s
> >> connection to the 7i96 board.
> >>
> >> Would a shielded ethernet cable help?
> >
> > You could try it, but I'd have doubts. Shielding only grounded at one
> > end. Both make a ground loop you don't need or want.
> >>
> >
> > IHTH.
> >
> >>> On Jul 31, 2020, at 9:17 AM, andy pugh <bodge...@gmail.com> wrote:
> >>>
> >>> On Fri, 31 Jul 2020 at 15:15, Peter C. Wallace <p...@mesanet.com>
> > wrote:
> >>>> Also even with default sserial error management you could only have
> >>>> 10 servo thread cycles (10 ms with a 1 ms servo thread) of delay
> >>>> due to failed transactions before a sserial error popup would
> >>>> occur.
> >>>
> >>> Maybe noise on the keyboard itself? Is the keycode pin a single
> >>> clean transition?
> >>>
> >>> --
> >>> atp
> >>> "A motorcycle is a bicycle with a pandemonium attachment and is
> >>> designed for the especial use of mechanical geniuses, daredevils and
> >>> lunatics."
> >>> — George Fitch, Atlanta Constitution Newspaper, 1912
> >>>
> >>>
> >>> _______________________________________________
> >>> Emc-users mailing list
> >>> Emc-users@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/emc-users
> >>
> >> _______________________________________________
> >> Emc-users mailing list
> >> Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net
> >
> >> https://lists.sourceforge.net/lists/listinfo/emc-users <
> https://lists.sourceforge.net/lists/listinfo/emc-users>
> >
> >
> > Cheers, Gene Heskett
> > --
> > "There are four boxes to be used in defense of liberty:
> > soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author)
> > If we desire respect for the law, we must first make the law respectable.
> > - Louis D. Brandeis
> > Genes Web page <http://geneslinuxbox.net:6309/gene <
> http://geneslinuxbox.net:6309/gene>>
> >
> >
> > _______________________________________________
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/emc-users <
> https://lists.sourceforge.net/lists/listinfo/emc-users>
>
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to