- Joined
- Nov 26, 2013
- Messages
- 7,617
- Reaction score
- 14,425
Edit: typing badly on stupid tablet virt keyboard made bad post. Me no likely virtual keyboard.
Those graphs look like your temp probes are going back in time
Could be bad calls to a time server. The raspberry pie doesn't have a real onboard clock like a pc does. It may be attributing to the bad sensor data as well.
Is there any reason to use an SD card larger than 8GB? I just got my pi and will be hacking this together this weekend. I have a 32GB SD card, but i have a feeling that is overkill, especially since i intend to clone the completed brewpi SD card as a backup.
Here's a drawing of the circuit that I built on a Radio Shack Prototype Shield (plugs right on top of an Uno). It's based on the BrewPi Rev C shield schematic and uses a 20x4 LCD, a 74HC595 Shift Register and a couple of 10K pull-up resistors.
i followed this diagram to a t is there some other step to get the lcd working
I just took a quick look at the diagram and noticed a mistake. The black line(s) from the lcd should be connected to the ground rail instead of the power rail. As it's drawn you won't even get the backlight to turn on. The red and black on the drawing are consistent: all of the red lines should be connected to the 5V rail, and all black lines are (or should be) connected to ground. See if that helps!
I'm looking at your graph that loses the timestamp horizontal axis and can't help but wonder if the data file it's logging has a glitch and whether it can be fixed. The data file is just a text file (I've been looking at these but am not expert). The BrewPi software holds the logged data in <brewname>.json and simultaneously builds a <brewname>.csv file. They live in /var/www/data/<brewnam> directory in Linux world.
Having said all that, the json is a messy thing but might have something simple incorrectly sitting at the end that makes the graph suddenly track back to the begginning of time. Can you look at the files? Can you download the CSV itself and view in an editor or Excel to see what the last datapoint is?
Are you still running off that same laptop. If be willing to bet there are some CMOS clock errors affecting the os
With the LCD is there any other coding need or is it built into the hex file that is out?
Sent from my iPad using Home Brew
I'm not a coder. How would I go about extracting just the lcd portion of the webui. So I can embed it into a front page that only has the lcd portions for each of my fermenters in a 2x2 layout.
i followed this diagram to a t is there some other step to get the lcd working
How are they currently running the web interface?
Does each run on a separate port?
I've corrected a wiring error and have edited my original post so have another look HERE
So far I just have them in separate folders. I haven't found a need to virtualize each instance as they just run out the box. But whatever way needs to be done to make this work I'll try it.
So, what web address do you access each one on?
192.168.1.18/top1/
192.168.1.18/top2/
192.168.1.18/bottom1/
192.168.1.18/bottom2/
<?php
/* Copyright 2012 BrewPi/Elco Jacobs.
* This file is part of BrewPi.
* BrewPi is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* BrewPi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with BrewPi. If not, see <http://www.gnu.org/licenses/>.
*/
// load default settings from file
$defaultSettings = file_get_contents('defaultSettings.json');
if($defaultSettings == false){
die("Cannot open default settings file: defaultSettings.json");
}
$settingsArray = json_decode(prepareJSON($defaultSettings), true);
if(is_null($settingsArray)){
die("Cannot decode defaultSettings.json");
}
// overwrite default settings with user settings
if(file_exists('userSettings.json')){
$userSettings = file_get_contents('userSettings.json');
if($userSettings == false){
die("Error opening settings file userSettings.json");
}
$userSettingsArray = json_decode(prepareJSON($userSettings), true);
if(is_null($settingsArray)){
die("Cannot decode userSettings.json");
}
foreach ($userSettingsArray as $key => $value) {
$settingsArray[$key] = $userSettingsArray[$key];
}
}
$beerName = $settingsArray["beerName"];
$tempFormat = $settingsArray["tempFormat"];
$profileName = $settingsArray["profileName"];
$dateTimeFormat = $settingsArray["dateTimeFormat"];
$dateTimeFormatDisplay = $settingsArray["dateTimeFormatDisplay"];
function prepareJSON($input) {
//This will convert ASCII/ISO-8859-1 to UTF-8.
//Be careful with the third parameter (encoding detect list), because
//if set wrong, some input encodings will get garbled (including UTF-8!)
$input = mb_convert_encoding($input, 'UTF-8', 'ASCII,UTF-8,ISO-8859-1');
//Remove UTF-8 BOM if present, json_decode() does not like it.
if(substr($input, 0, 3) == pack("CCC", 0xEF, 0xBB, 0xBF)) $input = substr($input, 3);
return $input;
}
?>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>BrewPi reporting for duty!</title>
<link type="text/css" href="css/redmond/jquery-ui-1.10.3.custom.css" rel="stylesheet" />
<link type="text/css" href="css/style.css" rel="stylesheet"/>
<link rel="apple-touch-icon" href="touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="120x120" href="touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png">
<meta name="apple-mobile-web-app-title" content="BrewPi">
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-startup-image" href="splash.png" />
</head>
<body>
<div id="lcd" class="lcddisplay"><span class="lcd-text">
<span class="lcd-line" id="lcd-line-0">Live LCD waiting</span>
<span class="lcd-line" id="lcd-line-1">for update from</span>
<span class="lcd-line" id="lcd-line-2">script...</span>
<span class="lcd-line" id="lcd-line-3"></span>
</div>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3.custom.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="js/spin.js"></script>
<script type="text/javascript" src="js/dygraph-combined.js"></script>
<script type="text/javascript">
// pass parameters to JavaScript
window.tempFormat = <?php echo "'$tempFormat'" ?>;
window.beerName = <?php echo "\"$beerName\""?>;
window.profileName = <?php echo "\"$profileName\""?>;
window.dateTimeFormat = <?php echo "\"$dateTimeFormat\""?>;
window.dateTimeFormatDisplay = <?php echo "\"$dateTimeFormatDisplay\""?>;
</script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/device-config.js"></script>
<script type="text/javascript" src="js/control-panel.js"></script>
<script type="text/javascript" src="js/maintenance-panel.js"></script>
<script type="text/javascript" src="js/beer-chart.js"></script>
<script type="text/javascript" src="js/profile-table.js"></script>
</body>
</html>
<html>
<body>
<iframe src="http://192.168.1.18/top1/lcd.php"></iframe>
<iframe src="http://192.168.1.18/top2/lcd.php"></iframe><br/>
<iframe src="http://192.168.1.18/bottom1/lcd.php"></iframe>
<iframe src="http://192.168.1.18/bottom2/lcd.php"></iframe>
</body>
</html>
Having me some ideas View attachment 215031
How many people here are using cheap ass fotek ssr's. I have a couple laying around and have been doing some tests to see if I could use one to run my fridge. Since elco seems to think its stupid to use relays. But I found that the voltage produced by the arduino really isn't enough to get an ssr to open up reliably. Or I have something weird going on with my ssr. When I use the arduini to trip the ssr with 120v going into the ssr and my multimeter I only read 89volts coming through the ssr. And it makes since because my mypin controllers use the same ssr's and regulate the temperature by regulating the dc voltage. The arduino only puts out 4.8-5vdc and my ssr reads 89v, the mypin outputs 8-9v and I get 100-115v depending on the duty cycle. I don't think my fridge is going to be happy only running 90volts to the compressor.
What are the diodes for? using three discrete outputs on one relay?
Hmmm... The last picture you had posted shows diode's in series - they drop between 0.3 to 0.7V - try removing them.
And those diodes were in parallel not series
I'm using relays as of now. But elco brought up some good points about arcing that I can't ignore given the size of my compressor. Right now I use the relay to trip the non-crossing timer relay inside the fridge. I wanted to remove those parts and go with an ssr solely to gain a little more space and remove the defrost heater from the equation. Even though the fridge never runs long enough to switch over to the defrost cycle.
Too many things that can go wrong I just want simple on off control of the freezer element
Enter your email address to join: