JPZV / BluN64-ESP32

A project to emulate a N64 controller as a modern one with ESP32.
Other
24 stars 9 forks source link

ESP32 problem with button combo #7

Closed victorkte closed 1 year ago

victorkte commented 1 year ago

Hi JPZV

I'm atempting to do the mod again but I ran into problems again

I flashed 2 chips using yakara's pinout, have double checked the connections with a multimeter and everything is identical on both boards however only one board can make the button combination for the ZR button (which should be START + R)

also it appears that the home and zr button are always "pressed" in the controller that can't register the combo

check this video of the problem https://streamable.com/uj64ty

and here's why I say that the home and ZR buttons are always pressed notice how when i turn on the controller the ZR is pressed and the home "long press" menu pops up https://streamable.com/77klzu

JPZV commented 1 year ago

Okey, that's completely weird, that shouldn't happen for whatever reason. Anyway, looking at the GitHub Action, I found out that I had a Typo, defining one of the Combo GPIO to 35, instead of 15. 35 is being used for the Home Button, which is not in use anymore and it's there just for Forked projects. But that doesn't explain why you're getting pressed both L and Home.

Answering your question: This project was one of my first made with the ESP-IDF framework, and it has maaaaaaaaaaany issues related of how it's worked. One of them being the highly reliably on header files instead of using the sdkconfig. This means that every change must be done practically on-code. Meanwhile, BluControl was make almost from the ground, with keeping in mind about the people who don't know how to even modify a header file without messing up. For this, I use only sdkconfig for any type of modification.

As BluN64 and BluControl share many thing, I decided to use BluControl-SDK project as an intermediary, so I can keep BluN64 up to date while working with BluControl. Sadly, as I said before, BluControl uses only sdkconfig, and both the LED GPIO and the Mode Switching GPIOs are defined there. So, I had to use the sed command from Linux to replace the GPIOs from the original pinout to the new GPIOs.

Luckily, this shouldn't happen at all on BluControl, because every type of pre-defined controller will have its own sdkconfig

Anyway, here's the final final final final compilation: BluN64-Yakara-ESP32.zip

victorkte commented 1 year ago

Nothing changed, L still doesn't register and start is still as the combo,

and honestly at this point I give up, I even burned my fingertips while soldering, I'm gonna flash the build without the LED and call it a day, I'll come back when blucontrol is released

victorkte commented 1 year ago

Ok now something is wrong on my side I flashed that other build without the LED working and now start is still working as the button combo????

I double checked with the multimeter and there are no bridges on the soldering points could it be a faulty installation?

victorkte commented 1 year ago

@JPZV ok now its working perfectly

turns out there was a tiny bridge from ground to L that somehow I didnt detect at the first time (probably because my chip is soaked in flux by now)

I reflashed it with this version

Here's the final, compiled directly from GitHub Action. I'll cross the fingers so it's working correctly now 🙏🙏🙏🙏

and now its working perfectly, LED, button combo, bluretro (even tested it on my console)

can you please ask yakara to update his web installer with this? because I made my entire video tutorial using his installer page

JPZV commented 1 year ago

That's a good news!

Could you please confirm that the Final version if working properly? Because it has the typo fixed. In theory, without that fix, you shouldn't be able to switch between the Switch mode and the Bluetooth one.

In any way, I'll let him know :)

victorkte commented 1 year ago

Oh I already delivered the controllers, but don't worry I tested everything and my friend also tested on his switch & smartphone and everything is working perfectly

So if it isn't broken don't fix it 😂

JPZV commented 1 year ago

I'll close this as completed. Feel free to re-open if you find a related issue or open a new issue as you like