BitMaker-hub / NerdMiner_v2

Improved version of first ESP32 NerdMiner
Other
1.37k stars 250 forks source link

Added support for another ESP32_2432S028 variant. #295

Closed paelzer closed 5 months ago

paelzer commented 5 months ago

Hello

Related to discussion: https://github.com/BitMaker-hub/NerdMiner_v2/discussions/273

I have added support for another variant of ESP32_2432S028. There are several different boards available and some need to have different settings than others. This changes work at least fine with my variant, which is different from others, as for example, it has micro USB and USB-C connector.

Unfortunately I only have this one which I can use for testing:

image

As mentioned earlier, I don't have professional programming background so I'm not sure, if the way I implemented it, is ok, even if it works fine :-)

Boris

sany3001 commented 5 months ago

I will try your code with my board. Seems to be same as yours, but who knows really. :-) I guess I can switch to your fork, build it and flash it.

I cannot build that branch:

image

This is from 2USB environment. From default one I have another errors.

sany3001 commented 5 months ago

Thanks for quick fix, already building! :+1:

paelzer commented 5 months ago

Hi, not yet done. I still try to figure out what change from Friday caused it to stop working. Will look into it again later.

sany3001 commented 5 months ago

Colors are OK! But content on display corresponds to regular miner. With some missing data. Keep updated your tester. :-)

unnamed

sany3001 commented 5 months ago

Flashed again and it looks good now

unnamed (1)

HW is I guess exactly the same as yours.

sany3001 commented 5 months ago

So it is not about flashing device, it is about boot. Sometimes you get the statistics and the pool info, sometimes you don't.

paelzer commented 5 months ago

@sany3001 Hello, just a question... did you using Linux when the compiling failed in your screenshot above?

sany3001 commented 5 months ago

Yes, all trials in Linux Mint.

paelzer commented 5 months ago

@sany3001 OK, that was my guess, could you please try again with this 2nd branch I created, if you find some time:

image

It should work. I successfully tested with Ubuntu but should of course work with Mint as well. I just added pin defines for SD card slot to have the SD card slot working. But to be able to compile under Linux I also had to replace back slashes by forward slashes in "SDCard.h". I found this information in the screenshot you posted:

image

sany3001 commented 5 months ago

master and add-SD-card-pin-defines-for-ESP32_2432S028 are both buildable for me.

I have flashed add-SD-card-pin-defines-for-ESP32_2432S028 and the final result is the same - pool info is not always available. Colors are ok.

68gt500 commented 4 months ago

I also just received the new variant, with the added USB-C connector. Two issues 1 - When compiling with tft_espi the display is inverted - need to add: tft.invertDisplay(1); That fixes that issue. 2 - on the original the blue RGB LED would be always on - fixed that with digitalWrite(16, LOW); on the new variant the green RGB LED is always on, but neither setting 16, or 17 low seems to help.

Any ideas ?

HenrysCat commented 4 months ago

display is inverted - need to add: tft.invertDisplay(1); That fixes that issue.

Where do I add this?

I have followed info here https://github.com/BitMaker-hub/NerdMiner_v2/discussions/273 and edited the files, flashed and still get inverted colours?

68gt500 commented 4 months ago

@HenrysCat: The inverted display can be corrected in either of 2 places:

paelzer commented 4 months ago

@HenrysCat

Hello

In case of the ESP32_2432S028 version with USB-C and micro USB...

If you use the current Nerd Miner version no more manual adjustment in the code should be needed anymore, to fix the color setup, if you just select "ESP32_2432S028_2USB" as env in the bottom bar before building, since the fix is already implemented in the source code.

image

Boris

HenrysCat commented 4 months ago

Ah I see now, this is not just editing files is it, I need to build in Visual Studio? I have it installed but never used it, this may be beyond me, is there any way to get .bin files already built with the required changes?

sany3001 commented 4 months ago

Ah I see now, this is not just editing files is it, I need to build in Visual Studio? I have it installed but never used it, this may be beyond me, is there any way to get .bin files already built with the required changes?

It shall be really easy to build and flash. Please check this: https://github.com/BitMaker-hub/NerdMiner_v2/issues/306#issuecomment-1959131743 If needed, we can add more info there.

HenrysCat commented 4 months ago

paelzer sany3001

Thank you, it was easy to build.

djcasper1975 commented 3 months ago

thankyou i have done this with no experience by your helps here.

denvee32 commented 3 months ago

is there a .bin out there to just flash it for those of us that are not programmers? Please and thanks. i have tried the bins from the fork [NerdMiner_v2_twoUSB_support] but it still not in dark mode. tried the latest bin here in the main build no go

19201003080114 commented 3 months ago

https://flasher.bitronics.store/

denvee32 commented 3 months ago

https://flasher.bitronics.store/

No go still the same reverse colors

19201003080114 commented 3 months ago

Try to flash the bin using https://espressif.github.io/esptool-js/

HenrysCat commented 3 months ago

is there a .bin out there to just flash it for those of us that are not programmers?

Here

denvee32 commented 3 months ago

is there a .bin out there to just flash it for those of us that are not programmers?

Here

BOOM.. thanks!!!!!