Skip to content

merkur2k/firmware

 
 

Repository files navigation

This is the main source code repository for the firmware on the BrewPi brewing temperature controller.

Getting started

End users will not have to compile the firmware themselves.

We provide pre-compiled binaries in releases.

Updating your controller

Our update script (part of brewpi-tools) automatically downloads the latest release to flash to your controller.

To update your controller, the brewpi script and the web interface, you will generally just run:

cd ~/brewpi-tools
sudo python updater.py

You can also upload to your controller from the BrewPi web interface. For the Spark Core, this requires that you already have a version of BrewPi running on it. If not, read how to flash via DFU below.

Building the firmware for Spark

If you want to make your own changes to the firmware, follow these steps:

Clone this repository and spark-firmware to the same parent folder (e.g. 'brewpi'). This repository depends on the spark-firmware repository to build.

  • In the spark-firmware repo, change to the "feature/hal" branch: git checkout feature/hal
  • in the firmwarwe repo, it is recommended to change to the "develop" branch: git checkout develop

Then browse to platform/spark/ in the firmware repo and run make:

cd platform/spark
make

This will build the binary to the file platform/spark/target/brewpi.bin. You can upload your new binary via the BrewPi web interface.

The repository contains a NetBeans project. NetBeans is our editor of choice for development and hardware debugging.

Flashing the firmware via DFU

If uploading firmware via the web interface fails, you can flash new firmware to your Spark Core with dfu-util. Please refer to this guide on our community forum.

You can also build the firmware and flash directly by running make progra-dfu from platform/spark.

Building the firmware for Arduino

We do not recommend the Arduino to new users. The Spark platform is much more powerful and future proof. We will try to make new features available where possible for our existing Arduino users, but we are running into the limits of the platform.

To build our firmware for Arduino, you will have to use Atmel Studio. The repo includes an Atmel studio project. Select the right processor (Atmega328P for the Arduino Uno, Atmega32U4 for the Leonardo) and set up the right shield in Config.h.

Changelog

A list of the changes per release can be found in the CHANGELOG file.

License

Unless stated elsewhere, file headers or otherwise, all files herein are licensed under an GPLv3 license. For more information, please read the LICENSE file.

Contribute

Contributions to our firmware are very welcome. Please contact us first via our community forum to discuss what you want to code to make sure that it aligns with our road map.

Please send pull requests against the develop branch. We can only accept your pull request if you have signed our Contributor License Agreement (CLA).

About

Brewing temperature control firmware for Spark Core and Arduino

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 58.6%
  • C 40.2%
  • Makefile 0.6%
  • CSS 0.3%
  • Objective-C 0.2%
  • HTML 0.1%