-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Analog input (expression pedal) is jumpy, need help and possible enhancement #514
Comments
Can you post some shots, the console log, the pedal configurations? |
I ordered an ADS1115 for testing. |
this is what I got in the console:
I'm using D6 and A6 for the analog pedal (GPIO1 and 18), D5 is the MIDI_OUT on GPIO21. This is the PEDALS config:
The controls are like "Control 5" --> Pedal 5 - Button empty |
ADS1115 support is coming |
Version 3.4.0 is out. ADS1115 board connections:
Tested on T-Display only. |
Hi @alf45tar Very Cool!! I'm gonna buy one to test it. I have the T-Display S3. Where do you define the Pins for SCL and SDA in the T-Display S3 part in Pedalino.h? |
It is the digital and the analog pin of the selected pedal. For example if you are selecting the Mode "Analog 4" for Pedal 1, SDA=10 SCL=11. |
Fantastic! |
Ok, I'm soldering it, How have you connected the analog source? Considering that now we have just 1 analog input per analog source? I guess it's GND + TIP of the TRS jack connected on the A0 pin of the ADS1115, right? |
Good point. Analog pin is usually connected to RING. We do not have a digital ping for TIP. The port is not like the others. |
Hi @alf45tar, I'm having a bit of trouble getting the ADS1115 recognized. I got this in the console as soon I set the "Analog 4", also no buttons seems to work properly when the i2c bus acts like this:
I have the SCL on GPIO_18 (A5) and SDA on GPIO_1 (D5), ADDR to GND. Do you have pull up resistors on SCL and SDA? I'm using the T-Display S3 Regarding the TIP/RING question, yeah I found out... It's the RING on A0. Thanks. I'm looking for an i2c scanner, to see if I can see anything. |
Pull up resistor are in the board. |
Ok so.... I've tested a simple i2c scan sketch using SCL and SDA on GPIO_18 and GPIO_1, I did't touch the wiring, and it seems working:
Now I'm going to test the ADS1115 library. |
The ADS1115 works properly with a simple sketch measuring the voltage: The Sketch:
This is the Serial output with me slowing moving the pedal connected through the TRS jack:
This is the Pedalino.h I have:
What could I debug in Pedalino to see what's going on and why I got the i2c error?? Thanks in advance. |
Not yet tested on T-Display-S3. |
I've changed the DIN_MIDI_IN to GPIO_17 which is empty at the moment.... I've tracked another couple of logs in the console now.
|
How many pedals are configured as Analog 4? |
Only Pedal 5.... I've got something but the I got again the error 263.
|
Can you give a try to latest version 3.4.1? |
Yeah sure... meanwhile I was trying to debug the issue, I believe there is something in the refresh_analog4() that's not working.... |
Ok, now it's better! There's nothing useful in console. We are getting there but there should be something else that is acting weird. |
When in hang, meaning "if I move the pedal nothing happens in the display or console", If I don't touch anything and the board does not reboot by itself, it happen one time that it recovered and the I was able to use the pedal again. |
Ok I had the Activity Threshold and the Ease at the lowest level to test the inputs, it's definetly too much. Now I have Ease 2 Threshold 16, and it seems more stable. Now I don't have any jump in the values sent over MIDI!!!! It seems stable. I'll test it more and eventually I'll let you know, I need to restore the whole config now :) |
I'm having some weird behaviors when I enable ANALOG 4 in the web ui... I got a board reset but I can't trace anything in the console unfortunately :( As soon I click "Save" the board restarts. It happens especially when I set the ANALOG 4 on the Pedals of Profile B. Now also when I switch to Profile B with Analog 4 enables (miraculosly) the board restarts. Also, when enabled, the WiFi started to acted strange and sometimes it doesn't connect properly
|
The upcoming release 3.5.0 will fix the analog input for T-Display S3 board. It fixes pins assignment and a software bug. |
Hi @alf45tar
I've rebuilt my Pedalino-8 with the Lilygo T-Display S3, this time I've bought a M-Audio expression pedal and I've added a TRS jack to connect it to the esp board.
Unfortunately and with my big surprise, even if I've added pull-up resistors, a capacitor of 100uF on both input and power, the output is very unreliable, no matter if I use the USB power or the battery. The firmware outputs the correct value but then each second it outputs the max value of 127, when the pedal is full on tip, when the pedal is full toe it outputs half the max value. I saw this in the console and using a midi monitor program. In the console i see a weird "input", with crazy high value in between the right readings from the pedal.
I've tried also to use different gpios without any luck. Moreover, because I'm using 8 foot switches as momentary 2, plus a Midi Out and a TRS jack, I don't have enough gpios to try other solutions. I've also played with the Ease settings and the threshold without any luck.
is there any solution to this behavior? How do you connect the expression pedal if you use any?
would a possible enhancement in the firmware the ability to use an i2c ADS converter like the ADS1115 and use the i2c bus to do all the analog reads? It supports 4 analog inputs. As far as I know it should be way less prone to bad readings coming from the crappy ADC converters in the esp32 boards...
Thanks in advance.
The text was updated successfully, but these errors were encountered: