Get your HBT Growlers, Shirts and Membership before the Rush!


Home Brew Forums > Home Brewing Beer > DIY Projects > Fermenters > TeensyPi Networked Temperature Controller
Reply
 
LinkBack Thread Tools
Old 01-19-2013, 07:43 AM   #21
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
Feedback Score: 0 reviews
 
jimmayhugh's Avatar
Recipes 
 
Join Date: Feb 2011
Location: Las Vegas, NV
Posts: 606
Liked 49 Times on 43 Posts
Likes Given: 2

Default

Quote:
Originally Posted by CapnBry View Post
You may have already found this, but I know when I used an MCP23017 with the adafruit library I noticed that the I2C bus was only running at 100kHz and could be juiced to 400kHz with a compiler define. That was on the Arduino platform though so I don't know if it carries to the Teensy platform.

Also, the adafruit library doesn't follow the needed timing, it errs on an overly-conscious side by ignoring the slow bus transfer speed and adding unneeded delays between transfers. A lot of the LiquidCrystal::write4bits() delay can be removed.

Just something to look at if you're looking to speed up the LCD updates-- I found an easy 5x speed increase which I needed because I was also updating custom characters to generate pseudo-graphics.
The Teensy 3.0 is able to use most Arduino libraries, so I may look into that. Right now I'm using the RPi to control the LCDs.
__________________
TeensyNet Networked Controller
ButtCrack Brewery
And This Is Why We Drink...
Cogito, ergo bibere cervisia sum
jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 01-19-2013, 12:16 PM   #22
CapnBry
Feedback Score: 0 reviews
Recipes 
 
Join Date: Oct 2012
Location: Tampa, Florida
Posts: 38
Liked 6 Times on 4 Posts
Likes Given: 1

Default

Quote:
Originally Posted by jimmayhugh View Post
The Teensy 3.0 is able to use most Arduino libraries, so I may look into that. Right now I'm using the RPi to control the LCDs.
Oh cool you've got the LCDs right on the rPi's I2C I didn't see that. What is the bus speed of that I2C bus out of curiosity? I imagine it can go even higher than 400kHz given the Pi has a much higher clock speed than my ATmega does.
__________________
CapnBry is offline
 
Reply With Quote Quick reply to this message
Old 01-19-2013, 05:09 PM   #23
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
Feedback Score: 0 reviews
 
jimmayhugh's Avatar
Recipes 
 
Join Date: Feb 2011
Location: Las Vegas, NV
Posts: 606
Liked 49 Times on 43 Posts
Likes Given: 2

Default

Quote:
Originally Posted by CapnBry View Post
Oh cool you've got the LCDs right on the rPi's I2C I didn't see that. What is the bus speed of that I2C bus out of curiosity? I imagine it can go even higher than 400kHz given the Pi has a much higher clock speed than my ATmega does.
Looks like the default is 100kHz my python-fu is not very strong, so I haven't yet found a definitive answer.
__________________
TeensyNet Networked Controller
ButtCrack Brewery
And This Is Why We Drink...
Cogito, ergo bibere cervisia sum
jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 01-23-2013, 08:06 PM   #24
redbenn
Feedback Score: 0 reviews
Recipes 
 
Join Date: Dec 2009
Location: Chicago
Posts: 133
Liked 3 Times on 3 Posts

Default

I am following along and have a couple questions on the Pi Plate Adapter.

4k7 Resistor - Is the resistor soldered through the board and making a connection underneath near the unassigned screw terminals on where the 3v3 and Data wires were soldered?

Are you powering the Teensy with a separate 5v supply (battery or plug) than the RPi that screws into the 5v & GND on the left?

__________________
redbenn is offline
 
Reply With Quote Quick reply to this message
Old 01-23-2013, 11:58 PM   #25
helibrewer
HBT_SUPPORTER.png
Feedback Score: 1 reviews
 
helibrewer's Avatar
Recipes 
 
Join Date: Nov 2011
Location: Santa Rosa, CA
Posts: 3,570
Liked 260 Times on 226 Posts
Likes Given: 70

Default

The TeensyLibrary zip file appears to be empty.

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

Primary:
Brite Tank/Lagering:
Kegged: Sour Saison, Pale Ale, Aggie Ale
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck: Firestone DBA, De Koninck Blonde
My Site: www.restlesscellars.com
helibrewer is offline
 
Reply With Quote Quick reply to this message
Old 01-24-2013, 01:43 AM   #26
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
Feedback Score: 0 reviews
 
jimmayhugh's Avatar
Recipes 
 
Join Date: Feb 2011
Location: Las Vegas, NV
Posts: 606
Liked 49 Times on 43 Posts
Likes Given: 2

Default

Quote:
Originally Posted by helibrewer View Post
The TeensyLibrary zip file appears to be empty.
What did you use to unzip it? Unzip it with directories intact, and it should have a "sketchbook" top directory with other directories and files beneath it. The files are meant to be included in the Teensy IDE sketchbook on your local drive.
__________________
TeensyNet Networked Controller
ButtCrack Brewery
And This Is Why We Drink...
Cogito, ergo bibere cervisia sum
jimmayhugh is offline
 
Reply With Quote Quick reply to this message
Old 01-24-2013, 02:22 AM   #27
helibrewer
HBT_SUPPORTER.png
Feedback Score: 1 reviews
 
helibrewer's Avatar
Recipes 
 
Join Date: Nov 2011
Location: Santa Rosa, CA
Posts: 3,570
Liked 260 Times on 226 Posts
Likes Given: 70

Default

Quote:
Originally Posted by jimmayhugh

What did you use to unzip it? Unzip it with directories intact, and it should have a "sketchbook" top directory with other directories and files beneath it. The files are meant to be included in the Teensy IDE sketchbook on your local drive.
Just opened it in Windows. All the other files were fine but the library file had nothing in it. The ino file is in one the other zip files but I'm having trouble compiling it without the libraries. The regular OneWire and EEPROMAnything libraries seem to be causing errors so I figured the library zip must have something I need.
__________________
Something is always fermenting....
"It's Bahl Hornin'"

Primary:
Brite Tank/Lagering:
Kegged: Sour Saison, Pale Ale, Aggie Ale
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck: Firestone DBA, De Koninck Blonde
My Site: www.restlesscellars.com
helibrewer is offline
 
Reply With Quote Quick reply to this message
Old 01-24-2013, 02:27 AM   #28
Byrd
Feedback Score: 0 reviews
Recipes 
 
Join Date: May 2011
Location: Sterling, Virginia
Posts: 24
Liked 2 Times on 2 Posts

Default

Did you use any resistors with the RGB LCD to i2c? I just ordered this: http://www.adafruit.com/products/1109 even though I have the 20x4 LCD bc I thought it was my only option as far as using the RGB LCD. Mind sharing how you wired it?

Also, I need to turn on a vintage fridge condensor do you think a 40A SSR will be generally able to handle that? If I matched the relay size that came from the factory would that work? My skills are poor when it comes to electronics. Any help is appreciated!

__________________
Byrd is offline
 
Reply With Quote Quick reply to this message
Old 01-24-2013, 03:02 AM   #29
helibrewer
HBT_SUPPORTER.png
Feedback Score: 1 reviews
 
helibrewer's Avatar
Recipes 
 
Join Date: Nov 2011
Location: Santa Rosa, CA
Posts: 3,570
Liked 260 Times on 226 Posts
Likes Given: 70

Default

I think I got it figured out...the library directory structure was multi-level...linux figured it out

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

Primary:
Brite Tank/Lagering:
Kegged: Sour Saison, Pale Ale, Aggie Ale
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck: Firestone DBA, De Koninck Blonde
My Site: www.restlesscellars.com
helibrewer is offline
 
Reply With Quote Quick reply to this message
Old 01-24-2013, 12:28 PM   #30
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
Feedback Score: 0 reviews
 
jimmayhugh's Avatar
Recipes 
 
Join Date: Feb 2011
Location: Las Vegas, NV
Posts: 606
Liked 49 Times on 43 Posts
Likes Given: 2

Default

Quote:
Originally Posted by Byrd View Post
Did you use any resistors with the RGB LCD to i2c? I just ordered this: http://www.adafruit.com/products/1109 even though I have the 20x4 LCD bc I thought it was my only option as far as using the RGB LCD. Mind sharing how you wired it?

Also, I need to turn on a vintage fridge condensor do you think a 40A SSR will be generally able to handle that? If I matched the relay size that came from the factory would that work? My skills are poor when it comes to electronics. Any help is appreciated!
I reverse engineered the RGB LCD board, and made my own board. I use 4k7 resistors on the SDA/SCL lines, but if you are stringing several together, you only need one set of resistors. I'll post the Eagle and Gerber files when I verify the boards.

The 20x4 display is going to cover the switches and trim pot if you solder it directly to the adafruit board. One option is to put the switches and trim pot on the reverse side of the board, as there are no polarity problems with those devices. Another option is to connect the LCD board to the Aadafruit board via a multi-conductor cable.

The 40A SSR should work just fine.
__________________
TeensyNet Networked Controller
ButtCrack Brewery
And This Is Why We Drink...
Cogito, ergo bibere cervisia sum
jimmayhugh 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 Kegerators and Keezers 81 01-27-2013 01:22 AM
Temperature Controller sy2088 Equipment/Sanitation 3 10-25-2012 07:28 PM
Lux Temperature Controller scoots Fermenters 9 07-06-2012 02:38 PM
temperature controller from deas fridge - use as external controller on live fridge? BrewingChemist Fermenters 1 05-22-2012 11:21 PM
Johnson Analog Temperature Controller Temperature Profile Coastarine Equipment/Sanitation 4 10-11-2010 04:58 PM



Newest Threads

LATEST SPONSOR DEALS