-
Notifications
You must be signed in to change notification settings - Fork 6
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
Input noise #15
Comments
Your USB cable should already contain a EMI/RFI shield {ferrite choke), if not, then I suggest trying one that has a shield. you can also confirm that the pedal set is properly grounded (attaching a ground wire to the pedals and something that is grounded like the computer case. I haven't seen something like that before but there is many way to filter out noisy lines. Also make sure your sensors are as close to the pedals as possible to limit interference.
…________________________________
From: brgil96 ***@***.***>
Sent: Monday, 18 September 2023 7:41 AM
To: jssting/ArduinoTec-Pedals ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [jssting/ArduinoTec-Pedals] Input noise (Issue #15)
So Im using this on a Leonardo and everything works. However, the signal is very noisy i.e. if I hold a pedal in a position between 0 and 100% the input value fluctuates a lot. How can I solve the issue?
I probably have dirty power in this house in case that matters
—
Reply to this email directly, view it on GitHub<#15>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANJZ43NKMBH3PCPPUP5UC33X25VBHANCNFSM6AAAAAA43347BE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Currently I don't have any microUSB cable with a choke (apparently not even the oem cable has one), but would that work for my case where my house doesn't even have an earth connection? |
The Leonardo already has a host of capacitors inline and pullup resistors on the Leonardo board to smooth out the signal and voltages on the pins. Adding capacitor inline with the sensor will add a ‘delay’ in input as it will keep smoothing out the signal way after you have changes the pedal position i.e. pedal still readying 20% when you are at 0%. I suspect it is either a
noisy sensor or a noisy output on the Leonardo. To validate that it is the sensor I would put the sensor on a different pin on the Leonardo, also look for a Analog only pin if you have a sensor with analog output.
To validate the pin for noise I would use an analogue write loop (0-255 and back to 0) to the pin and put a multi-meter (with DC voltage selected) on it to see if it goes from 0v to 5v and back consistently.
In addition, I would also check if there are any other inputs that are causing noise.
Note: some of the “non original” Leonardo’s are known for being a bit noisy, to counter act this you could add a small delay in the loop 50-120ms to account for the noise, but you loose fidelity.
From: brgil96 ***@***.***>
Sent: Tuesday, September 19, 2023 12:03 AM
To: jssting/ArduinoTec-Pedals ***@***.***>
Cc: jssting ***@***.***>; Comment ***@***.***>
Subject: Re: [jssting/ArduinoTec-Pedals] Input noise (Issue #15)
Currently I don't have any microUSB cable with a choke (apparently not even the oem cable has one), but would that work for my case where my house doesn't even have an earth connection?
The stock board didn't have this issue, even with a "normal" cable. I've read somewhere you can filter out noise by adding a capacitor to the circuit. Maybe that's why there are those two capacitors in the board? Could I use them in this setup somehow?
—
Reply to this email directly, view it on GitHub<#15 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANJZ43PME6JHZCQBCHDXO3DX3BIC7ANCNFSM6AAAAAA43347BE>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
So Im using this on a Leonardo and everything works. However, the signal is very noisy i.e. if I hold a pedal in a position between 0 and 100% the input value fluctuates a lot. How can I solve the issue?
I probably have dirty power in this house in case that matters
The text was updated successfully, but these errors were encountered: