alf45tar / PedalinoMini

Wireless and Bluetooth MIDI Foot Controller
GNU General Public License v3.0
479 stars 84 forks source link

Restart the device after pressing the buttons #433

Closed e36910 closed 11 months ago

e36910 commented 1 year ago

After switching presses I see the same problem, the device restarts, sometimes it works fine, and sometimes by pressing a button the device restarts, I thought that the problem was with the board, but when I replaced it, the problem remained the same. Buttons are soldered through the resistors 10k in series, no problems with the power supply, tried through the usb and through the pin 5v solder. What can be the problem?

alf45tar commented 1 year ago

Can you post here the log? The pull up resistor is not in serie. However is should not be the reason of restart.

e36910 commented 1 year ago

My example - https://youtu.be/Fg-qYdnU9uI

e36910 commented 1 year ago

how to create log?

alf45tar commented 1 year ago

The debug information are printed automatically on USB UART. You can use Visual Studio Code and Monitor option or any other program can read the serial port via USB.

e36910 commented 1 year ago

I don't know how to do it

e36910 commented 1 year ago

PROGRAM CHANGE.....Program 0.....Channel 1 Pedal: 1 Button: 2 EventType: 1 ButtonState: 1 Pedal: 2 Button: 2 EventType: 0 ButtonState: 0 Action: 1 CONTROL CHANGE.....Code 1......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #050005 Pedal: 2 Button: 2 EventType: 1 ButtonState: 1 Pedal: 2 Button: 3 EventType: 0 ButtonState: 0 Action: 2 CONTROL CHANGE.....Code 2......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #000505 Pedal: 2 Button: 3 EventType: 1 ButtonState: 1 Pedal: 2 Button: 3 EventType: 0 ButtonState: 0 Action: 2 CONTROL CHANGE.....Code 2......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #000505 Pedal: 2 Button: 3 EventType: 1 ButtonState: 1 Pedal: 2 Button: 3 EventType: 2 ButtonState: 1 Pedal: 2 Button: 4 EventType: 0 ButtonState: 0 Action: 3 CONTROL CHANGE.....Code 3......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #050400 Pedal: 2 Button: 4 EventType: 1 ButtonState: 1 Pedal: 1 Button: 2 EventType: 0 ButtonState: 0 Action: A PROGRAM CHANGE.....Program 0.....Channel 1 Pedal: 1 Button: 2 EventType: 1 ButtonState: 1 Pedal: 1 Button: 3 EventType: 0 ButtonState: 0 Action: B PROGRAM CHANGE.....Program 1.....Channel 1 Pedal: 1 Button: 3 EventType: 1 ButtonState: 1 Pedal: 1 Button: 3 EventType: 2 ButtonState: 1 Pedal: 1 Button: 4 EventType: 0 ButtonState: 0 Action: C PROGRAM CHANGE.....Program 2.....Channel 1 Pedal: 1 Button: 4 EventType: 1 ButtonState: 1 Pedal: 1 Button: 3 EventType: 0 ButtonState: 0 Action: B PROGRAM CHANGE.....Program 1.....Channel 1 Pedal: 1 Button: 3 EventType: 1 ButtonState: 1 Pedal: 1 Button: 3 EventType: 2 ButtonState: 1 Pedal: 2 Button: 3 EventType: 0 ButtonState: 0 Action: 2 CONTROL CHANGE.....Code 2......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #000505 Pedal: 2 Button: 3 EventType: 1 ButtonState: 1 Pedal: 2 Button: 3 EventType: 2 ButtonState: 1 Pedal: 1 Button: 2 EventType: 0 ButtonState: 0 Action: A PROGRAM CHANGE.....Program 0.....Channel 1 Pedal: 1 Button: 2 EventType: 1 ButtonState: 1 Pedal: 1 Button: 3 EventType: 0 ButtonState: 0 Action: B PROGRAM CHANGE.....Program 1.....Channel 1 Pedal: 1 Button: 3 EventType: 1 ButtonState: 1 Pedal: 2 Button: 4 EventType: 0 ButtonState: 0 Action: 3 CONTROL CHANGE.....Code 3......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #050400 Pedal: 2 Button: 4 EventType: 1 ButtonState: 1 Pedal: 1 Button: 4 EventType: 0 ButtonState: 0 Action: C PROGRAM CHANGE.....Program 2.....Channel 1 Pedal: 1 Button: 4 EventType: 1 ButtonState: 1 Pedal: 1 Button: 2 EventType: 0 ButtonState: 0 Action: A PROGRAM CHANGE.....Program 0.....Channel 1 Pedal: 1 Button: 2 EventType: 1 ButtonState: 1 Pedal: 1 Button: 4 EventType: 0 ButtonState: 0 Action: C PROGRAM CHANGE.....Program 2.....Channel 1 Pedal: 1 Button: 4 EventType: 1 ButtonState: 1 Pedal: 1 Button: 5 EventType: 0 ButtonState: 0 Action: D PROGRAM CHANGE.....Program 3.....Channel 1 Pedal: 1 Button: 5 EventType: 1 ButtonState: 1 Pedal: 1 Button: 5 EventType: 2 ButtonState: 1 Pedal: 2 Button: 2 EventType: 0 ButtonState: 0 Action: 1 CONTROL CHANGE.....Code 1......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #050005 Pedal: 2 Button: 2 EventType: 1 ButtonState: 1 Pedal: 2 Button: 3 EventType: 0 ButtonState: 0 Action: 2 CONTROL CHANGE.....Code 2......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #000505 Pedal: 2 Button: 3 EventType: 1 ButtonState: 1 Pedal: 1 Button: 2 EventType: 0 ButtonState: 0 Action: A PROGRAM CHANGE.....Program 0.....Channel 1 Pedal: 2 Button: 3 EventType: 2 ButtonState: 1 Pedal: 1 Button: 2 EventType: 1 ButtonState: 1 Pedal: 2 Button: 4 EventType: 0 ButtonState: 0 Action: 3 CONTROL CHANGE.....Code 3......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #050400 Pedal: 2 Button: 4 EventType: 1 ButtonState: 1 Pedal: 1 Button: 3 EventType: 0 ButtonState: 0 Action: B PROGRAM CHANGE.....Program 1.....Channel 1 Pedal: 1 Button: 3 EventType: 1 ButtonState: 1 Pedal: 2 Button: 4 EventType: 0 ButtonState: 0 Action: 3 CONTROL CHANGE.....Code 3......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #050400 Pedal: 1 Button: 3 EventType: 2 ButtonState: 1 Pedal: 2 Button: 4 EventType: 1 ButtonState: 1 Pedal: 1 Button: 4 EventType: 0 ButtonState: 0 Action: C PROGRAM CHANGE.....Program 2.....Channel 1 Pedal: 1 Button: 4 EventType: 1 ButtonState: 1 Pedal: 1 Button: 5 EventType: 0 ButtonState: 0 Action: D PROGRAM CHANGE.....Program 3.....Channel 1 Pedal: 1 Button: 5 EventType: 1 ButtonState: 1 Pedal: 2 Button: 4 EventType: 0 ButtonState: 0 Action: 3 CONTROL CHANGE.....Code 3......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #050400 Pedal: 2 Button: 4 EventType: 1 ButtonState: 1 Pedal: 2 Button: 2 EventType: 0 ButtonState: 0 Action: 1 CONTROL CHANGE.....Code 1......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #050005 Pedal: 2 Button: 2 EventType: 1 ButtonState: 1 Pedal: 2 Button: 3 EventType: 0 ButtonState: 0 Action: 2 CONTROL CHANGE.....Code 2......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #000505 Pedal: 2 Button: 3 EventType: 1 ButtonState: 1 Pedal: 1 Button: 2 EventType: 0 ButtonState: 0 Action: A PROGRAM CHANGE.....Program 0.....Channel 1 Pedal: 2 Button: 2 EventType: 0 ButtonState: 0 Action: 1 CONTROL CHANGE.....Code 1......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #050005 Pedal: 2 Button: 2 EventType: 1 ButtonState: 1 Pedal: 1 Button: 2 EventType: 1 ButtonState: 1 Pedal: 2 Button: 2 EventType: 2 ButtonState: 1 Pedal: 1 Button: 3 EventType: 0 ButtonState: 0 Action: B PROGRAM CHANGE.....Program 1.....Channel 1 Pedal: 1 Button: 3 EventType: 1 ButtonState: 1 Pedal: 2 Button: 2 EventType: 0 ButtonState: 0 Action: 1 CONTROL CHANGE.....Code 1......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #050005 Pedal: 2 Button: 2 EventType: 1 ButtonState: 1 Pedal: 1 Button: 4 EventType: 0 ButtonState: 0 Action: C PROGRAM CHANGE.....Program 2.....Channel 1 Pedal: 1 Button: 4 EventType: 1 ButtonState: 1 Pedal: 2 Button: 3 EventType: 0 ButtonState: 0 Action: 2 CONTROL CHANGE.....Code 2......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #000505 Pedal: 2 Button: 3 EventType: 1 ButtonState: 1 Pedal: 1 Button: 3 EventType: 0 ButtonState: 0 Action: B PROGRAM CHANGE.....Program 1.....Channel 1 Pedal: 1 Button: 3 EventType: 1 ButtonState: 1 Pedal: 2 Button: 3 EventType: 0 ButtonState: 0 Action: 2 CONTROL CHANGE.....Code 2......Value 0.....Channel 1 LED COLOR.....Led 0......RGB Color #000505 Pedal: 2 Button: 3 EventType: 1 ButtonState: 1 Pedal: 2 Button: 2 EventType: 0 ButtonState: 0 Action: 1 CONTROL CHANGE.....Code 1......Value 127.....Channel 1 LED COLOR.....Led 0......RGB Color #050005 Pedal: 2 Button: 2 EventType: 1 ButtonState: 1 Pedal: 1 Button: 2 EventType: 0 ButtonState: 0 Action: A PROGRAM CHANGE.....Program 0.....Channel 1 Pedal: 1 Button: 2 EventType: 1 ButtonState: 1 Pedal: 1 Button: 3 EventType: 0 ButtonState: 0 Action: B PROGRAM CHANGE.....Program 1.....Channel 1 Pedal: 1 Button: 3 EventType: 1 ButtonState: 1 ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wpdrv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 ChipRevision 3, CPU Freq 240 MHz, SDK Version v3.3.5-1-g85c43024c Flash Size 4194304, Flash Speed 40000000 Hz Internal Total Heap 260088, Internal Free Heap 231140 PSRAM Total Heap 0, PSRAM Free Heap 0 nvs Total 65536 PlatformIO Built Environment: esp32doit-devkit-v1 ____ ._ . . ___ . . ____ __ \ __ | _/ | | || __ __ / \ || __ || / / __ / \ \ \ | // \ / |_ \ | | | |/ \ / \ / \ / | |/ | | / / | | / \ / \ \ \ | | \ // // | / | || | | ( <> ) Y \ | | \ | ( ( | |/ Y \ ) ) |_| \ > |( /__/|| /__/__| /|| /| \ \ |__|_| / / / \/ \/ \/ \/ \/ \/ _\ \/ /__/ (c) 2018-2022 alf45star
https://github.com/alf45tar/PedalinoMini

Hostname: EBD82240 PSRAM not found Bluetooth Classic disabled: 15248 bytes released Internal Total Heap 275424, Internal Free Heap 246292 PSRAM Total Heap 0, PSRAM Free Heap 0 SPIFFS mount OK 'nvs' partition was successfully initialized Reading NVS Global ... done

[NVS][Global][Ladder]: Ladder 1 Level 350 [NVS][Global][Ladder]: Ladder 2 Level 500 [NVS][Global][Ladder]: Ladder 3 Level 650 [NVS][Global][Ladder]: Ladder 4 Level 725 [NVS][Global][Ladder]: Ladder 5 Level 780 [NVS][Global][Ladder]: Ladder 6 Level 850

Boot AP+BLE Loading profile 0 ... Reading NVS Profile A ... done Bank 2 Pedal 1 1 LADDER PRESS_1 POLARITY+ PROGRAM_CHANGE 0 Channel 1 Pin A36 D25 Pedal 2 1 LADDER PRESS_1 POLARITY+ CONTROL_CHANGE 1 Channel 1 Pin A39 D26 Pedal 3 None ANALOG POLARITY+ Channel 1 Pin A34 D27 Pedal 4 None POLARITY+ Channel 1 Pedal 5 None POLARITY+ Channel 1 Pedal 6 None POLARITY+ Channel 1 Pedal 7 None POLARITY+ Channel 1 MTC None ... profile 0 loaded. USB MIDI started DIN MIDI started BLE MIDI service advertising started Skipped connection to last AP and/or SmartConfig/WPS setup SYSTEM_EVENT_WIFI_READY AP MelatoninPedals started with password 1234567890 AP SSID : MelatoninPedals AP PSK : 1234567890 AP MAC : 40:22:D8:EB:1D:45 AP IP : 192.168.4.1 SYSTEM_EVENT_AP_STOP SYSTEM_EVENT_AP_START SYSTEM_EVENT_AP_START Channel : 1 Connect to MelatoninPedals wireless network with password 1234567890 mDNS responder started HTTP server started on port 80 Connect to http://Melatonin.local/update for firmware update Connect to http://Melatonin.local for configuration ipMIDI started RTP-MIDI started on port 5004 OSC server started on port 8000 Internal Total Heap 269248, Internal Free Heap 97704 SYSTEM_EVENT_STA_START SYSTEM_EVENT_SCAN_DONE

e36910 commented 1 year ago

image

e36910 commented 1 year ago

image

alf45tar commented 1 year ago

It looks like it is not connected with the software because I do not see any software exception error like "division by zero" or "illegal address". It is a normal log when someone pressed the reset. I suggest to check your hardware connections, short circuit and power supply. If you post some shots of internals I can have a look?

e36910 commented 1 year ago

IMG_20230305_120443_Mi9T_g8 4 LMC r9 v1

e36910 commented 1 year ago

IMG_20230305_120453_Mi9T_g8 4 LMC r9 v1