Philip Bridges
Created April 25, 2016 © GPL3+

Monitoring Beer Fermentation Temperature

This project is for MEGR 3171. It consist of using a raspberry pi to monitor the temperature of my beer during fermentation.

IntermediateProtip8 hours607
Monitoring Beer Fermentation Temperature

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1

Software apps and online services

Ubidots
Ubidots

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Circuit Diagram

This is the circuit diagram for the waterproof temperature sensor.
Circuit%20temp

Code

Send Temperature to Ubidots

Python
from ubidots import ApiClient
import math
import time

# Create an ApiClient object

api = ApiClient(token='4UgSQeNxI5NRkFLgyk5uJopGAuTrHB')

# Get a Ubidots Variable

variable = api.get_variable('571d0bda762542210fde6a16')

# Here is where you usually put the code to capture the data, either through your GPIO pins or as a calculation.

import time

while 1:
    tempfile = open("/sys/bus/w1/devices/28-0115a51c4bff/w1_slave")
    thetext = tempfile.read()
    tempfile.close()
    tempdata = thetext.split("\n")[1].split(" ")[9]
    temperature = float(tempdata[2:])
    temperature = temperature / 1000
    temperature = (temperature * 9/5) + 32
    response = variable.save_value({"value": (temperature)})
    print response
    time.sleep(1)

Credits

Philip Bridges

Philip Bridges

1 project • 2 followers
I am a current student at the University of North Carolina at Charlotte pursuing a bachelor's in Mechanical Engineering.

Comments