From 902a37fa0a02773a0ec37beaf91c175768b6269d Mon Sep 17 00:00:00 2001 From: hwlife <30950568+hwlife@users.noreply.github.com> Date: Sun, 8 Oct 2017 11:50:48 +0800 Subject: [PATCH 1/8] Update 20170703 Brewing beer with Linux python and raspberry pi.md --- .../20170703 Brewing beer with Linux python and raspberry pi.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md b/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md index bea84931c7..d9bd699d63 100644 --- a/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md +++ b/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md @@ -1,3 +1,4 @@ +hwlife is translating Brewing beer with Linux, Python, and Raspberry Pi ============================================================ From 0b2e1bb4fe78d15fa55de3736479f0ba052824c6 Mon Sep 17 00:00:00 2001 From: hwlife <30950568+hwlife@users.noreply.github.com> Date: Sun, 8 Oct 2017 11:51:08 +0800 Subject: [PATCH 2/8] Update 20170703 Brewing beer with Linux python and raspberry pi.md --- .../20170703 Brewing beer with Linux python and raspberry pi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md b/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md index d9bd699d63..f96cf25179 100644 --- a/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md +++ b/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md @@ -1,4 +1,4 @@ -hwlife is translating +hwlife is translating Brewing beer with Linux, Python, and Raspberry Pi ============================================================ From e3accc39ef8b3b9c5a9f7d3e4218b97a3a54293f Mon Sep 17 00:00:00 2001 From: hwlife <30950568+hwlife@users.noreply.github.com> Date: Sun, 8 Oct 2017 11:51:41 +0800 Subject: [PATCH 3/8] Update 20170703 Brewing beer with Linux python and raspberry pi.md hwlife is translating --- .../20170703 Brewing beer with Linux python and raspberry pi.md | 1 - 1 file changed, 1 deletion(-) diff --git a/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md b/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md index f96cf25179..bea84931c7 100644 --- a/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md +++ b/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md @@ -1,4 +1,3 @@ -hwlife is translating Brewing beer with Linux, Python, and Raspberry Pi ============================================================ From 33fbce6d9fc31a96c69df9e21247ee604065d24f Mon Sep 17 00:00:00 2001 From: hwlife <30950568+hwlife@users.noreply.github.com> Date: Sun, 8 Oct 2017 11:59:30 +0800 Subject: [PATCH 4/8] Create 20170703 Brewing beer with Linux python and raspberry pi.md --- ...beer with Linux python and raspberry pi.md | 192 ++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md diff --git a/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md b/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md new file mode 100644 index 0000000000..bea84931c7 --- /dev/null +++ b/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md @@ -0,0 +1,192 @@ +Brewing beer with Linux, Python, and Raspberry Pi +============================================================ + +### A handy how-to for building a homemade homebrew setup with Python and the Raspberry Pi. + + +![Brewing beer with Linux, Python, and Raspberry Pi](https://opensource.com/sites/default/files/styles/image-full-size/public/images/life/beer-drink-sample-sampler.png?itok=20jJLB8V "Brewing beer with Linux, Python, and Raspberry Pi") +Image by :  + +[Quinn Dombrowski][21]. Modified by Opensource.com. [CC BY-SA 4.0][22]. + +I started brewing my own beer more than 10 years ago. Like most homebrewers, I started in my kitchen making extract-based brews. This required the least equipment and still resulted in really tasty beer. Eventually I stepped up to all-grain brewing using a big cooler for my mash tun. For several years I was brewing 5 gallons at a time, but brewing 10 gallons takes the same amount of time and effort (and only requires slightly larger equipment), so a few years ago I stepped it up. After moving up to 10 gallons, I stumbled across [StrangeBrew Elsinore][23] and realized what I  _really_  needed to do was convert my whole system to be all-electric, and run it with a [Raspberry Pi][24]. + +There is a ton of great information available for building your own all-electric homebrew system, and most brewers start out at [TheElectricBrewery.com][25]. Just putting together the control panel can get pretty complicated, although the simplest approach is outlined well there. Of course you can also take [a less expensive approach][26] and still end up with the same result—a boil kettle and hot liquor tank powered by heating elements and managed by a PID controller. I think that's a little too boring though (and it also means you don't get neat graphs of your brew process). + +More on Raspberry Pi + +* [Our latest on Raspberry Pi][1] + +* [What is Raspberry Pi?][2] + +* [Getting started with Raspberry Pi][3] + +* [Send us your Raspberry Pi projects and tutorials][4] + +### Hardware supplies + +Before I talked myself out of the project, I decided to start buying parts. My basic design was a Hot Liquor Tank (HLT) and boil kettle with 5500w heating elements in them, plus a mash tun with a false bottom. I would use a pump to recirculate the mash through a 50' stainless coil in the HLT (a ["heat exchanger recirculating mash system", known as HERMS][27]). I would need a second pump to circulate the water in the HLT, and to help with transferring water to the mash tun. All of the electrical components would be controlled with a Raspberry Pi. + +Building my electric brew system and automating as much of it as possible meant I was going to need the following: + +* HLT with a 5500w electric heating element + +* HERMS coil (50' 1/2" stainless steel) in the HLT + +* boil kettle with a 5500w electric heating element + +* multiple solid-state relays to switch the heaters on and off + +* 2 high-temp food-grade pumps + +* relays for switching the pumps on and off + +* fittings and high-temp silicon tubing + +* stainless ball valves + +* 1-wire temperature probes + +* lots of wire + +* electrical box to hold everything + +### [aedo-f1.png][11] + +![Brew system](https://opensource.com/sites/default/files/aedo-f1.png "Brew system") + +Brew system (photo by Christopher Aedo. [CC BY-SA 4.0)][5] + +The details of building out the electrical side of the system are really well covered by [The Electric Brewery][28], so I won't repeat their detailed information. You can read through and follow their suggestions while planning to replace the PID controllers with a Raspberry Pi. + +One important thing to note is the solid-state relay (SSR) signal voltage. Many tutorials suggest using SSRs that need a 12-volt signal to close the circuit. The Raspberry Pi GPIO pins will only output 3v, however. Be sure to purchase relays that will trigger on 3 volts. + +### [aedo-f2.png][12] + +![Inkbird SSR](https://opensource.com/sites/default/files/aedo-f2.png "Inkbird SSR") + +Inkbird SSR (photo by Christopher Aedo. [CC BY-SA 4.0)][6] + +To run your brew system, your Pi must do two key things: sense temperature from a few different places, and turn relays on and off to control the heating elements. The Raspberry Pi easily is able to handle these tasks. + +There are a few different ways to connect temp sensors to a Pi, but I've found the most convenient approach is to use the [1-Wire bus][29]. This allows for multiple sensors to share the same wire (actually three wires), which makes it a convenient way to instrument multiple components in your brew system. If you look for waterproof DS18B20 temperature sensors online, you'll find lots of options available. I used [Hilitchi DS18B20 Waterproof Temperature Sensors][30] for my project. + +To control the heating elements, the Raspberry Pi includes several General Purpose IO (GPIO) pins that are software addressable. This allows you to send 3.3v to a relay by simply putting a **1** or a **0** in a file. The  _Raspberry Pi—Driving a Relay using GPIO_  tutorial was the most helpful for me when I was first learning how all this worked. The GPIO controls multiple solid-state relays, turning on and off the heating elements as directed by the brewing software. + +I first started working on the box to hold all the components. Because this would all be on a rolling cart, I wanted it to be relatively portable rather than permanently mounted. If I had a spot (for example, inside a garage, utility room, or basement), I would have used a larger electrical box mounted on the wall. Instead I found a decent-size [waterproof project box][31] that I expected I could shoehorn everything into. In the end, it turned out to be a little bit of a tight fit, but it worked out. In the bottom left corner is the Pi with a breakout board for connecting the GPIO to the 1-Wire temperature probes and the [solid state relays][32]. + +To keep the 240v SSRs cool, I cut holes in the case and stacked [copper shims][33] with CPU cooling grease between them and heat sinks mounted on the outside of the box. It worked out well and there haven't been any cooling issues inside the box. On the cover I put two switches for 120v outlets, plus two 240v LEDs to show which heating element was energized. I used dryer plugs and outlets for all connections so disconnecting a kettle from everything is easy. Everything worked right on the first try, too. (Sketching a wiring diagram first definitely pays off.) + +The pictures are from the "proof-of-concept" version—the final production system should have two more SSRs so that both legs of the 240v circuit would be switched. The other thing I would like to switch via software is the pumps. Right now they're controlled via physical switches on the front of the box, but they could easily be controlled with relays. + +### [aedo-f3.png][13] + +![Control box](https://opensource.com/sites/default/files/aedo-f3.png "Control box") + +Control box (photo by Christopher Aedo. [CC BY-SA 4.0)][7] + +The only other thing I needed that was a little tricky to find was a compression fitting for the temperature probes. The probes were mounted in T fittings before the valve on the lowest bulkhead in both the HLT and the mash tun. As long as the liquid is flowing past the temp sensor, it's going to be accurate. I thought about adding a thermowell into the kettles as well, but realized that's not going to be useful for me based on my brewing process. Anyway, I purchased [1/4" compression fittings][34] and they worked out perfectly. + +### Software + +Once the hardware was sorted out, I had time to play with the software. I ran the latest [Raspbian distribution][35] on the Pi; nothing special was required on the operating-system side. + +I started with [Strangebrew Elsinore][36] brewing software, which I had discovered when a friend asked whether I had heard of [Hosehead][37], a Raspberry Pi-based brewing controller. I thought Hosehead looked great, but rather than buying a brewing controller, I wanted the challenge of building my own. + +Setting up Strangebrew Elsinore was straightforward—the [documentation][38] was thorough and I did not encounter any problems. Even though Strangebrew Elsinore was working fine, Java seemed to be taxing my first-generation Pi sometimes, and it crashed on me more than once. I also was sad to see development stall and there did not seem to be a big community of additional contributors (although there were—and still are—plenty of people using it). + +### CraftBeerPi + +Then I stumbled across [CraftBeerPI][39], which is written in Python and supported by a development community of active contributors. The original author (and current maintainer) Manuel Fritsch is great about handling contributions and giving feedback on issues that folks open. Cloning [the repo][40] and getting started only took me a few minutes. The README also has a good example of connecting DS1820 temp sensors, along with notes on interfacing hardware to a Pi or a [C.H.I.P. computer][41]. + +On startup, CraftBeerPi walks users through a configuration process that discovers the temperature probes available and lets you specify which GPIO pins are managing which pieces of equipment. + +### [aedo-f4.png][14] + +![CraftBeerPi](https://opensource.com/sites/default/files/images/life/aedo-f4.png "CraftBeerPi") + +CraftBeerPi (photo by Christopher Aedo. [CC BY-SA 4.0)][8] + +Running a brew with this system is easy. I can count on it holding temperatures reliably, and I can input steps for a multi-temp step mash. Using CraftBeerPi has made my brew days a little bit boring, but I'm happy to trade off the "excitement" of traditional manually managed propane burners for the efficiency and consistency of this system. + +CraftBeerPI's user-friendliness inspired me to set up another controller to run a "fermentation chamber." In my case, that was a second-hand refrigerator I found for US$ 50 plus a $25 heater) on the inside. CraftBeerPI easily can control the cooling and heating elements, and you can set up multiple temperature steps. For instance, this graph shows the fermentation temperatures for a session IPA I made recently. The fermentation chamber held the fermenting wort at 67F for four days, then ramped up one degree every 12 hours until it was at 72F. That temp was held for a two-day diacetyl rest. After that it was set to drop down to 65F for five days, during which time I "dry hopped" the beer. Finally, the beer was cold-crashed down to 38F. CraftBeerPI made adding each step and letting the software manage the fermentation easy. + +### [aedo-f5.png][15] + +![SIPA fermentation profile](https://opensource.com/sites/default/files/aedo-f5.png "SIPA fermentation profile") + +SIPA fermentation profile (photo by Christopher Aedo. [CC BY-SA 4.0)][9] + +I have also been experimenting with the [TILT hydrometer][42] to monitor the gravity of the fermenting beer via a Bluetooth-connected floating sensor. There are integration plans for this to get it working with CraftBeerPI, but for now it logs the gravity to a Google spreadsheet. Once this hydrometer can talk to the fermentation controller, setting automated fermentation profiles that take action directly based on the yeast activity would be easy—rather than banking on primary fermentation completing in four days, you can set the temperature ramp to kick off after the gravity is stable for 24 hours. + +As with any project like this, imaging and planning improvements and additional components is easy. Still, I'm happy with where things stand today. I've brewed a lot of beer with this setup and am hitting the expected mash efficiency every time, and the beer has been consistently tasty. My most important customer—me!—is pleased with what I've been putting on tap in my kitchen. + +### [aedo-f6.png][16] + +![Homebrew on tap](https://opensource.com/sites/default/files/aedo-f6.png "Homebrew on tap") + +Homebrew on tap (photo by Christopher Aedo. [CC BY-SA 4.0)][10] + + _This article is based on Christopher's OpenWest talk, [Brewing Beer with Linux, Python and a RaspberryPi][18]. [OpenWest][19] will be held July 12-15, 2017 in Salt Lake City, Utah._ + +-------------------------------------------------------------------------------- + +作者简介: + +Christopher Aedo - Christopher Aedo has been working with and contributing to open source software since his college days. Most recently he can be found leading an amazing team of upstream developers at IBM who are also developer advocates. When he’s not at work or speaking at a conference, he’s probably using a RaspberryPi to brew and ferment a tasty homebrew in Portland OR. + + +via: https://opensource.com/article/17/7/brewing-beer-python-and-raspberry-pi + +作者:[ Christopher Aedo][a] +译者:[译者ID](https://github.com/译者ID) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]:https://opensource.com/users/docaedo +[1]:https://opensource.com/tags/raspberry-pi?src=raspberry_pi_resource_menu1 +[2]:https://opensource.com/resources/what-raspberry-pi?src=raspberry_pi_resource_menu2 +[3]:https://opensource.com/article/16/12/getting-started-raspberry-pi?src=raspberry_pi_resource_menu3 +[4]:https://opensource.com/article/17/2/raspberry-pi-submit-your-article?src=raspberry_pi_resource_menu4 +[5]:https://creativecommons.org/licenses/by-sa/4.0/ +[6]:https://creativecommons.org/licenses/by-sa/4.0/ +[7]:https://creativecommons.org/licenses/by-sa/4.0/ +[8]:https://creativecommons.org/licenses/by-sa/4.0/ +[9]:https://creativecommons.org/licenses/by-sa/4.0/ +[10]:https://creativecommons.org/licenses/by-sa/4.0/ +[11]:https://opensource.com/file/358661 +[12]:https://opensource.com/file/358666 +[13]:https://opensource.com/file/358676 +[14]:https://opensource.com/file/359061 +[15]:https://opensource.com/file/358681 +[16]:https://opensource.com/file/359071 +[17]:https://opensource.com/article/17/7/brewing-beer-python-and-raspberry-pi?rate=fbKzT1V9gqGsmNCTuQIashC1xaHT5P_2LUaeTn6Kz1Y +[18]:https://www.openwest.org/custom/description.php?id=139 +[19]:https://www.openwest.org/ +[20]:https://opensource.com/user/145976/feed +[21]:https://www.flickr.com/photos/quinndombrowski/ +[22]:https://creativecommons.org/licenses/by-sa/4.0/ +[23]:https://github.com/DougEdey/SB_Elsinore_Server +[24]:https://opensource.com/tags/raspberry-pi +[25]:http://www.theelectricbrewery.com/ +[26]:http://www.instructables.com/id/Electric-Brewery-Control-Panel-on-the-Cheap/ +[27]:https://byo.com/hops/item/1325-rims-and-herms-brewing-advanced-homebrewing +[28]:http://theelectricbrewery.com/ +[29]:https://en.wikipedia.org/wiki/1-Wire +[30]:https://smile.amazon.com/gp/product/B018KFX5X0/ +[31]:http://amzn.to/2hupFCr +[32]:http://amzn.to/2hL8JDS +[33]:http://amzn.to/2i4DYwy +[34]:https://www.brewershardware.com/CF1412.html +[35]:https://www.raspberrypi.org/downloads/raspbian/ +[36]:https://github.com/DougEdey/SB_Elsinore_Server +[37]:https://brewtronix.com/ +[38]:http://dougedey.github.io/SB_Elsinore_Server/ +[39]:http://www.craftbeerpi.com/ +[40]:https://github.com/manuel83/craftbeerpi +[41]:https://www.nextthing.co/pages/chip +[42]:https://tilthydrometer.com/ +[43]:https://opensource.com/users/docaedo +[44]:https://opensource.com/users/docaedo +[45]:https://opensource.com/article/17/7/brewing-beer-python-and-raspberry-pi#comments From 1922af107e6067d17abec5279abe5ad1513a2a2a Mon Sep 17 00:00:00 2001 From: hwlife <30950568+hwlife@users.noreply.github.com> Date: Sun, 8 Oct 2017 12:02:08 +0800 Subject: [PATCH 5/8] Update 20170703 Brewing beer with Linux python and raspberry pi.md --- .../20170703 Brewing beer with Linux python and raspberry pi.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md b/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md index bea84931c7..d9bd699d63 100644 --- a/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md +++ b/sources/tech/20170703 Brewing beer with Linux python and raspberry pi.md @@ -1,3 +1,4 @@ +hwlife is translating Brewing beer with Linux, Python, and Raspberry Pi ============================================================ From c9dc680fe71599bf4483defad562a15c209a0ec8 Mon Sep 17 00:00:00 2001 From: hwlife <30950568+hwlife@users.noreply.github.com> Date: Sun, 8 Oct 2017 14:36:43 +0800 Subject: [PATCH 6/8] Update 20170703 Brewing beer with Linux python and raspberry pi.md --- ...beer with Linux python and raspberry pi.md | 70 ++++++++++--------- 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md b/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md index bea84931c7..cea388ac23 100644 --- a/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md +++ b/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md @@ -1,7 +1,7 @@ -Brewing beer with Linux, Python, and Raspberry Pi +用Linux,Python和树莓派酿制啤酒 ============================================================ -### A handy how-to for building a homemade homebrew setup with Python and the Raspberry Pi. +### 怎样在家用python和树莓派搭建一个家用便携的自制酿啤酒装置 ![Brewing beer with Linux, Python, and Raspberry Pi](https://opensource.com/sites/default/files/styles/image-full-size/public/images/life/beer-drink-sample-sampler.png?itok=20jJLB8V "Brewing beer with Linux, Python, and Raspberry Pi") @@ -9,57 +9,59 @@ Image by :  [Quinn Dombrowski][21]. Modified by Opensource.com. [CC BY-SA 4.0][22]. -I started brewing my own beer more than 10 years ago. Like most homebrewers, I started in my kitchen making extract-based brews. This required the least equipment and still resulted in really tasty beer. Eventually I stepped up to all-grain brewing using a big cooler for my mash tun. For several years I was brewing 5 gallons at a time, but brewing 10 gallons takes the same amount of time and effort (and only requires slightly larger equipment), so a few years ago I stepped it up. After moving up to 10 gallons, I stumbled across [StrangeBrew Elsinore][23] and realized what I  _really_  needed to do was convert my whole system to be all-electric, and run it with a [Raspberry Pi][24]. +大约十年前我开始酿制自制啤酒,和许多自己酿酒的人一样,我开始在厨房制造提纯啤酒。这需要一些设备并且做出来后确实是好的啤酒,最终,我用一个大的贮藏罐放入了所有大麦作为我的麦芽浆桶。几年之后我曾酿制了5加仑啤酒,但是酿制10加仑时会花费同样的时间和效用(只是容器比之前大些),之前我是这么做的。容量提升到10加仑之后,我偶然发现并意识到我真正需要的是将整个酿酒过程转换成全电子化的,用树莓派来运行它。 -There is a ton of great information available for building your own all-electric homebrew system, and most brewers start out at [TheElectricBrewery.com][25]. Just putting together the control panel can get pretty complicated, although the simplest approach is outlined well there. Of course you can also take [a less expensive approach][26] and still end up with the same result—a boil kettle and hot liquor tank powered by heating elements and managed by a PID controller. I think that's a little too boring though (and it also means you don't get neat graphs of your brew process). +建造自己的家用电动化酿酒系统需要大量这方面的技术信息,许多学习酿酒的是在TheElectricBrewery.com这个网站起步的,只不过将那些控制版搭建在一起是十分复杂的,尽管最简单的办法在这个网站上总结的很好。当然你也能用一个小成本的方法并且依旧可以用相同的结果得到-用一个热水壶和热酒容器通过一个PID控制器来加热你的酿酒原料。但是我认为这有点太无聊(这也意味着你不能get到完成酿酒过程) -More on Raspberry Pi +关于树莓派更多信息 -* [Our latest on Raspberry Pi][1] +* [关于树莓派最新消息[1] -* [What is Raspberry Pi?][2] +* [树莓派是什么?][2] -* [Getting started with Raspberry Pi][3] +* [树莓派如何开始使用][3] -* [Send us your Raspberry Pi projects and tutorials][4] +* [发送给我们你的树莓派项目和教程][4] -### Hardware supplies +### 需要用到的硬件 -Before I talked myself out of the project, I decided to start buying parts. My basic design was a Hot Liquor Tank (HLT) and boil kettle with 5500w heating elements in them, plus a mash tun with a false bottom. I would use a pump to recirculate the mash through a 50' stainless coil in the HLT (a ["heat exchanger recirculating mash system", known as HERMS][27]). I would need a second pump to circulate the water in the HLT, and to help with transferring water to the mash tun. All of the electrical components would be controlled with a Raspberry Pi. +在我开始我得这个项目之前, 我决定开始买零件,我最基础的设计是一个可以将液体加热到5500w的热酒容器和开水壶,加一个活底的麦芽浆桶,我通过一个50的不锈钢线圈在热酒容器里让泵来再循环麦芽浆(a ["热量交换再循环麦芽浆系统, 也叫 HERMS][27]).同时我需要另一个泵来在热酒容器里循环水,并且把水传输到麦芽浆桶里,整个电子部件全部是用树莓派来控制的。 -Building my electric brew system and automating as much of it as possible meant I was going to need the following: -* HLT with a 5500w electric heating element +建立我得电子酿酒系统并且尽可能的自动化意味着我需要以下的东东: -* HERMS coil (50' 1/2" stainless steel) in the HLT -* boil kettle with a 5500w electric heating element +* 一个5500瓦的电子加热酒精容器 -* multiple solid-state relays to switch the heaters on and off +* 能够放入加热酒精容器里的一英尺(0.5英寸)长的不锈钢线圈(热量交换再循环麦芽浆系统) -* 2 high-temp food-grade pumps +* 一个5500瓦的电子加热水壶 -* relays for switching the pumps on and off +* 多个固态继电器加热开关 -* fittings and high-temp silicon tubing +* 2个高温食品级泵 -* stainless ball valves +* 泵的开关用继电器 -* 1-wire temperature probes +* 可拆除装置和一个硅管 -* lots of wire +* 不锈钢球阀 -* electrical box to hold everything +* 一个测量温度的探针 + +* 很多线 + +* 一个来容纳这些配件的电路盒子 ### [aedo-f1.png][11] ![Brew system](https://opensource.com/sites/default/files/aedo-f1.png "Brew system") -Brew system (photo by Christopher Aedo. [CC BY-SA 4.0)][5] +酿酒系统 (photo by Christopher Aedo. [CC BY-SA 4.0)][5] -The details of building out the electrical side of the system are really well covered by [The Electric Brewery][28], so I won't repeat their detailed information. You can read through and follow their suggestions while planning to replace the PID controllers with a Raspberry Pi. +建立酿酒系统的电气化方面的细节The Electric Brewery这个网站概括的很好,这里我不再重复,当你计划用树莓派代替这个PID控制器的话,你可以读以下的建议。 -One important thing to note is the solid-state relay (SSR) signal voltage. Many tutorials suggest using SSRs that need a 12-volt signal to close the circuit. The Raspberry Pi GPIO pins will only output 3v, however. Be sure to purchase relays that will trigger on 3 volts. +一个重要的事情需要注意,固态继电器信号电压,许多教程建议使用一个12伏的固态继电器来关闭电路,树莓派的GPIO针插口只支持输出电压3伏,然而,必须购买继电器将电压变为3伏。 ### [aedo-f2.png][12] @@ -67,23 +69,25 @@ One important thing to note is the solid-state relay (SSR) signal voltage. Many Inkbird SSR (photo by Christopher Aedo. [CC BY-SA 4.0)][6] -To run your brew system, your Pi must do two key things: sense temperature from a few different places, and turn relays on and off to control the heating elements. The Raspberry Pi easily is able to handle these tasks. +要运行酿酒系统,你的树莓派必须做两个关键事情:来自不同位置的敏感温度,用继电器开关来控制加热元件,树莓派很容易来处理这些任务。 -There are a few different ways to connect temp sensors to a Pi, but I've found the most convenient approach is to use the [1-Wire bus][29]. This allows for multiple sensors to share the same wire (actually three wires), which makes it a convenient way to instrument multiple components in your brew system. If you look for waterproof DS18B20 temperature sensors online, you'll find lots of options available. I used [Hilitchi DS18B20 Waterproof Temperature Sensors][30] for my project. +这里有一些不同的方法来将温度传感器连到树莓派上,但是我找到了最方便的方法用单总线。这就可以让多个传感器分享相同的线路(实际上三根线),这三根线可以使酿酒系统的多个设备更方便的工作,如果你要从网上找一个DS18B20 防水的温度传感器,你将会找到更多的选择。我用的是日立DS18B20防水温度传感器。 -To control the heating elements, the Raspberry Pi includes several General Purpose IO (GPIO) pins that are software addressable. This allows you to send 3.3v to a relay by simply putting a **1** or a **0** in a file. The  _Raspberry Pi—Driving a Relay using GPIO_  tutorial was the most helpful for me when I was first learning how all this worked. The GPIO controls multiple solid-state relays, turning on and off the heating elements as directed by the brewing software. +要控制加热元件,树莓派包括几个用来软件寻址的总线扩展器(GPIO),它会通过在某个文件写入0或者1让你发送3.3v的电压到一个继电器,在我第一次了解树莓派是怎样工作的时候,这个用GPIO驱动继电器的树莓派教程对我来说是最有帮助的,总线控制器控制多个固态继电器,通过酿酒软件来直接控制加热元件的开关。 -I first started working on the box to hold all the components. Because this would all be on a rolling cart, I wanted it to be relatively portable rather than permanently mounted. If I had a spot (for example, inside a garage, utility room, or basement), I would have used a larger electrical box mounted on the wall. Instead I found a decent-size [waterproof project box][31] that I expected I could shoehorn everything into. In the end, it turned out to be a little bit of a tight fit, but it worked out. In the bottom left corner is the Pi with a breakout board for connecting the GPIO to the 1-Wire temperature probes and the [solid state relays][32]. +我第一次将所有部件放到这个电路盒子,因为这将成为一个滚动的小车,我要让他方便移动,而不是固定不动的,如果我有一个店(比如说在车库,工具房,或者地下室),我需要要用一个更大的电路盒挂到墙上,而现在我找到一个大小正好的防水工程盒子,能放进每件东西,最后它成为紧密的结合工具盒,并且能够工作。在左下角是和树莓派连接的为总线控制器到单总线温度探针和固态继电器的扩展板。 -To keep the 240v SSRs cool, I cut holes in the case and stacked [copper shims][33] with CPU cooling grease between them and heat sinks mounted on the outside of the box. It worked out well and there haven't been any cooling issues inside the box. On the cover I put two switches for 120v outlets, plus two 240v LEDs to show which heating element was energized. I used dryer plugs and outlets for all connections so disconnecting a kettle from everything is easy. Everything worked right on the first try, too. (Sketching a wiring diagram first definitely pays off.) +要保持240v的固态继电器温度不高,我在盒子上切了个洞,在盒子的外面用降温凝胶安装铜片散热片冷却cpu的温度。它工作的很好,盒子里没有温度上的问题了,在盒子盖上我放了两个开关为120v的插座,加两个240v的led来显示加热元件是否通电。我用干燥器的插座和插头很容易的开关电热水壶的连接。第一次尝试每件事情都弄好了。(决定第一次手画电路图.) + + +照片是从“概念”版的最终生产系统应该有两个固态继电器,以至于240v的电路两个针脚能够切换,另外我将通过软件来切换泵的开关,。现在他们通过盒子前面的物理开关控制,但是他们很容易用继电器控制。 -The pictures are from the "proof-of-concept" version—the final production system should have two more SSRs so that both legs of the 240v circuit would be switched. The other thing I would like to switch via software is the pumps. Right now they're controlled via physical switches on the front of the box, but they could easily be controlled with relays. ### [aedo-f3.png][13] ![Control box](https://opensource.com/sites/default/files/aedo-f3.png "Control box") -Control box (photo by Christopher Aedo. [CC BY-SA 4.0)][7] +控制盒子 (photo by Christopher Aedo. [CC BY-SA 4.0)][7] The only other thing I needed that was a little tricky to find was a compression fitting for the temperature probes. The probes were mounted in T fittings before the valve on the lowest bulkhead in both the HLT and the mash tun. As long as the liquid is flowing past the temp sensor, it's going to be accurate. I thought about adding a thermowell into the kettles as well, but realized that's not going to be useful for me based on my brewing process. Anyway, I purchased [1/4" compression fittings][34] and they worked out perfectly. From 50cf00f1a668cd25abce926d4b29795dc49e5935 Mon Sep 17 00:00:00 2001 From: hwlife <30950568+hwlife@users.noreply.github.com> Date: Sun, 8 Oct 2017 16:10:22 +0800 Subject: [PATCH 7/8] Rename 20170703 Brewing beer with Linux python and raspberry pi.md to Transleted20170703 Brewing beer with Linux python and raspberry pi.md Transletd by hwlife --- ...eer with Linux python and raspberry pi.md} | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) rename translated/tech/{20170703 Brewing beer with Linux python and raspberry pi.md => Transleted20170703 Brewing beer with Linux python and raspberry pi.md} (65%) diff --git a/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md b/translated/tech/Transleted20170703 Brewing beer with Linux python and raspberry pi.md similarity index 65% rename from translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md rename to translated/tech/Transleted20170703 Brewing beer with Linux python and raspberry pi.md index cea388ac23..29a9613204 100644 --- a/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md +++ b/translated/tech/Transleted20170703 Brewing beer with Linux python and raspberry pi.md @@ -89,21 +89,22 @@ Inkbird SSR (photo by Christopher Aedo. [CC BY-SA 4.0)][6] 控制盒子 (photo by Christopher Aedo. [CC BY-SA 4.0)][7] -The only other thing I needed that was a little tricky to find was a compression fitting for the temperature probes. The probes were mounted in T fittings before the valve on the lowest bulkhead in both the HLT and the mash tun. As long as the liquid is flowing past the temp sensor, it's going to be accurate. I thought about adding a thermowell into the kettles as well, but realized that's not going to be useful for me based on my brewing process. Anyway, I purchased [1/4" compression fittings][34] and they worked out perfectly. +另一个事情是我要为温度探针找一个微型压缩装置,这个探针以T字型装置在加热酒精容器和麦芽浆桶球形阀门的最底部,只要是液体流过温度传感器,温度是准确显示的。我考虑加一个套管到热水壶里,但是基于我的酿造工艺没有什么用。无论如何,我买四分之一英寸的压缩配件,他们是完美的。 -### Software +### 软件 -Once the hardware was sorted out, I had time to play with the software. I ran the latest [Raspbian distribution][35] on the Pi; nothing special was required on the operating-system side. +一旦硬件整理好,我有时间来处理软件,我在树莓派上跑了最新的发行版,操作系统方面没有什么特别的。 -I started with [Strangebrew Elsinore][36] brewing software, which I had discovered when a friend asked whether I had heard of [Hosehead][37], a Raspberry Pi-based brewing controller. I thought Hosehead looked great, but rather than buying a brewing controller, I wanted the challenge of building my own. +我开始使用Strangebrew Elsinore酿酒软件,当我的朋友问我是否我听说过[Hosehead],一个基于树莓派的酿酒控制器,那时我已经听说过这个软件了。我认为[Hosehead]很棒,但并不是要买一个酿酒控制器,贰拾我要挑战自己搭建我自己的一个。 + +设置Strangebrew Elsinore 这个软件是按照说明文档操作,没有遇到任何的问题。尽管Strangebrew Elsinore工作的很好,在一代树莓派上运行java有时是费力的,不止崩溃一次。我看到这个软件开发停顿也很伤心,因为他们没有几个看起来很大的贡献者的社区(尽管有很多人还在用它) -Setting up Strangebrew Elsinore was straightforward—the [documentation][38] was thorough and I did not encounter any problems. Even though Strangebrew Elsinore was working fine, Java seemed to be taxing my first-generation Pi sometimes, and it crashed on me more than once. I also was sad to see development stall and there did not seem to be a big community of additional contributors (although there were—and still are—plenty of people using it). ### CraftBeerPi -Then I stumbled across [CraftBeerPI][39], which is written in Python and supported by a development community of active contributors. The original author (and current maintainer) Manuel Fritsch is great about handling contributions and giving feedback on issues that folks open. Cloning [the repo][40] and getting started only took me a few minutes. The README also has a good example of connecting DS1820 temp sensors, along with notes on interfacing hardware to a Pi or a [C.H.I.P. computer][41]. +之后我偶然遇到了一个用Python写的支持活跃的贡献者的开发社区的CraftbeerPI,应该叫手工啤酒派吧。原作者和当前维护者Manuel Fritsch在做贡献和反馈问题是友好的。克隆这个仓库然后开始花了我一些时间。README文档也是一个连接DS1820温度传感器的好例子,同时注意关于硬件接口到树莓派或者芯片电脑。 -On startup, CraftBeerPi walks users through a configuration process that discovers the temperature probes available and lets you specify which GPIO pins are managing which pieces of equipment. +在启动的时候,CraftbeerPI引导用户通过一个设置过程来发现温度探针是否可用,并且让你用GPIO总线控制器来管理树莓派上的特定设备部件 ### [aedo-f4.png][14] @@ -111,33 +112,34 @@ On startup, CraftBeerPi walks users through a configuration process that discove CraftBeerPi (photo by Christopher Aedo. [CC BY-SA 4.0)][8] -Running a brew with this system is easy. I can count on it holding temperatures reliably, and I can input steps for a multi-temp step mash. Using CraftBeerPi has made my brew days a little bit boring, but I'm happy to trade off the "excitement" of traditional manually managed propane burners for the efficiency and consistency of this system. +运行自制酿酒系统是容易的,我能够依靠它掌握可靠的温度,我能输入多个温度段来控制麦芽浆温度,用CraftbeerPi酿酒的日子有一点点累,但是传统手工管理丙烷燃烧器为系统的有效性和持续性我还是很高兴的。 -CraftBeerPI's user-friendliness inspired me to set up another controller to run a "fermentation chamber." In my case, that was a second-hand refrigerator I found for US$ 50 plus a $25 heater) on the inside. CraftBeerPI easily can control the cooling and heating elements, and you can set up multiple temperature steps. For instance, this graph shows the fermentation temperatures for a session IPA I made recently. The fermentation chamber held the fermenting wort at 67F for four days, then ramped up one degree every 12 hours until it was at 72F. That temp was held for a two-day diacetyl rest. After that it was set to drop down to 65F for five days, during which time I "dry hopped" the beer. Finally, the beer was cold-crashed down to 38F. CraftBeerPI made adding each step and letting the software manage the fermentation easy. +CraftBeerPI的用户友好性鼓舞我设置了另一个控制器来运行“发酵室”。就我来说,那是一个二手冰箱,我用了50美元加25美元的加热器设置在里边。CraftBeerPI很容易控制电器元件的冷热,你也能够设置多个温度阶段。举个例子,这个图表显示我最近做的IPA进程的发酵温度。发酵室发酵麦芽汁在67F的温度下需要4天,然后每到12小时上升一度直到温度到达72F。温度保持剩下两天是为了双乙酰生成。之后5天温度降到65F,这段时间是让啤酒变“干”,最后啤酒发酵温度直接降到38F。CraftBeerPI加入了每个阶段,让软件管理发酵更加容易。 ### [aedo-f5.png][15] ![SIPA fermentation profile](https://opensource.com/sites/default/files/aedo-f5.png "SIPA fermentation profile") -SIPA fermentation profile (photo by Christopher Aedo. [CC BY-SA 4.0)][9] +SIPA 发酵文档 (photo by Christopher Aedo. [CC BY-SA 4.0)][9] -I have also been experimenting with the [TILT hydrometer][42] to monitor the gravity of the fermenting beer via a Bluetooth-connected floating sensor. There are integration plans for this to get it working with CraftBeerPI, but for now it logs the gravity to a Google spreadsheet. Once this hydrometer can talk to the fermentation controller, setting automated fermentation profiles that take action directly based on the yeast activity would be easy—rather than banking on primary fermentation completing in four days, you can set the temperature ramp to kick off after the gravity is stable for 24 hours. +我也试验过用液体比重计来发对酵啤酒的重力进行监测,通过蓝牙连接的浮动传感器可以达到。有一个整合的计划能让CraftbeerPi很好工作,但是现在它记录这些重力数据到谷歌的电子表格里。一旦这个液体比重计能连接到发酵控制器,设置的自动发酵文档会基于酵母的活动性直接运行且更加容易,而不是在4天存贮的主要发酵完成,可以在重力24小时稳定在设定温度。 -As with any project like this, imaging and planning improvements and additional components is easy. Still, I'm happy with where things stand today. I've brewed a lot of beer with this setup and am hitting the expected mash efficiency every time, and the beer has been consistently tasty. My most important customer—me!—is pleased with what I've been putting on tap in my kitchen. + +像这样的一些项目,想象力和计划改进和额外的部件是很容易,不过,我很高兴今天经历过的事情。我用这种装置酿造了很多啤酒,每次都能达到预期的麦芽汁效率,而且啤酒一直都很美味。我最重要的消费者!-我,很高兴我可以随时饮用。 ### [aedo-f6.png][16] ![Homebrew on tap](https://opensource.com/sites/default/files/aedo-f6.png "Homebrew on tap") -Homebrew on tap (photo by Christopher Aedo. [CC BY-SA 4.0)][10] +随时饮用 (photo by Christopher Aedo. [CC BY-SA 4.0)][10] - _This article is based on Christopher's OpenWest talk, [Brewing Beer with Linux, Python and a RaspberryPi][18]. [OpenWest][19] will be held July 12-15, 2017 in Salt Lake City, Utah._ + 这篇文章基于克里斯托弗的开放的西部的谈话,用Linux,Python和树莓派酿制啤酒。 这次谈话将在2017年7月12-15日盐湖城举行。 -------------------------------------------------------------------------------- 作者简介: -Christopher Aedo - Christopher Aedo has been working with and contributing to open source software since his college days. Most recently he can be found leading an amazing team of upstream developers at IBM who are also developer advocates. When he’s not at work or speaking at a conference, he’s probably using a RaspberryPi to brew and ferment a tasty homebrew in Portland OR. +Christopher Aedo - Christopher Aedo 从他的学生时代就从事并且贡献于开源软件事业。最近他被发现是他在IBM领导一个逆流而上的开发者团队,同时他也是开发者拥护者。当他不再工作或者实在会议室演讲的时候,他可能在波特兰市俄勒冈州用树莓派酿制和发酵一杯美味的啤酒。 via: https://opensource.com/article/17/7/brewing-beer-python-and-raspberry-pi From a093b7363847738002fc2df4e56764d0375210cc Mon Sep 17 00:00:00 2001 From: hwlife <30950568+hwlife@users.noreply.github.com> Date: Sun, 8 Oct 2017 16:22:31 +0800 Subject: [PATCH 8/8] Rename Transleted20170703 Brewing beer with Linux python and raspberry pi.md to 20170703 Brewing beer with Linux python and raspberry pi.md --- ...> 20170703 Brewing beer with Linux python and raspberry pi.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename translated/tech/{Transleted20170703 Brewing beer with Linux python and raspberry pi.md => 20170703 Brewing beer with Linux python and raspberry pi.md} (100%) diff --git a/translated/tech/Transleted20170703 Brewing beer with Linux python and raspberry pi.md b/translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md similarity index 100% rename from translated/tech/Transleted20170703 Brewing beer with Linux python and raspberry pi.md rename to translated/tech/20170703 Brewing beer with Linux python and raspberry pi.md