Products > Test Equipment

New Hantek DSO2X1X models?

<< < (318/388) > >>

DavidAlfa:
I forgot something: You get the IRQ on *any* change, even if the knob didn't made a full quadrature cycle.
It seems everything is processed in software, the fpga just sends raw data when something changes.
So imagine the encoder contacts "A" and "B"... Only "A" might be toggling, and "B" stuck high/low, nothing would happen but you will get the IRQ messages as well.

This is while rotating the Time/Div control.
At first I'm making full steps, but then I'm making half steps, backwards and forwards, so it never settles into the next step.
Still, you get plenty of IRQs.

--- Quote ---[   94.585066] Get irq key
[   94.610065] Get irq key
dso_acq_control:1:store_depth 4000, extra_len 64,acq_all_nm_for_read 4064,acq_dot_nm_of_timerange 80,sample_rate = 1000000000.000000
[   95.285081] Get irq key
[   95.310090] Get irq key
dso_acq_control:1:store_depth 4000, extra_len 64,acq_all_nm_for_read 4064,acq_dot_nm_of_timerange 160,sample_rate = 1000000000.000000
[   96.110066] Get irq key
[   96.135080] Get irq key
dso_acq_control:1:store_depth 4000, extra_len 64,acq_all_nm_for_read 4064,acq_dot_nm_of_timerange 320,sample_rate = 1000000000.000000
[   96.985074] Get irq key
[   97.010073] Get irq key
dso_acq_control:1:store_depth 4000, extra_len 64,acq_all_nm_for_read 4064,acq_dot_nm_of_timerange 800,sample_rate = 1000000000.000000
[  101.035063] Get irq key
[  101.310079] Get irq key
[  101.935058] Get irq key
[  101.985166] Get irq key
[  102.060081] Get irq key
[  102.110083] Get irq key
[  102.410074] Get irq key
[  102.560081] Get irq key
[  102.660067] Get irq key
[  102.735065] Get irq key
[  102.860078] Get irq key
[  102.935082] Get irq key
[  103.160093] Get irq key
[  103.310069] Get irq key
[  103.335062] Get irq key
[  103.410078] Get irq key
[  103.485066] Get irq key
[  103.510078] Get irq key
[  103.635070] Get irq key
[  103.760065] Get irq key
[  103.835067] Get irq key
[  103.860062] Get irq key

--- End quote ---

Take any of the stepping encoders, and slighly turn them to right or left, about 1/4 of the step, much less than it would need to make the "click".
Do you notice one side behaving differently? I one side needs more than the other, then it's likely to be a bad common signal.
Try soldering two wires to any encoder pins, then randomly touch ground with one at a time. Or just shorting them with tweezers or whatever.
I guess one of them won't make the IRQs!

morgan_flint:
It's a good guess, although not all the encoders are going to get one contact stuck at the same time. But the symptoms would also be the same if one of the signals Scan_Data_4 or Scan_Data_6 (not both at the same time) had gone nuts!

Time to look for an HC4051!! Thanks!!

DavidAlfa:
I don't mean the encoder is stuck, but one of 4051s!

morgan_flint:
Ah, OK, I didn't understand it well. Sorry!

Most probably, U2, as it is the one that has two signals exclusively for the encoders, so it's the first one to be changed, but I'll buy more than one, just in case.

morgan_flint:

--- Quote from: DavidAlfa on September 10, 2023, 04:08:43 pm ---Take any of the stepping encoders, and slighly turn them to right or left, about 1/4 of the step, much less than it would need to make the "click".
Do you notice one side behaving differently? I one side needs more than the other, then it's likely to be a bad common signal.
Try soldering two wires to any encoder pins, then randomly touch ground with one at a time. Or just shorting them with tweezers or whatever.
I guess one of them won't make the IRQs!

--- End quote ---
I tried this and, as you guessed, one of them (the one that corresponds to Scan_Data_6) doesn't make IRQs.

It seems clear that channel 6 of the analog multiplexer U2 is not working.

I also checked that pulling down the Key_Scan_Data generates lots of IRQs, with lots of random key detections  ;D

I also made another desperate attempt: shorting out pins 2 and 4 of U2, in the hope that channel 7 (unused, as Scan_Data_7 doesn't exist) would work and the software would "understand". But no luck. Replacing U2 is now the only hope...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod