Modular Beer Brewing Controller Demo
by nuket in Cooking > Homebrew
2099 Views, 33 Favorites, 0 Comments
Modular Beer Brewing Controller Demo
![2015042612175700.jpg](/proxy/?url=https://content.instructables.com/FOU/RXZ4/I8UUYJ20/FOURXZ4I8UUYJ20.jpg&filename=2015042612175700.jpg)
This is a very rough intro to controlling a beer brewing process using an Intel Edison development kit. It is not an exhaustive control system yet.
The parts used in the controller so far for demonstration include:
- Intel Edison Development Kit
- Arduino Breakout Shield
- Relay card with 4 controllable relays
- Grove-LCD RGB Backlight Kit
- Grove Temperature Sensor Kit
- Two 6V mini suction pumps
- Four meters of 6mm PVC tubing
- 6mm drill bit
- One 35W light bulb
- Jumper wires
- 6V power supply
- Two empty plastic bottles
First Things First
![2015042612180101.jpg](/proxy/?url=https://content.instructables.com/FVC/MFMQ/I8UUYJ8U/FVCMFMQI8UUYJ8U.jpg&filename=2015042612180101.jpg)
![2015042612180100.jpg](/proxy/?url=https://content.instructables.com/FU6/283Y/I8UUYJQJ/FU6283YI8UUYJQJ.jpg&filename=2015042612180100.jpg)
Connect the Grove LCD Module to the Edison development board.
Get the IP address of the Edison development board using: https://www.instructables.com/id/Show-the-Intel-Edi...
Connect the Temperature Sensor
![2015042613442900.jpg](/proxy/?url=https://content.instructables.com/FLC/KL0Q/I8UUYS1S/FLCKL0QI8UUYS1S.jpg&filename=2015042613442900.jpg)
- Connect the Grove Temperature Sensor kit to Analog Input 0, and tape it to the plastic bottle directly in front of the light bulb.
Connect the Relays
![2015042612180000.jpg](/proxy/?url=https://content.instructables.com/FBC/A708/I8UUYJ7Q/FBCA708I8UUYJ7Q.jpg&filename=2015042612180000.jpg)
![2015042612180001.jpg](/proxy/?url=https://content.instructables.com/FNS/Q27W/I8UUYJ89/FNSQ27WI8UUYJ89.jpg&filename=2015042612180001.jpg)
- Attach the Arduino Breakout shield to the Edison development board.
- Use jumper wires to connect the VCC and GND pins to the relay control board.
- Use jumper wires to connect the GPIO pins from the D2, D3, and D4 pins to the relay control board input pins.
Connect the Pumps and 35W Light
![2015042613332200.jpg](/proxy/?url=https://content.instructables.com/F3Q/4SEO/I8UUYR67/F3Q4SEOI8UUYR67.jpg&filename=2015042613332200.jpg)
![2015042613332101.jpg](/proxy/?url=https://content.instructables.com/FIV/XP60/I8UUYR66/FIVXP60I8UUYR66.jpg&filename=2015042613332101.jpg)
- On the output side of the relays, connect the pumps and the 35W light.
- You can use one of the spare relays as a connection point for the positive rail of the pumps.
- The 35W light is connected to a separate relay. Be careful here, since 220V is enough to fry the Edison board or the pumps if you aren't careful.
Connect the Pumps and Hoses
![2015042613332100.jpg](/proxy/?url=https://content.instructables.com/FJV/ZHZ3/I8UUYR5K/FJVZHZ3I8UUYR5K.jpg&filename=2015042613332100.jpg)
![2015042613383500.jpg](/proxy/?url=https://content.instructables.com/F7G/LODK/I8UUYR6V/F7GLODKI8UUYR6V.jpg&filename=2015042613383500.jpg)
- Connect the pumps and hoses such that the output of each pump goes into the opposite plastic bottle.
Write Your Code
![2015042612175801.jpg](/proxy/?url=https://content.instructables.com/FSF/IOA1/I8UUYJ51/FSFIOA1I8UUYJ51.jpg&filename=2015042612175801.jpg)
![IMG_20150426_122257.jpg](/proxy/?url=https://content.instructables.com/FKR/JTMO/I8UUYJKD/FKRJTMOI8UUYJKD.jpg&filename=IMG_20150426_122257.jpg)
![IMG_20150426_122313.jpg](/proxy/?url=https://content.instructables.com/FUL/Q4W4/I8UUYJKE/FULQ4W4I8UUYJKE.jpg&filename=IMG_20150426_122313.jpg)
![IMG_20150426_122325.jpg](/proxy/?url=https://content.instructables.com/FYB/ZUO2/I8UUYJKV/FYBZUO2I8UUYJKV.jpg&filename=IMG_20150426_122325.jpg)
At this point, you've got to write the code that drives everything.
Resources that have helped:
- http://stackoverflow.com/questions/24196932/how-ca...
- https://github.com/intel-iot-devkit/upm/blob/maste...
- https://github.com/intel-iot-devkit/upm/blob/maste...
- https://github.com/intel-iot-devkit/mraa/blob/mast...
Basically, the GPIO pins D2, D3, and D4 control the relay outputs, which controls the pumps and light. Analog input 0 is used to connect the temperature sensor. The I2C bus is used to control the LCD.
Bonus task: Control the LCD backlight so that as the temperature rises, the color changes from green to red.
Done!
![2015042612175700.jpg](/proxy/?url=https://content.instructables.com/FIQ/DKZF/I8UUYT8M/FIQDKZFI8UUYT8M.jpg&filename=2015042612175700.jpg)
That's it, you've got yourself a brewing controller that demonstrates on a small scale the type of control problems you will face when brewing for real.
The sky is the limit from here.
There's a video of it in operation here: https://vilimpoc.org/Brewbeard.mp4