TeensyPi Networked Temperature Controller - Page 3 - Home Brew Forums
Home Brew Forums > Home Brewing Beer > DIY Projects > Fermenters > TeensyPi Networked Temperature Controller

Reply
 
Thread Tools
Old 01-19-2013, 07:43 AM   #21
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
 
jimmayhugh's Avatar
Recipes 
 
Feb 2011
Las Vegas, NV
Posts: 768
Liked 107 Times on 81 Posts


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

 
Reply With Quote
Old 01-19-2013, 12:16 PM   #22
CapnBry
Recipes 
 
Oct 2012
Tampa, Florida
Posts: 38
Liked 6 Times on 4 Posts


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.



 
Reply With Quote
Old 01-19-2013, 05:09 PM   #23
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
 
jimmayhugh's Avatar
Recipes 
 
Feb 2011
Las Vegas, NV
Posts: 768
Liked 107 Times on 81 Posts


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

 
Reply With Quote
Old 01-23-2013, 08:06 PM   #24
redbenn
Recipes 
 
Dec 2009
Chicago
Posts: 132
Liked 3 Times on 3 Posts


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?

 
Reply With Quote
Old 01-23-2013, 11:58 PM   #25
helibrewer
HBT_SUPPORTER.png
 
helibrewer's Avatar
Recipes 
 
Nov 2011
Santa Rosa, CA
Posts: 3,707
Liked 299 Times on 254 Posts


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, Firestone DBA, De Koninck Blonde
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck: Pliny the Younger

 
Reply With Quote
Old 01-24-2013, 01:43 AM   #26
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
 
jimmayhugh's Avatar
Recipes 
 
Feb 2011
Las Vegas, NV
Posts: 768
Liked 107 Times on 81 Posts


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

 
Reply With Quote
Old 01-24-2013, 02:22 AM   #27
helibrewer
HBT_SUPPORTER.png
 
helibrewer's Avatar
Recipes 
 
Nov 2011
Santa Rosa, CA
Posts: 3,707
Liked 299 Times on 254 Posts


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, Firestone DBA, De Koninck Blonde
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck: Pliny the Younger

 
Reply With Quote
Old 01-24-2013, 02:27 AM   #28
Byrd
Recipes 
 
May 2011
Sterling, Virginia
Posts: 29
Liked 3 Times on 3 Posts


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!

 
Reply With Quote
Old 01-24-2013, 03:02 AM   #29
helibrewer
HBT_SUPPORTER.png
 
helibrewer's Avatar
Recipes 
 
Nov 2011
Santa Rosa, CA
Posts: 3,707
Liked 299 Times on 254 Posts


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, Firestone DBA, De Koninck Blonde
Bottled: Belgian Quad (Grand Reserve), Derangement (Belgian Dark Strong)
On Deck: Pliny the Younger

 
Reply With Quote
Old 01-24-2013, 12:28 PM   #30
jimmayhugh
Turgid Member
HBT_LIFETIMESUPPORTER.png
 
jimmayhugh's Avatar
Recipes 
 
Feb 2011
Las Vegas, NV
Posts: 768
Liked 107 Times on 81 Posts


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

 
Reply With Quote
Reply
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arduino - Networked Temperature Monitor jimmayhugh Kegerators & Keezers 81 01-27-2013 01:22 AM
Temperature Controller sy2088 Equipment/Sanitation 3 10-25-2012 06:28 PM
Lux Temperature Controller scoots Fermenters 9 07-06-2012 01:38 PM
temperature controller from deas fridge - use as external controller on live fridge? BrewingChemist Fermenters 1 05-22-2012 10:21 PM
Johnson Analog Temperature Controller Temperature Profile Coastarine Equipment/Sanitation 4 10-11-2010 03:58 PM


Forum Jump