Spike Brewing 12.5 Conical Fermenter Giveaway!

Home Brew Forums > Home Brewing Beer > DIY Projects > Raspberry Pi made easy? Complete tutorial in layman's terms needed!

Reply
 
LinkBack Thread Tools
Old 12-12-2012, 02:45 AM   #1
Byrd
Feedback Score: 0 reviews
Recipes 
 
Join Date: May 2011
Location: Sterling, Virginia
Posts: 23
Liked 1 Times on 1 Posts

Default Raspberry Pi made easy? Complete tutorial in layman's terms needed!

Hey all,

To preface this DIY project, I'd like to start out by saying I come from the finance field and a lot of the hardware/software jargon goes right over my head (especially the scripting languages and getting everything to talk to each other). I've spent the better part of two days researching Arduino/Raspberry Pi setups to control the cooling/fermentation process in your fridge over the internet/intranet in the easiest most user friendly way possible.

I love the Web Interface that Steve71 put together here (https://github.com/steve71/RasPiBrew) from this thread (http://www.homebrewtalk.com/f235/raspberry-pi-temp-controller-344529/) however I'm lost at getting Aptana 3, JQuery, and Web.py to all work without a degree in computer programming.

Needs: Monitor/Log temperature in the fridge and turn on/off a light (heating element) if it's too cold and turn on the fridge if too warm. I'd set the desired temperature and allowed deviation from that temp. (usually 1 degree on each side) via a website and it'd send the command wirelessly to the raspberry pi and then log/control from there. Steve71's setup seems to do it perfectly but I can't get past/understand the jquery/web.py to display the log/settings.

Hardware:
1. Raspberry Pi Model B: $35 http://www.newark.com/jsp/search/productdetail.jsp?SKU=43W5302&CMP=KNC-GPLA

2. Digital Temperature Sensor: DS18B20: $10 https://www.sparkfun.com/products/11050

3. 1-wire USB to Thermometer Adapter: $23 http://www.ebay.com/itm/1-wire-adapter-1-Wire-Thermometer-adapter-replace-DS9097-DS9490-NEW-/221153768742?pt=LH_DefaultDomain_0&hash=item337dca b526

4. 4GB SD Card with Raspbian Wheezy already installed $6 http://thepihut.com/products/4gb-sandisk-sd-sdhc-card-with-raspbian-wheezy-linux-preinstalled

5. Mini USB Wifi Dongle: $6: http://www.ebay.com/itm/New-MINI-USB-150Mbps-802-11n-802-11g-802-11b-Wireless-PC-Lan-Wifi-Card-Adapter-/330841417645?pt=US_USB_Wi_Fi_Adapters_Dongles&hash =item4d07af67ad

6. Adafruit USB Port Power Supply 5v: $5: http://www.newark.com/adafruit-industries/501/usb-port-power-supply-ac-adapter/dp/44W4932

7. Jeelabs Output Plug to control relays: $10 http://jeelabs.com/products/output-plug

8. 40A Solid State Relay to control the turning on and off of the heating/cooling element.

9. 4.7K Resistor

Total Cost: $95-125 depending on shipping

Anything I'm missing hardware related? Maybe improvements?
Do I have to have the adafruit pi plate kit?
How do you wire the Jeelabs output plug to the relay and the raspberry pi and open/close given conditions found?
Can someone give me step my step instructions on how to set up the Jquery and web.py and get everything talking to the javascript (?) gauges over the internet?

Thank you so much in advance and any and all advice is much appreciated. Happy Holidays

Using a love tss2 temperature controller would be too easy!

__________________
Byrd is offline
 
Reply With Quote Quick reply to this message
Old 12-14-2012, 05:05 AM   #2
brewman !
Feedback Score: 0 reviews
Recipes 
 
Join Date: Nov 2006
Posts: 1,227
Liked 14 Times on 13 Posts
Likes Given: 16

Default

We are doing a similar project in this thread.
http://www.homebrewtalk.com/f235/standalone-plug-play-raspberry-pi-headless-brewstand-controller-server-368332/

Our goal is to have a plug and play system, both hardware and software wise. I'm pretty sure that once we get things figured out, tested and working, we'll be able to help you.

__________________

Getting back into brewing...

brewman ! is offline
 
Reply With Quote Quick reply to this message
Old 12-14-2012, 02:17 PM   #3
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
Feedback Score: 0 reviews
 
jimmayhugh's Avatar
Recipes 
 
Join Date: Feb 2011
Location: Las Vegas, NV
Posts: 577
Liked 46 Times on 41 Posts
Likes Given: 2

Default

I'm taking a slightly different approach.

I'm using a Teensy 3.0 board to monitor and control the one-wire switches and thermometers, and the Raspberry Pi is set up as a LAMP stack which interrogates the Teensy 3.0, updates the web pages, and stores info in the MySQL database. I've created my own OS Distribution based on the Moebius Linux OS that fits easily into a 4GB SD card with about 2GB of available space. I'll be making the OS image available shortly, as well as the Teensy 3.0 sketch. I've tested it as both a wired and wireless configuration.

I'm currently waiting for some Raspberry Pi shields that I made, which will mount the Teensy directly onto the Raspberry Pi, and allow for easy hook-up. This set-up should be easily expandable, and could handle multiple thermometer/ switch combinations.

This is the culmination of some of the projects I started here .

jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 01-06-2013, 02:41 AM   #4
Byrd
Feedback Score: 0 reviews
Recipes 
 
Join Date: May 2011
Location: Sterling, Virginia
Posts: 23
Liked 1 Times on 1 Posts

Default

Thanks for the replies gents! I decided to go through with this and learn the hard way. I'm going to update this thread with helpful hints and tips to accomplish my goals with the thought that others maybe had the same idea and just didn't know how to go about it. I'm a complete newb when it comes to hardware and have a little experience on the coding/software side. I'll try to explain things as easy as possible.

I have a vintage fridge that I want to constantly monitor the inside temperature through a micro-controller and a temp sensor. That temperature will be sent to an Red/Green/Blue LCD screen that will display the temperature and be blue if cooling (beer's in the fridge) and red if fermenting (70deg). The Raspberry Pi will be installed somewhere probably inside the fridge so it need to talk to the micro-controller through my wireless signal and tell it what temp. I'd want it as well as have the ability to log the temperatures.

Apparently there are many many many ways to skin this cat. I'm looking for the most economical, user friendly, and easy to replicate setup. You'd think that would be any easy enough task eh? Here's what I've found to be the best way to do this.

Items I purchased:
1. Raspberry Pi Model B - this product is currently sold out at many of the online retailers so I had to resort to Ebay and spent $54 for a $35 product. I bought through a seller named triple9s and it came new in box in a few days.

2. 4GB SD card with Raspbian Wheezy preloaded: $15 https://www.adafruit.com/products/1121 . This is the Linux distribution that you need for the Raspberry Pi and the only thing you need to do is stick her in. No updates are necessary.
*No longer using! See post #9 - moved to Occidentalis v.02*

3. Waterproof DS18B20 digital temp sensor: $10 https://www.adafruit.com/products/381 . There are other temperature sensors out there. But their disadvantages and additional work required to make it a smooth install led me to this sensor which I'll be using the one-wire method.

4. MiniUSB Wifi: $10 I got this one off of Ebay as well. I chose a EDUP 300M wifi adapter from a seller named playb2c_cn. Took a little longer to get to my house since it came from shenzhen china but I literally took it out of it's case, stuck it in, ran wificonfig and was searching google in seconds.

5. 20x4 RGB LCD: $25 https://www.adafruit.com/products/499 - I chose the positive. It all comes down to preference really but I like it better then the 16x2. See #6 below as you may be able to save some money by going with the pi-plate and lcd package. I didn't have the option and they don't sell the pi-plate by itself so I'll be stuck with a 20x4 LCD and a 16x2 LCD that I won't be using (any buyers? )

6. ** Very Important if using a RGB LCD with a Raspberry Pi ** I'll spare you the details, but to easily use an LCD that shows red/green/blue colors you're going to need this pi-plate. There are other ways to do this using level shifters, shield for an arduino etc. but for the newb...this is it. Wait for it to come back in stock. If you're not using an LCD - skip this step. https://www.adafruit.com/products/1109

7. USB hub so you can hook up your wifi, keyboard, and mouse into your Pi. Already had one of these.

*Powered hub is not needed for the EDUP Wifi dongle listed above. It uses a RTL8192cu chipset btw.*

8. 5v 1.0Amp USB to MiniUSB Power Source. I have a Samsung Galaxy SII phone and the OEM charger that plugs in to the wall works perfectly. I'd imagine the Apple ones will work also.

9. HDMI cord to plug your Pi into your TV and set up your LAMP server other other things.

My next post will be a how to for putting all the above together making it work with your fridge!

__________________
Byrd is offline
 
Reply With Quote Quick reply to this message
Old 01-06-2013, 03:36 AM   #5
Byrd
Feedback Score: 0 reviews
Recipes 
 
Join Date: May 2011
Location: Sterling, Virginia
Posts: 23
Liked 1 Times on 1 Posts

Default

Here's what I did to get things rolling with my Pi straight out of the box.

1. Plugged in the usb hub with keyboard, mouse, and wifi adapter.
2. Plugged in HDMI cord to TV and Pi
3. Plugged in the 4GB SD card and 5v Power Supply.

The first time it boots, follow this tutorial: http://learn.adafruit.com/adafruits-raspberry-pi-lesson-2-first-time-configuration . My TV did not have to disable overscan. When I disabled overscan and rebooted it cut off the Raspberry logo. I then enabled it and she looks great.

I rebooted into the windows environment and clicked on the wificonfig icon and connected to my network. Woot!

Windows Environment after first start


Awww yea!


Next up will be wiring the one-wire temp. sensor, reading the temp., displaying the temp. to a browser. I hope by that time the Pi-Plate will be back in stock and I can do a how-to on that one also.

__________________
Byrd is offline
 
Reply With Quote Quick reply to this message
Old 01-06-2013, 04:05 AM   #6
helibrewer
HBT_SUPPORTER.png
Feedback Score: 1 reviews
 
helibrewer's Avatar
Recipes 
 
Join Date: Nov 2011
Location: Santa Rosa, CA
Posts: 3,102
Liked 181 Times on 165 Posts
Likes Given: 39

Default

This is also a very nice addition to the RPi: Pi Crust. It basically takes that confusing 16 pin male header and re organizes into function groups of female headers for easy prototyping. All pins are clearly labeled.

__________________
Something is always fermenting....
"It's Bahl Hornin'"

Primary:
Brite Tank/Lagering:
Kegged: Hefeweizen, Chocolate Hazelnut Porter, Kumquat Saison, Tart Cherry Cider, Belgian Tripel, Maibock Bock, Ommegang Abbey Ale Clone, Belgian Golden Strong, German Pils (WLP830)
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck:
My Site: www.restlesscellars.com
helibrewer is offline
 
Reply With Quote Quick reply to this message
Old 01-06-2013, 09:41 AM   #7
metasyntactic
Feedback Score: 0 reviews
Recipes 
 
Join Date: Oct 2012
Posts: 70
Liked 2 Times on 2 Posts
Likes Given: 14

Default

Have you looked at brewpi.com?

__________________
metasyntactic is offline
 
Reply With Quote Quick reply to this message
Old 01-06-2013, 03:50 PM   #8
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
Feedback Score: 0 reviews
 
jimmayhugh's Avatar
Recipes 
 
Join Date: Feb 2011
Location: Las Vegas, NV
Posts: 577
Liked 46 Times on 41 Posts
Likes Given: 2

Default Putting RPi inside of fridge...

You might want to make sure that the mini-wifi dongle can penetrate the refrigerator's skin and coils if you still plan on putting the RPi inside the fridge.

I've done a similar project with Arduino boards here, and a slightly more advanced project with a RPi and Teensy 3.0 Board
here.

__________________
TeensyNet Networked Controller
ButtCrack Brewery
And This Is Why We Drink...
jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 01-21-2013, 04:28 AM   #9
Byrd
Feedback Score: 0 reviews
Recipes 
 
Join Date: May 2011
Location: Sterling, Virginia
Posts: 23
Liked 1 Times on 1 Posts

Default

Ok ladies and gents! I have put together an incredibly easy how-to on setting up your Raspberry Pi, Reading the temperature, and sending it to a COSM account.

What it's feeling like in my living room lol This is what your Pi will output. Disregard the spikes it was from me touching the sensor and seeing it react.



Major Notes
1. I am no longer using Raspbian Wheezy - I'm using Occidentalis v.02
2. My coding is not perfect. If you have a better way of coding the bitbanging of GPIO #4 please share!
3. This code does not turn on and off anything (yet), it simply reads the temp. and sends it to a website for temperature logging of potentially anything. From here you could push the data to your own website using the Apps.

Please read the pdf and comment!

Next up is sending the data to the LCD (if Adafruit will ever restock my Pi-Plate! ) which should be pretty easy. I also need to turn on and off a condensor and a heat lamp via the code using solid state relays.

File Type: pdf Automated Temperature Logging.pdf (168.1 KB, 413 views)
__________________
Byrd is offline
 
Reply With Quote Quick reply to this message
Old 01-21-2013, 04:33 AM   #10
Vebra
Feedback Score: 0 reviews
Recipes 
 
Join Date: Sep 2008
Location: Columbus, Indiana
Posts: 82
Liked 8 Times on 6 Posts

Default

You can get a Prototyping Pi plate from MCM Electronics. I've ordered almost everything from there. Their prices are amazing and ship faster then almost any place I've ordered online.

http://www.mcmelectronics.com/product/83-14384

__________________
Vebra is offline
 
Reply With Quote Quick reply to this message
Reply


Quick Reply
Message:
Options
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
A music tutorial video series to rival the easy homebrewing videos Yuri_Rage General Chit Chat 1 09-11-2009 11:13 PM
Super easy simple wine making Questions from a complete n00b. GooBrew Wine Making Forum 25 12-15-2008 11:23 PM
Complete begginer - set up help needed Ladybrew Cider Forum 5 12-10-2008 10:09 PM
Complete mess made... rpucci General Chit Chat 3 10-11-2007 01:48 PM
tecnical terms made easy home brewer General Chit Chat 3 03-20-2006 09:21 PM