Raspberrypi to Arduino


#1

Hi I have installed /brewpi and /brewpi-tools on my Raspberrypi v3 but would like to control the brew via Arduino boards is this possible.


#2

Yes! I Have it running and I’m getting ready to start my first brew.

You’ll need to download firmware version 0.2.10 (brewpi-arduino-uno-revC-0_2_10.hex) from the github repo and use a separate program to load it to the arduino.

Here are my notes on getting the Pi loaded and configured (assumes a little pi/linux experience.) . Basically, once you get Raspbian running you need to add a few things to make BrewPi happy.

init:
	flash raspbian-stretch-lite image to microSD
    re-mount the SD in the computer
	cp wpa_supplicant.conf /Volumes/boot
		country=US
		ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
		update_config=1
		network={
			ssid="SSID"
			psk="WiFi Password"
		}
	touch /Volumes/boot/ssh
boot the raspberrypi
raspi-config:
	localization
	expand file system
add repo to apt-get (at the end of /etc/apt/sources.list):
	deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
update packages:
	sudo apt-get update
	sudo apt-get upgrade
install php5:
	setudo apt-get -y install php5 php5-curl php5-cli php5-mysql php5-gd git arduino-core
	sudo update-alternatives --set php /usr/bin/php5
install brewpi:
	git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools
	sudo ~/brewpi-tools/install.sh
change to legacy brewpi for arduino:
	sudo su - brewpi
		git checkout legacy
		cd /var/www/html
		git checkout legacy
		^d
	sudo reboot

The details for all the steps are available on the web or this forum. Have fun!

Edit: Sorry, I forgot to mention that I am using a Mac.


#3

Here’s a pic of my recently completed BrewPi controller:


#4

That looks good what size is the box


#5

12" H x 10" W x 4.5" D