• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

Wireless Brewpi Via Wifi

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Hey Lee

Not sure why the email got bounced sorry. I can't figure out what I'm doing wrong. I can flash the esp firmware files fine (3.0.14), I can even setup the WiFi part at the end. but the pi will not flash the hex file to the ATmega328 portion. However I noticed in the post above your using older files compared to web page (2.2.3). I tried those also but was not able to flash the esp_init_data_default.bin file from the Expressif Systems GitHub.

Any ideas would be great.
 
Last edited:
I was able to flash 2.2.3 files. the default.bin file must have been a bad download. Still no luck with flashing brewpi-arduino-uno-revC-0_2_11.hex
 
I was able to flash the newer esp firmware, that's what's on my test bench right now. I updated that on my website, can't edit the above anymore.

How is it you are trying to flash the Arduino? What position are your switches in and what errror(s) are you getting?
 
1. OFF
2. OFF
3. ON
4. ON
5. OFF
6. OFF
7. OFF
8. OFF
pi@brew-pi:~ $ sudo /home/brewpi/utils//updateFirmware.py

Arduino program script started.

Settings will not be restored
Devices will not be restored
2019-04-23 18:24:39 Opening serial port.
Loading programming settings from board.txt
Checking hex file size with avr-size.
Program size: 27954 bytes out of max 32256
Programming Arduino with avrdude:
/usr/share/arduino/hardware/tools/avrdude -F -e -p atmega328p -c arduino -b 115200 -P /dev/ttyUSB0 -U flash:w:"brewpi-arduino-uno-revC-0_2_11.hex" -C /usr/share/arduino/hardware/tools/avrdude.conf
Result of invoking avrdude:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done. Thank you.


There was an error while programming.

BrewPi script will restart automatically.


I Also tried XLoader from a windows box but it just locks the program up.
 
If you try this on Windows you will need to make sure you have the CH340 drivers installed. If it shows up as a COM port then you have that part handled. If you are comfortable with the Arduino IDE, you can try flashing a blank sketch or even the Blink one to see if that goes.

Basically it's a communications issue. Do you have anything else connected to the board when you try this? If you have anything connected other than the USB, it could be that you have it connected in the wrong spot and it's interfering with the upload. You mentioned in your email that you have multiple boards, did you try one of the other ones?

You'll also want to make sure nothing else is trying to communicate out that port while you flash. Make sure BrewPi is stopped and the do_not_run_brewpi file is being created in your /var/www/html directory, or you issue the command 'sudo systemctl stop brewpi'.

I'm assuming a single chamber here. If you have a multi-chamber then some of the above will need to be modified.
 
Morning Lee
CH340 is installed and was working according to the NodeMCU Firmware Programmer. I agree its a communications thing, before i gave up last nite, I did try to flash using the Arduino IDE. It failed but I don't remember the exact message. I have a feeling its something really silly I'm doing wrong, but because i have so little time to play with this I'm always rushing.

I found this page in my searches. https://www.instructables.com/id/How-to-fix-bad-Chinese-Arduino-clones/
"In some cases the board might still not work. This is because there is no bootloader installed on the Atmel microcontroller chip."
What do you think


Funny thing i noticed when using NodeMCU Firmware Programmer, 2 of the three boards have the same MAC address.
 
Have you tried your other boards as well? I bought several and had no issues. You never know of course.

I was under the impression that no boot loader would cause the script to fail to detect the board but I may be wrong on that. Never came across one to test it.

Do you have the ability to flash the boot loader?
 
Back
Top