Try a different usb cable
Hmm, yes, I did not look at the command well. The processor is m328p, the protocol is arduino, which is correct. I think wbarber69’s suggestion is good. Crappy USB cables can cause a lot of issues.
I tried a different cable first and the “View Logs” printout for it is the first one listed below. After that I switched the “Board Type” drop down box from “Uno” to “ATmega328 based” and tried is again with the Uno rev C hex code and the second set of “View Logs” printouts are below for that. It appears the USB cable didn’t change anything but something actually worked better when I selected the 328 board. The script is currently running and the BrewPi status screen in the top left of the page is showing “Mode Off” and giving me a idle time counter. Does this mean its working? Thanks for all your help so far:
FIRST VIEW LOGS REPORT AFTER USING NEW USB CABLE
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Warning: Cannot receive version number from %(a)s. Your Arduino is either not programmed yet or running a very old version of BrewPi. Arduino will be reset to defaults.
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 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/ttyACM0 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: reading input file "brewpi-uno-revC.hex"
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: writing flash (25766 bytes):
Writing | #####avrdude: stk500_recv(): programmer is not responding
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
Mar 18 2015 23:26:10 Notification: Script started for beer 'My First BrewPi Run’
Mar 18 2015 23:26:52 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
BrewPi: wifiChecker: Cannot find gateway IP. Restarting wlan0 interface… (Wed Mar 18 23:40:02 CDT 2015)
/sbin/ifdown: interface wlan0 not configured
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Mar 18 2015 23:40:09 Notification: Script started for beer 'My First BrewPi Run’
Mar 20 2015 17:33:11 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
SECOND VIEW LOGS REPORT AFTER SWITCHING TO “ATmega328 based” BOARD TYPE:
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Warning: Cannot receive version number from %(a)s. Your Arduino is either not programmed yet or running a very old version of BrewPi. Arduino will be reset to defaults.
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 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/ttyACM0 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: reading input file "brewpi-uno-revC.hex"
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: writing flash (25766 bytes):
Writing | ################################################## | 100% 4.96s
avrdude: 25766 bytes of flash written
avrdude: verifying flash memory against brewpi-uno-revC.hex:
avrdude: load data flash data from input file brewpi-uno-revC.hex:
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: input file brewpi-uno-revC.hex contains 25766 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 4.02s
avrdude: verifying …
avrdude: 25766 bytes of flash verified
avrdude done. Thank you.
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
Mar 20 2015 17:36:10 Notification: Script started for beer 'My First BrewPi Run’
Mar 20 2015 17:36:21 Found BrewPi v0.2.4, running commit 2a6f7f05 build 40, running on a Arduino Uno with a revC shield on port /dev/ttyACM0
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Checking current version: Found BrewPi v0.2.4, running commit 2a6f7f05 build 40, running on a Arduino Uno with a revC shield on port /dev/ttyACM0
Requesting old settings from Arduino…
Saved old settings to file oldAvrSettings-Mar-20-2015-17-36-33.json
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 bytes out of max 30720
Programming Arduino with avrdude: /usr/share/arduino/hardware/tools/avrdude -F -e -p atmega328p -c arduino -b 57600 -P /dev/ttyACM0 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: stk500_getsync(): not in sync: resp=0x44
avrdude done. Thank you.
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
Mar 20 2015 17:37:10 Notification: Script started for beer 'My First BrewPi Run’
Mar 20 2015 17:37:21 Found BrewPi v0.2.4, running commit 2a6f7f05 build 40, running on a Arduino Uno with a revC shield on port /dev/ttyACM0
Yes, that seems to have worked.
I guess your UNO knockoff is not really an UNO knockoff but an earlier version.
The Uno has an atmega16u2 as serial converter chip, while the older versions had and FTDI chip. They also used different serial protocols. Your ‘UNO’ might have an older version of the bootloader.
I’m also having the same issue. I tried to switch my USB cable and had the same results:
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Warning: Cannot receive version number from %(a)s. Your Arduino is either not programmed yet or running a very old version of BrewPi. Arduino will be reset to defaults.
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 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/ttyUSB1 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: reading input file "brewpi-uno-revC.hex"
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: writing flash (25766 bytes):
Writing | ################################################## | 100% 4.50s
avrdude: 25766 bytes of flash written
avrdude: verifying flash memory against brewpi-uno-revC.hex:
avrdude: load data flash data from input file brewpi-uno-revC.hex:
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: input file brewpi-uno-revC.hex contains 25766 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.54s
avrdude: verifying …
avrdude: 25766 bytes of flash verified
avrdude done. Thank you.
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
Mar 20 2015 23:16:05 Error opening serial port. Trying alternative serial port /dev/ttyUSB1.
([Errno 2] No such file or directory: ‘/dev/ttyUSB0’)
Mar 20 2015 23:16:05 Notification: Script started for beer 'My BrewPi’
Mar 20 2015 23:16:16 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
I also tried switching to ATmega328:
.
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Warning: Cannot receive version number from %(a)s. Your Arduino is either not programmed yet or running a very old version of BrewPi. Arduino will be reset to defaults.
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 bytes out of max 30720
Programming Arduino with avrdude: /usr/share/arduino/hardware/tools/avrdude -F -e -p atmega328p -c arduino -b 57600 -P /dev/ttyUSB1 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: stk500_getsync(): not in sync: resp=0x44
avrdude done. Thank you.
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
Mar 20 2015 23:19:06 Error opening serial port. Trying alternative serial port /dev/ttyUSB1.
([Errno 2] No such file or directory: ‘/dev/ttyUSB0’)
Mar 20 2015 23:19:06 Notification: Script started for beer 'My BrewPi’
Mar 20 2015 23:19:17 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
I am able to program the Arduino with it hooked up to my rpi (which it is now) through Arduino IDE. I was able to clear the EEPROM and upload Blink. Not really sure where to go from here…
having a similar issue here. I have 4 knock-off pro minis. I got all 4 to program correctly once. I changed a bit of the avr code to reflect my project. now when I try to upload I am successful on 3 out of the 4. the fourth one however is giving me the out of sync error now for some reason. I do have brewpi up and running on it but I can no longer use the programmer to upload to this board. I guess its a bad bootloader or something I have run everything I can think of. tried erasing the eeprom - not in sync. tried uploading blink - not in sync. tried different revisions of brewpi - not in sync. I even re-soldered all the connections, no luck. dont really know where to go from here.
Hmmm… I figured it out on my end. Apparently dtr is no longer a functional contact on this particular board. I was finally able to run a sketch in ide by hitting reset at the right time. My user to serial interface has multiple options for reset, so I tied one of them directly to one of the minis reset pins and was finally able to upload the hex.
OK so when I set my board type as ATmega328 I am able to see all my devices in the detected devices area. The temp sensors are reading the correct temperature and they are displaying it in the top left corner of the BrewPi main screen. The problem I am having now is that I cannot get my devices to install. I am setting them up as instructed, clicking apply and then refreshing the device list but it keeps saying “no devices installed” yet it will still display the temperatures as read by the sensors. Should I be trying a different hex code (currently using Uno Rev C) or something else?
Thanks everyone for your help so far.
If you your settings do not stick, reset to default settings with: echo -ne 'E\n' > /dev/ttyACM0
I suspect this block of code is refactored incorrectly:
https://github.com/BrewPi/brewpi-script/blob/master/programArduino.py#L228
It should not re-open the serial port when attempting to close it. I don’t have time to test this myself this weekend, but I think line 232 should be removed.
Thanks so much Elco. This seems to have worked for me. Appreciate all the advice!
Hi guys,
Is it possible there was a bug introduced in the latest version? My BrewPi (with Arduino Uno RevC) has been working fine for the past few months, but last night I tried updating everything to the latest version and get the same error as MylesMac.
The Pi defintely seems to see the arduino - if I click on ‘Refresh Device List’ I see the TX and RX lights flash on the Arduino.
Here’s my log (sorry for the dump - is there a way to add attachments to posts?)
Mar 30 2015 21:08:06 Notification: Script started for beer 'None’
Mar 30 2015 21:08:17 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
**** Arduino Program script started ****
Settings will be restored if possible
Devices will be restored if possible
BrewPi: wifiChecker: Attempt 1 to reach 192.168.178.1 failed (Mon Mar 30 21:10:05 CEST 2015)
Checking old version before programming.
Warning: Cannot receive version number from %(a)s. Your Arduino is either not programmed yet or running a very old version of BrewPi. Arduino will be reset to defaults.
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 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/ttyACM0 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
result of invoking avrdude:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: reading input file "brewpi-uno-revC.hex"
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: writing flash (25766 bytes):
Writing | ################################################## | 100% 4.97s
avrdude: 25766 bytes of flash written
avrdude: verifying flash memory against brewpi-uno-revC.hex:
avrdude: load data flash data from input file brewpi-uno-revC.hex:
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: input file brewpi-uno-revC.hex contains 25766 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.91s
avrdude: verifying …
avrdude: 25766 bytes of flash verified
avrdude done. Thank you.
avrdude done!
Giving the Arduino a few seconds to power up…
Back up in 5…
BrewPi: wifiChecker: Attempt 2 to reach 192.168.178.1 failed (Mon Mar 30 21:10:23 CEST 2015)
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 645, in
{‘settings’: restoreSettings, ‘devices’: restoreDevices})
File “/home/brewpi/programArduino.py”, line 173, in programArduino
return programmer.program(hexFile, restoreWhat)
File “/home/brewpi/programArduino.py”, line 228, in program
while retries and self.ser:
AttributeError: ArduinoProgrammer instance has no attribute 'ser’
BrewPi: wifiChecker: Unable to reach router. Restarting wlan0 interface… (Mon Mar 30 21:10:41 CEST 2015)
/sbin/ifdown: interface wlan0 not configured
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Mar 30 2015 21:11:05 Notification: Script started for beer 'None’
Mar 30 2015 21:11:16 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
This was indeed a bug, and this pull request should fix it:
Thanks Elco. I actually got it working last night before I saw your post. I selected Leonardo from the menu instead of Uno, and although I’d already tried that several times, this time it worked for some reason.
For others who come across this post, I notice this posting that recommended flashing a simple/blank program to the arduino before flashing BrewPi. I didn’t do that but it may work for others:
Elco, when it will be implemented? When may I could update/upgrade Brewpi to fix it?
Thanks,
Fabiano
Hi
First time poster here…
I’ve added the changes to the best of my ability by manual editing the files, but I stil see some wierd behaviour. Now the flash process it self seems ok, but I still get the warning about unable to receive version number after the the script restarts :
**** Arduino Program script started ****
Settings will not be restored
Devices will not be restored
Checking old version before programming.
Warning: Cannot receive version number from Arduino. Your %(a)s is either not programmed yet or running a very old version of BrewPi. %(a)s will be reset to defaults.
Loading programming settings from board.txt
Checking hex file size with avr-size…
Program size: 25766 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/ttyUSB1 -U flash:w:“brewpi-uno-revC.hex” -C /usr/share/arduino/hardware/tools/avrdude.conf
Result of invoking avrdude:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: reading input file "brewpi-uno-revC.hex"
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: writing flash (25766 bytes):
Writing | ################################################## | 100% 4.49s
avrdude: 25766 bytes of flash written
avrdude: verifying flash memory against brewpi-uno-revC.hex:
avrdude: load data flash data from input file brewpi-uno-revC.hex:
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: input file brewpi-uno-revC.hex contains 25766 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.56s
avrdude: verifying …
avrdude: 25766 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
Avrdude done, programming succesful!
Giving the Arduino a few seconds to power up…
Back up in 5…
Back up in 4…
Back up in 3…
Back up in 2…
Back up in 1…
Back up in 0…
Waiting for device to reset.
Checking new version: Found BrewPi v0.2.4, running commit 2a6f7f05 build 40, running on a Arduino Uno with a revC shield on port /dev/ttyUSB1
Resetting EEPROM to default settings
Now checking which settings and devices can be restored…
Could not receive version number from old board, No settings/devices are restored.
Apr 12 2015 09:27:07 New program uploaded to Arduino, script will restart
Apr 12 2015 09:27:14 Error opening serial port. Trying alternative serial port /dev/ttyUSB1.
([Errno 2] No such file or directory: ‘/dev/ttyUSB0’)
Apr 12 2015 09:27:14 Notification: Script started for beer 'My First BrewPi Run’
Apr 12 2015 09:27:24 Checking software version on controller…
Apr 12 2015 09:27:25 Warning: Cannot receive version number from Arduino. Your Arduino is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your Arduino.
Any idea on what is causing this ?
regs,
Per Arne
Oslo, Norway
Replying to myself here…
A reboot of the raspberry pi and the uno resolved this as it is working now…
regs,
Per Arne
Realised i’d posted in the wrong place before as had put it under firmware but this is more appropriate place and i’ll add what I have done to try and help others.
bear in mind i use a mac so things may differ on windows and linux.
ordered knock off chinese arduino’s because they were less than $3 trying to upload the hex caused a problem it just couldn’t find the Arduino, i swapped USB cables but nothing (it said it could not communicate to /dev/ttyACM0 or ACM1 or something similar)
to make sure my arduino wasn’t actually broken i downloaded Arduino software onto my mac and noticed that it didn’t appear under serial.
digging around i found out that some chinese knock offs don’t use the same USB/serial chip so i followed these instructions
i was then able to upload blink to the arduino and then once that had worked i uploaded a new sketch to the arduino (literally just clicking new and then upload not changing anything)
the next step was to work out what the tty serial was on the arduino
Ssh into the pi and with the arduino unplugged type
ls /dev/tty*
plug in the Arduino and type it again and see what has been added, in my case /dev/ttyUSB0
i next needed to edit the config.cfg file Brewpi manual hex upload instructions , i used cyberduck to do this, but i assume you can just
sudo nano /home/brewpi/settings/config.cfg
add in these two lines at the end
port = /dev/ttyUSB0
altport = /dev/ttyUSB1
and save out.
Hoping that had fixed my problem i went into brewpi web ui and tried to upload the Uno Rev C Hex file
to my frustration it spat out
Warning: Cannot receive version number from controller. Your controller is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your controller.
Some more reading around on the forums and someone mentioned (in this thread) that using the following:
Hex File: brewpi-uno-revC.hex
board type: Leonardo
Restore old settings after programming: No
Restore installed devices after programming: No
worked for them.
so i tried this… low and behold i now have a chinese knock off Arduino running brewpi, everything seems to work, i’d love to know why it works but settle for the fact it just does.
hope this little write up helps others in the same boat.
I stumbled across the BrewPi project bases on FuzzeWuzzes mammoth post on Homebrew talk, and as I already had been given an arduino as a christmas present last year and not found a project for it decided that I just needed to build one. So I ordered a Pi 2 (Model B 1GB), and a relay board.
After eventually getting the wifi dongle working I was waiting for a USD Type A-B cable to arrive, but found one in my box of bits, so linked up the UNO just to see what BrewPi looked like.
Following the excellent instructions. I ran the automatic install and everything appeared to work, apart from when I tried to upload the hex image and it told me I didn’t have the arduino-core installed . . .but that was simple to fix.
So I now have a SainSmart AT Mega 2560 Arduino ready to program, download the hex image for the Uno-RevC dated 01/07/2014, and try to upload using the settings
Board Type Mega 2560
Restore Old Settings No
Restore Old Devices No
I always get the same output as a result
Result of invoking avrdude:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9801
avrdude: erasing chip
avrdude: reading input file "brewpi-uno-revC.hex"
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: writing flash (25766 bytes):
Writing | ################################################## | 100% 4.56s
avrdude: 25766 bytes of flash written
avrdude: verifying flash memory against brewpi-uno-revC.hex:
avrdude: load data flash data from input file brewpi-uno-revC.hex:
avrdude: input file brewpi-uno-revC.hex auto detected as Intel Hex
avrdude: input file brewpi-uno-revC.hex contains 25766 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.31s
avrdude: verifying ...
avrdude: 25766 bytes of flash verified
avrdude done. Thank you.
Avrdude done, programming succesful!
Giving the Arduino a few seconds to power up...
Back up in 5...
Back up in 4...
Back up in 3...
Back up in 2...
Back up in 1...
Back up in 0...
Waiting for device to reset.
Warning: Cannot receive version number from controller. Your controller is either not programmed yet or running a very old version of BrewPi. It will be reset to defaults.
Resetting EEPROM to default settings
Warning: Cannot receive version number from controller after programming.
Something must have gone wrong. Restoring settings/devices settings failed.
Jul 31 2015 17:03:45 New program uploaded to controller, script will restart
Jul 31 2015 17:03:50 Notification: Script started for beer 'My First BrewPi Run'
Jul 31 2015 17:04:00 Checking software version on controller...
Jul 31 2015 17:04:11 Warning: Cannot receive version number from controller. Your controller is either not programmed or running a very old version of BrewPi. Please upload a new version of BrewPi to your controller.
I’ve even tried using XLoader to upload the hex image but the Pi reports that it is an old version or not programmed. I’m just downloading the IDE to this PC to check the Mega with Blink, but looking at the response in the log window, I think it’s fine.
Anyone Any ideas??
We do not support the Arduino Mega. You are trying to flash a hex file for the Arduino Uno to the Arduino Mega. That is why it is not working.
Time to get an Uno Then