I am new to programming and this is my first BrewPi Community post. I have successfully installed the BrewPi web interface on my RPi. I also update Brewpi with ‘sudo python ~/brewpi-tools/updater.py’.
Then when I am trying to program the Arduino using the brewpi-arduino-uno-revC-0_2_10.hex firmware, I am getting the same error message as everyone else.
Mar 18 2018 16:32:41 Background thread for serial stopped
Couldn’t detect a compatible board to program
Mar 18 2018 16:32:41 New program uploaded to controller, script will restart
Mar 18 2018 16:32:47 Notification: Script started for beer ‘My First BrewPi Run’
Mar 18 2018 16:32:47 Connecting to controller…
Mar 18 2018 16:32:47 Background thread for serial started
Mar 18 2018 16:32:47 Serial (re)connected at port: /dev/ttyACM0
Mar 18 2018 16:32:57 Warning: Cannot receive version number from controller. Check your port setting in the Maintenance Panel or in settings/config.cfg.
I just went through this and Elco was kind enough to walk me through it. Keep in mind that the latest versions of BrewPi only work with the Spark, which is a lot more capable than the Arduino and has modular connectors to make installation easier and more reliable.
I found the Docker container version of BrewPi does not include the legacy code. I had to use the automated installation detailed in the documentation before I could make the switch. In my case, because I am running raspian stretch, I also had to install php5 for BrewPi to work. Here are the steps I took:
change to legacy brewpi for arduino:
sudo su - brewpi
git checkout legacy
cd /var/www/html
git checkout legacy
^d
Cheers,
Bob
Edit: And, to answer your original question, I used a utility called HexUploader (I use a Mac) to program the Arduino with firmware 0.2.10. You can find the brewpi-arduino-uno-revC-0_2_10.hex file in the BrewPi GitHub.
I resolved the problem to load the program on arduino. the program is load correctly and on arduino the light TX and RX start but now the script non running and not start.
Thank you for the answers.
error: pathspec ‘legacy’ did not match any file(s) known to git.
Edit:
On the container version I get the following output from git show-ref:
root@0e135eb9f54d:/home/brewpi# git show-ref
72dbd015338350d61ebbade909c6b975c50ea744 refs/heads/master
72dbd015338350d61ebbade909c6b975c50ea744 refs/remotes/origin/HEAD
72dbd015338350d61ebbade909c6b975c50ea744 refs/remotes/origin/master
Wow, thanks for this! I know you have better things to do than screw around with the legacy code. For me, the Arduino approach is attractive because I love to tinker and build things, and (maybe more importantly) I already have one that’s just sitting on the shelf. Now I get to learn a little bit about Docker, too.
Hello. thanks in advance for your patience as I’m asking a total noob question. Where would I enter these commands? Would these be entered through the console in the brew pi container?
Sorry for the foolish question earlier. I entered the commands at the command prompt in my raspberry pi. However, I then tried to program the arduino uno from the maintenance panel by pointing it to use the brewpi-arduino-uno-revC-0_2_10.hex file i downloaded from BrewPi GitHub and received the following
Nov 21 2018 10:51:25 Fresh start! Log files erased.
Nov 21 2018 10:53:33 Background thread for serial stopped
Couldn’t detect a compatible board to program
Nov 21 2018 10:53:33 New program uploaded to controller, script will restart
Nov 21 2018 10:53:39 Notification: Script started for beer ‘My First BrewPi Run’
Nov 21 2018 10:53:39 Connecting to controller…
Nov 21 2018 10:53:39 Background thread for serial started
Nov 21 2018 10:53:49 Warning: Cannot receive version number from controller. Check your port setting in the Maintenance Panel or in settings/config.cfg.
Nov 21 2018 10:59:53 stopScript message received on socket. Stopping script and writing dontrunfile to prevent automatic restart
Nov 21 2018 10:59:53 Background thread for serial stopped
Nov 21 2018 11:00:04 Notification: Script started for beer ‘My First BrewPi Run’
Nov 21 2018 11:00:04 Connecting to controller…
Nov 21 2018 11:00:04 Background thread for serial started
Nov 21 2018 11:00:14 Warning: Cannot receive version number from controller. Check your port setting in the Maintenance Panel or in settings/config.cfg.
Can someone please help me to understand what I’m doing wrong? Thanks in advance for any help that you can offer!