ronaldombre / ReBrewie

Custom, Open-Source firmware for the Brewie B20+ (and maybe B20)
MIT License
11 stars 5 forks source link

"Missing" instructions how to build (and install) the firmware #9

Open smoe opened 2 years ago

smoe commented 2 years ago

This is not really an issue, you may say that you only want those to try this who already know what they are doing. But you have not too many Brewie-users as co/assistant-developers to choose from and for me at least I can only say that I would love see the initial hurdle lowered.

Could you please drop a few lines in reply to this issue on how to build the firmware? I will then prepare a PR with a document that fills the gaps and explains the compilation and installation with screenshots for my B20.

Many thanks!

ronaldombre commented 2 years ago

The firmware is built with Arduino. The Brewie uses the Atmega2560, so you need to select the Mega2560 for the device. Obviously there won't be any device actually connected to your computer, so just build it, don't have it upload. To actually upload it, you'll need to SCP the file to the Brewie and upload it there. Your other option is using an in-circuit programmer and use the 6-pin connector on the Brewie PCB. Doing it on the Brewie is easier, and you can just use the brewie-upload-fw script to do it. Kill the Brewie app (killall BrewieApplication) and then upload (brewie-upload-fw ReBrewie.ino.hex). Restart the application or reboot. Doing this on a B20+ requires a change in the script so that the reset pin polarity is flipped. There is a define statement for before and after that can be changed. I suppose I can upload my version for the B20+ users out there.