ESP32-WiFi-Hash-Monster icon indicating copy to clipboard operation
ESP32-WiFi-Hash-Monster copied to clipboard

Recipe for Odroid-GO

Open tobozo opened this issue 5 years ago • 9 comments

This is a great project, I love it :heart_eyes:

As the maintainer of the ESP32-Chimera-Core I can't help but see every M5Stack application as a potential Odroid-GO application, so I tried to get it working outside the scope of your ReadME and somehow got successful.

[Update] Odroid-Go is now natively supported by ESP32-WiFi-Hash-Monster with full SD support and zero editing

~~I haven't checked yet if the capture to the SD is really operative, but the UI loads successfully is very similar to what I get on the M5Stack.~~

image

It worked by using the alternate ESP32-Chimera-Core (100% compatible M5Stack core) and adjusting bits of code (e.g. disabling the FastLed) and selecting "Odroid Go" in the boards menu.

Does it demonstate a working scenario with PSRAM enabled?

It's also good to know your project is compatible with the SD-Updater.

Odroid-GO Turing path:

  • M5.begin() replaced Serial.begin() as the first statement in the setup() => much less strange bugs when booting

  • SD.begin( TFCARD_CS_PIN ) turns out to be a better multi-board standard than maintaining SPI manually

  • Inheriting from existing macros can prevent pin conflicts:

    #define BUTTON_PIN_A BUTTON_A_PIN // button to change the channel
    #define BUTTON_PIN_C BUTTON_C_PIN // button to change the bright of the LCD
    
  • Got rid of the rotation (not needed by M5Stack or Odroid-Go anyway)

    // M5.Lcd.setRotation(1); // already performed by M5.begin()
    
  • Used the syntax of the {M5Stack|Chimera} core

    M5.Speaker.write(0); // Speaker OFF
    // dacWrite(25, 0); // Speaker OFF
    
  • Isolated all FastLed statements, including not launching the blinker task:

    #ifdef ARDUINO_M5STACK_FIRE
    #include <FastLED.h>
    #endif
    

Do you want a PR for this ?

tobozo avatar Nov 18 '19 13:11 tobozo

[update]

  • All .pcap files created on the SD are empty, will investigate. [edit] looks like SD logging is disabled in the setup.
  • Main benefit of using an Odroid-GO is to make proper screenshots (TFT_MISO is wired):

screenshot-1970-01-01_00h00m07s

screenshot-1970-01-01_00h14m40s

screenshot-1970-01-01_00h14m53s

screenshot-1970-01-01_00h15m04s

screenshot-1970-01-01_00h00m10s

tobozo avatar Nov 18 '19 14:11 tobozo

Hello,

I just stumbled upon this project and also have an Odroid-GO at home to play with, should I just follow your steps to make it work ? : )

Thanks

luminouw avatar Jul 09 '20 13:07 luminouw

@luminouw I haven't tried with the latest version but I'll be happy to hear your feedback and provide help.

the changes that occured since this topic was created is that now the ESP32-Chimera-Core is using the LovyanGFX display library as a separate dependency (available from the library manager), so you'll have to make sure you have the latest versions of those libraries installed, and that you selected the Odroid GO from the Arduino boards menu when you compile so that the Odroid-Go device is properly configured at compilation time.

possible glitches to watch : the purple monster looks scrambled -> can be easily fixed by commenting out one of the setSwapBytes statements (can't remember which one though)

please let me know how it went :-)

tobozo avatar Jul 09 '20 13:07 tobozo

Constantly says "insert sd" what to do?

shojkeee avatar Nov 11 '20 15:11 shojkeee

bad sdcard ?

tobozo avatar Nov 11 '20 16:11 tobozo

sorry. After I wrote a comment, I installed sd 16 gb and everything worked. I thought 2 gb was necessary

shojkeee avatar Nov 11 '20 16:11 shojkeee

can you please add some more information about the SD Card? i was using a 32Gig Sandisk Ultra, and it doesnt work. also formatting it to 16GB of Fat32... I dont know hot to fix the issue "INSERT SD"

SaiCode-DEV avatar Nov 12 '20 00:11 SaiCode-DEV

  1. make sure you've selected "ODROID_ESP32" from the arduino boards menu
  2. use a smaller partition on the SD card (e.g. 4GB)
  3. check your library manager to see if the libraries ESP32-Chimera-Core and M5StackUpdater are up to date
  4. disable psram

image

tobozo avatar Nov 12 '20 00:11 tobozo

I have a 16 Gb card divided into 2 partitions, one of the partitions is 2 GB.

shojkeee avatar Nov 12 '20 05:11 shojkeee