Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

software problem or mounting pot problem? #11

Open
pipes80-collab opened this issue Apr 11, 2021 · 20 comments
Open

software problem or mounting pot problem? #11

pipes80-collab opened this issue Apr 11, 2021 · 20 comments

Comments

@pipes80-collab
Copy link

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

2021-04-11.12-15-04.mp4
@Reksotiv
Copy link
Member

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

@pipes80-collab
Copy link
Author

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?

@Reksotiv
Copy link
Member

Reksotiv commented Apr 11, 2021

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

@pipes80-collab
Copy link
Author

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

@Reksotiv
Copy link
Member

it is noise. I already answered #5

@Reksotiv
Copy link
Member

@pipes80-collab
Copy link
Author

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

@pipes80-collab
Copy link
Author

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

@pipes80-collab
Copy link
Author

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

@Reksotiv
Copy link
Member

this can help. Logitech G25

@pipes80-collab
Copy link
Author

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

@pipes80-collab
Copy link
Author

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

@vostrenkov
Copy link
Member

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

@pipes80-collab
Copy link
Author

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?

@Reksotiv
Copy link
Member

Logitech G25

@vostrenkov
Copy link
Member

vostrenkov commented Apr 21, 2021

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

@pipes80-collab
Copy link
Author

Have 10k pot

@vostrenkov
Copy link
Member

vostrenkov commented Apr 22, 2021

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)

@pipes80-collab
Copy link
Author

It's good thing use ferrite for EMI?

@pipes80-collab
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants