FreeJoyConfiguratorQt icon indicating copy to clipboard operation
FreeJoyConfiguratorQt copied to clipboard

software problem or mounting pot problem?

Open pipes80-collab opened this issue 3 years ago • 20 comments

I managed to convert the g29 pedal board to usb, by connecting the potentiometers directly to the stm32 board, before closing the top cover I tested it and I didn't have that kind of oscillation that you see in the video of the axis scroll bar. any opinion? I hope I was clear in explaining the problem, in game I have no problems, at least for what little I was able to try

https://user-images.githubusercontent.com/56699284/114300313-04365500-9ac0-11eb-881f-7c18e7082b3d.mp4

pipes80-collab avatar Apr 11 '21 10:04 pipes80-collab

why do you have a packet speed of 1ms? these are debug packages only for configurator and should be 16 ms

Reksotiv avatar Apr 11 '21 10:04 Reksotiv

I had no major problems before the change even at 1 ms, do you think that is the problem? Wouldn't it have better speed performance at 1ms?

pipes80-collab avatar Apr 11 '21 12:04 pipes80-collab

Wouldn't it have better speed performance at 1ms?

No. Controller sends 2 types of packets, first for OS(you can edit exchange period in adv. settings) and second for configurator. These are debug packages for configurator only. Configurator is refreshed no more than once every 17ms.

do you think that is the problem?

I don't see a problem in the video if you mean noise

Reksotiv avatar Apr 11 '21 13:04 Reksotiv

note that holding the pedal down, the bar has a kind of slight wobble and the values do not remain stable and fixed, at least they were in the way the potentiometers were originally connected

pipes80-collab avatar Apr 11 '21 13:04 pipes80-collab

it is noise. I already answered https://github.com/FreeJoy-Team/FreeJoyConfiguratorQt/issues/5

Reksotiv avatar Apr 11 '21 13:04 Reksotiv

https://en.wikipedia.org/wiki/Noise_(electronics)

Reksotiv avatar Apr 11 '21 13:04 Reksotiv

It's normal but less noise in original configuration...I take the question as closed... thanks for help

pipes80-collab avatar Apr 11 '21 13:04 pipes80-collab

Sorry if I have reopen, it can be help for noise this solution? https://forum.arduino.cc/index.php?topic=371953.30

pipes80-collab avatar Apr 11 '21 17:04 pipes80-collab

Or this solution https://forum.arduino.cc/index.php?topic=363175.0

pipes80-collab avatar Apr 11 '21 17:04 pipes80-collab

this can help. Logitech G25

Reksotiv avatar Apr 11 '21 18:04 Reksotiv

so a capacitor each line (accelerator, brake and clutch)?

pipes80-collab avatar Apr 11 '21 20:04 pipes80-collab

I do not understand where to position the capacitor ... apart from that I do not understand how this problem can arise if the problem did not appear before closing and gluing the board with hot glue

pipes80-collab avatar Apr 12 '21 07:04 pipes80-collab

Capacitors and digital filters should give you quite similar results. Have you tried to add filter levels for axes? Capacitor or digital filter should be applied to every axis that you want to be smoother.

the problem did not appear before closing and gluing the board with hot glue this seem to be some kind of shielding issue. Keep your wires as short as possible, use twisted pair cable and prevent gnd and pwr circuits from looping

vostrenkov avatar Apr 20 '21 06:04 vostrenkov

Capacitors and digital filters should give you quite similar results. Have you tried to add filter levels for axes? Capacitor or digital filter should be applied to every axis that you want to be smoother.

the problem did not appear before closing and gluing the board with hot glue this seem to be some kind of shielding issue. Keep your wires as short as possible, use twisted pair cable and prevent gnd and pwr circuits from looping

the capacitors must be placed on each axis ground, which capacitors to use? polymers or multilayer or other? I will have made the cables 30 cm long to be able to get to a comfortable point inside the pedal box case, are they cables with silicone sheath, maybe that holding them close, are 3 wires for potentiometer can create electromagnetic interference?

pipes80-collab avatar Apr 20 '21 17:04 pipes80-collab

Logitech G25

Reksotiv avatar Apr 20 '21 18:04 Reksotiv

Ceramic capacitors should be fine. Value is dependent of the resistance of your pots and can be determined by formula for low pass filter

vostrenkov avatar Apr 21 '21 06:04 vostrenkov

Have 10k pot

pipes80-collab avatar Apr 21 '21 08:04 pipes80-collab

Have 10k pot

In this case 0.1-1uF capacitor should be ok for you. Note that filter will work in different way at different positions of pot because cut frequency is determined by formula f=1/(2 * pi * R * C)

vostrenkov avatar Apr 22 '21 05:04 vostrenkov

It's good thing use ferrite for EMI?

pipes80-collab avatar Apr 22 '21 08:04 pipes80-collab

is it possible that this problem is due to the fact that each potentiometer is connected to a different 3.3 volt line?

pipes80-collab avatar Apr 04 '23 15:04 pipes80-collab