vitotai / BrewPiLess

Use an ESP8266 to replace RPI and Arduino. Running BrewPi without Pi, therefore, BrewPi-Less
358 stars 134 forks source link

Help with ESP WROOM 32 firmware #316

Closed jaimeagaviria closed 3 years ago

jaimeagaviria commented 3 years ago

Hello, I have been using this wonderful project on an esp2866 (Nodemcu), it works very well and I have been able to load the firmware from the linux console like this:

sudo python3 esptool.py --port /dev/ttyUSB0 erase_flash sudo python3 esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dio 0 BrewPiLess.v4.1r4.4m2m.spanish.bin

After loading the firmware I can see a network called brewpiless immediately

Now I would like to test it on an ESP WROOM 32, I think the software can work much better there, is that correct?

In the case of ESP32, after following the same procedure used with esp2886, the brewpilles wifi network does not get up to connect and configure it, I assume that the software did not work correctly

I have loaded the firmware as follows:

sudo python3 esptool.py --chip auto --port /dev/ttyUSB0 erase_flash sudo python3 esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect -fm dio 0 BrewPiLess.v4.1r4.esp32.bin

Result jaime@desarrollo-jag:~/Downloads/esptool-master$ sudo python3 esptool.py --chip auto --port /dev/ttyUSB0 erase_flash esptool.py v3.0-dev Serial port /dev/ttyUSB0 Connecting.... Detecting chip type... ESP32 Chip is ESP32-D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 24:0a:c4:59:1e:00 Uploading stub... Running stub... Stub running... Erasing flash (this may take a while)... Chip erase completed successfully in 14.3s Hard resetting via RTS pin...

jaime@desarrollo-jag:~/Downloads/esptool-master$ sudo python3 esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flashsize=detect -fm dio 0 BrewPiLess.v4.1r4.esp32.bin esptool.py v3.0-dev Serial port /dev/ttyUSB0 Connecting........ Detecting chip type... ESP32 Chip is ESP32-D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 24:0a:c4:59:1e:00 Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 4MB Compressed 1556848 bytes to 952479... Wrote 1556848 bytes (952479 compressed) at 0x00000000 in 84.2 seconds (effective 148.0 kbit/s)... Hash of data verified.

Leaving... Hard resetting via RTS pin...

Can anybody help me? am I using the command and the correct firmware version?

Thank you very much for the help

jaimeagaviria commented 3 years ago

Hi, what I did was install the firware from vscode and platformio

Install the BrewPiLess bin on the ESP32 Download the BrewPiLess Repository: git clone https://github.com/vitotai/BrewPiLess.git If you don’t have it installed, you will need to download and install VSCode. Open the repository in VSCode. If you don’t have Platform.io installed, go to the extensions workspace and install it. On my mac, it failed to install the first, and it was because virtualenv needed to be installed. Completing the three steps listed in the Perquisites section here, and then uninstall/reinstall the extension fixed the issue. Connect the NodeMCU to your computer via USB, and flash the bin to the board (make sure you are in the working directory of the repo): command+shit+p

PlatformIO: Build PlatformIO: Upload PlatformIO: Clean After the flash is complete, the NodeMCU will begin broadcasting its own SSID, you need to connect to to this WiFi network to configure it to connect to your home WiFi. Username: brewpiless Password: brewpiless Open a browser it should auto connect to a config page, where you can change the username, password, and the title. Save the changes and on the next page enter you home wireless info. After this is complete you can connect back to your home wifi.