Spike Brewing 12.5 Conical Fermenter Giveaway!

Home Brew Forums > Home Brewing Beer > DIY Projects > TeensyPi Networked Temperature Controller

Reply
 
LinkBack Thread Tools
Old 08-08-2013, 01:43 AM   #371
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

Quote:
Originally Posted by purdman10 View Post
I looked around further, and at http://www.practicalarduino.com/projects/water-tank-depth-sensor, there is a circuit schematic, source code and listings of different chips.
Saw that one as well...
jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 09-10-2013, 03:11 AM   #372
DallasW
Feedback Score: 0 reviews
Recipes 
 
Join Date: Mar 2012
Location: Saskatoon, SK
Posts: 17
Likes Given: 1

Default

Just getting all my components trickling in from ebay finally, and just starting to assemble. I'm still waiting on a few parts that are here tomorrow before I can get it up and running, but in the meantime I had a few questions. I didn't want to keep barraging Jim with questions so I thought I'd ask here. Bear with me as I'm pretty new to this electronics stuff and have only dabbled briefly a few years back, ha.

-On the LCD board, why are the bottom left two 4k7 resistors left off? Any harm in having them there, I'm a little confused by the board diagram, ha
-Similarly, what are the A0, A1, A2 jumpers for on the LCD board, can't figure out the board...
-I'm not seeing any 3v3 screw terminal on the PiPlate, anywhere I can grab this from easily?

I think that's all for now!

__________________
DallasW is offline
 
Reply With Quote Quick reply to this message
Old 09-10-2013, 11:18 AM   #373
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

Quote:
Originally Posted by DallasW View Post
Just getting all my components trickling in from ebay finally, and just starting to assemble. I'm still waiting on a few parts that are here tomorrow before I can get it up and running, but in the meantime I had a few questions. I didn't want to keep barraging Jim with questions so I thought I'd ask here. Bear with me as I'm pretty new to this electronics stuff and have only dabbled briefly a few years back, ha.
Quote:
Originally Posted by DallasW View Post
-On the LCD board, why are the bottom left two 4k7 resistors left off? Any harm in having them there, I'm a little confused by the board diagram, ha
Those are 4k7 pullup resistors for the SDA/SCL I2C signals. If you have multiple LCD boards connected, you only need one set of the resistors.
Quote:
Originally Posted by DallasW View Post
-Similarly, what are the A0, A1, A2 jumpers for on the LCD board, can't figure out the board...
You can have up to eight LCD boards on the I2C bus, AO-A2 are the address pins. For LCD0, all three jumpers are shunted, for LCD1 shunt A1 and A2, LCD2 shunt A0 and A2, etc.
Quote:
Originally Posted by DallasW View Post
-I'm not seeing any 3v3 screw terminal on the PiPlate, anywhere I can grab this from easily?
The Version 5 TeensyPi Board, uses level shifters on all I/O lines that eliminate the need for a separate 3v3 supply. All of my other boards are 5v tolerant.

Have fun.
jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 09-17-2013, 03:59 AM   #374
DallasW
Feedback Score: 0 reviews
Recipes 
 
Join Date: Mar 2012
Location: Saskatoon, SK
Posts: 17
Likes Given: 1

Default

Awesone, thanks a lot!

My BS170's finally came in so I got them all installed and am starting to try and configure the software now. I have the following problems:

-I can't get my wireless internet to connect. The first problem was that my wlan adapter was at wlan1 not wlan0, so I changed all the settings in the config file to reflect that. It still doesn't want to connect. I can't get it to show any results when scanning using "iwlist wlan1 scan". I know the wifi adapter is good because I had it running on the actual raspberry pi software before I loaded the teensy image. I'm not sure what the issue is, the device is listed and seems to be recognized, I'm just installing wicd to see if that will work or not.
EDIT: Scratch this got it working. For anyone else having issues in the future, my issue was that it was an open network. I had to blank out all the lines starting with "wpa-" and add this to the bottom:

Quote:
wireless-essid dd-wrt
wireless-mode managed
-I can't connect to the raspberry pi in my web browser via the ip address (when hooked up to the ethernet port). I can ssh into it and have set it up, but now typing in the IP into my browser it just sits at "waiting for 192.168.1.xxx". I also can't get any response pinging it via the command line. This may have something to do with my last issue, below

EDIT: I found this a few pages back, probably my issues as I don't have anything loaded onto the Teensy3.0 and I have no 1-wire devices hooked up yet.
Quote:
Originally Posted by jimmayhugh View Post
Now it makes more sense...

Yeah, things will work much better when you have at least a Teensy 3.0 or Mega2650 hooked up and have at least one sensor or switch attached to the 1-Wire mini-lan.

The teensy_daemon runs continuously, and if nothing else is pre-empting it, will appear to be consuming a lot of resource. Once you have other parts of the TeensyPi system engaged, things will settle down.
-I don't actually know what to upload to the teensy. I uploaded the blink program just to make sure I knew what to do, but don't know what you mean when you say "Load, compile and upload the Teensy File to the Teensy 3.0 board." Which files do I upload from the Teensy30Libraries.zip file?

Thanks again, and sorry for the simple questions!

FINAL EDIT: Scratch this whole post, ha. I got it figured out after much confusion. For anyone searching in the future who may find this, you have to load the Teensypi.ino sketchbook file from github. I needed to install the Arduino PID library and the Adafruit MAX31855 library to get it to compile.

After that I attached one of my probes and booted up the Teensypi, success!
__________________
DallasW is offline
 
Reply With Quote Quick reply to this message
Old 09-17-2013, 09:16 PM   #375
DallasW
Feedback Score: 0 reviews
Recipes 
 
Join Date: Mar 2012
Location: Saskatoon, SK
Posts: 17
Likes Given: 1

Default

OK more software questions. Trying to get the LCD to work.

I've soldered up the first LCD board, I did add the pullup resistors. I've jumpered the 5v and 3v3 pins and also added the 5v power select shunt on the board. I don't have any switches activated and I have no address pins jumpered so it's on 0x27.

The other weird thing is that I only have a 16 pin 4x20 Hitachi HD44780 LCD, because it's a single color. Don't know if that makes a difference but the last two pins on the board are not connected to anything.

OK, so first off the device seems to be recognized by the RPi:

Code:
teensypi@teensypi ~ $ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I tried to compile the i2c_lcd.c file with the code you had before, but I was getting an error about a missing my_global.h file, so I added something I found via google and it seemed to compile fine:

Code:
sudo gcc -o ./i2c_lcd -I/usr/localinclude -L/usr/local/lib -lwiringPi i2c_lcd.c `mysql_config --cflags --libs`
I then run the program with the following code, and get this output, but I don't understand it really.

Code:
sudo ./i2c_lcd
Raspberry Pi LCD test program
Initializing MySQL
mysql_init passed
mysql_real_connect passed
action mysql_query passed
mysql_store_result passed
num_action_fields = 7
getStatus()
Please enter your message: The return message was
0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255;0,255,ÿ,ÿ,-255,255

parseStatus()
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
action = 0,255,ÿ,ÿ,-255,255
actionStr = 0,255,ÿ,ÿ,-255,255
updateLCDs()
I'm not seeing anything to the LCD. Any help?
Thanks again!
__________________
DallasW is offline
 
Reply With Quote Quick reply to this message
Old 09-18-2013, 12:57 AM   #376
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

There should have been a pre-compiled executable version of i2c_lcd in the /var/www/htdocs directory of the RPi.

The i2c_lcd code is used to display the status of a selected Action. When you assign a set of thermometer and swiches to a given action, you have the option of enabling an LCD to display the name and values of the action, as well as selecting an 18-pin RGB-backlit lcd or a 16-pin single-color backlit LCD. The LCDs are selected by entering LCD0-LCD7, corresponding to i2c addresses 0x20-0x27.

When the Action screen is accessed via a web browser, the php script interrogates the MYSQL database, and will enable any selected LCDs.

The i2c_lcd software is not meant to run standalone.

Sorry I can't double-check any of this right now, my TeensyPi rig is temporarily off while I'm working on the TeensyNet project.

jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 10-04-2013, 01:00 AM   #377
seedubxj
HBT_SUPPORTER.png
Feedback Score: 0 reviews
Recipes 
 
Join Date: Apr 2012
Location: Folsom, CA
Posts: 180
Liked 14 Times on 13 Posts
Likes Given: 9

Default

Hey guys, before I dedicate 40 pages worth of reading time on this thread, I was hoping to get one quick question answered. What I'm wanting to do it just basic temp monitoring of my HLT, MLT and BK, and display it on a small LCD screen. No automation yet. Will the RPi , and your code, allow me to do this?

__________________
seedubxj is offline
 
Reply With Quote Quick reply to this message
Old 10-04-2013, 01:05 PM   #378
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

Quote:
Originally Posted by seedubxj View Post
Hey guys, before I dedicate 40 pages worth of reading time on this thread, I was hoping to get one quick question answered. What I'm wanting to do it just basic temp monitoring of my HLT, MLT and BK, and display it on a small LCD screen. No automation yet. Will the RPi , and your code, allow me to do this?
If that's all you ever want to do, the TeensyPi is perfectly capable of doing all of that with some small changes to the code, or you can take a look at the stuff I did here. That project was simply a monitor, and I used both character-based and graphical LCDs in the process.

If your planning on adding automation, thermocouples, pid-based solutions etc, then this is a viable project for you.

If you want to use just an RPi, take a look here.

Hope this helps...
__________________
TeensyNet Networked Controller
ButtCrack Brewery
And This Is Why We Drink...
jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 10-14-2013, 12:01 PM   #379
HornetSparky
Feedback Score: 0 reviews
Recipes 
 
Join Date: Jan 2012
Location: Virginia Beach, VA
Posts: 79
Liked 24 Times on 15 Posts
Likes Given: 2

Default

Great project. I intend and hope to use the TeensyPi for a few brewing projects, the first of which is a http://makezine.com/projects/make-25/sous-vide-immersion-cooker/sous vide machine that I will use to pasteurize hard cider. My current rate of stovetop bottle bombs is unacceptably high.

I plan to use three or four 300W beverage heaters as the heating elements. It occurs to me that this could give three or four levels of granularity to the control signal (heat into the water). I think I understand the basics of PID theory, but I'm having a tough time wrapping my head around calculating where the cutoff points between two elements on and three elements on would be, or what the units for that would be. Also, any pointers in your code for where that calculation is done so that I might look at modifying it?

Thanks. I will keep looking myself and will add a post if I learn anything.

__________________
HornetSparky is offline
 
Reply With Quote Quick reply to this message
Old 10-17-2013, 04:10 PM   #380
brewdanimal
Feedback Score: 0 reviews
Recipes 
 
Join Date: Mar 2013
Location: , VA
Posts: 6
Default

Anyone able to post a video of a brew day using TeensyPi? I havent even seen pictures of cooking or complete setups. Im really interested in making one of these.

__________________
brewdanimal 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
Arduino - Networked Temperature Monitor jimmayhugh DIY Projects 81 01-27-2013 12:22 AM
Temperature Controller sy2088 Equipment/Sanitation 3 10-25-2012 06:28 PM
Lux Temperature Controller scoots DIY Projects 9 07-06-2012 01:38 PM
temperature controller from deas fridge - use as external controller on live fridge? BrewingChemist DIY Projects 1 05-22-2012 10:21 PM
Johnson Analog Temperature Controller Temperature Profile Coastarine Equipment/Sanitation 4 10-11-2010 03:58 PM