Ducatiboy stu
Well-Known Member
- Joined
- 2/4/05
- Messages
- 14,269
- Reaction score
- 3,832
Thats HEAPS....
You could almost run Vista on it... :lol:
You could almost run Vista on it... :lol:
Thanks, TrevBonj... that set is looking awesome, love the display readout.
Has anyone built a brewery with a full-sized LCD yet? I can just imagine how crazy that would look with temperature graphs on display, etc. You could mount it on LCD arm hanging off the side. Panels are so cheap these days too. Of course, then you'd need to drive the display somehow.... which would lead to an embedded platform of some sort. Beer OS.
. Of course, then you'd need to drive the display somehow.... which would lead to an embedded platform of some sort. Beer OS.
Well after much screwing about with the LCD board I have corrected all my soldering stuff ups and put the correct resistors in and I am away. All very basic for now but once I get some SSRs and time the brewery will be going electronic for better or worse
Out of interest I got 10 DS18B20's of ebay from a seller in hong kong for a couple of bucks each with only $5 shipping to the US (http://stores.ebay.com/Hyperfine-Store).
View attachment 21012
h34r:
Looks like it's hooked up with a voltage divider for power thru the data pin, with Vdd tied to ground?I'm a little bit confused by your wiring on the breadboard?
but seems you've got it reading temp ok!
Be careful guys. It's all good fun until your brewery becomes self-aware. Lets just hope nobody wakes up in their kettle one morning, tied up with sensors inserted in to every orifice.
I, for one, will be sticking to analogue brewing. <_<
Lets just hope nobody wakes up in their kettle one morning, tied up with sensors inserted in to every orifice.
Ooh and pin compatible with the mega168 too... nice.Haven't you seen Bonj, you can now get 2K of RAM and 32K of flash on arduino
ATmega328
My Sketch for HABS is currently up to 9K, so i'm not to concerned at this stage!
/*
* HASP (Halfluck Automated Stir Plate)
* An open-source Stir plate for Arduino.
*
* (cc) by Rob Hart
*
* http://www.halfluck.com/automation
* http://creativecommons.org/license/cc-gpl
*
* v 0.1
*/
int PinStirplateMotor = 13;
byte totalsteps = 2;
byte stirplateontime = 10; //how long in minutes to run stir plate for
byte stirplateofftime = 50; //how long in minutes to wait before running the stir plate again
unsigned long previous_millis_value = 0;
int step = 1; // start at step 1
unsigned long cumulativeSeconds = 0;
unsigned long startstep = 0; // placeholder for the starting of step time
unsigned long stopstep = 0; // placeholder for the stop of step time
unsigned long steptime = 0; // time in milliseconds required for this step
int timercalculated = 0; // has the timer for a timed step been set (initially = false)
void setup() // run once, when the sketch starts
{
pinMode(PinStirplateMotor, OUTPUT); // sets the digital pin as output
}
void loop() // start of actual sketch, run over and over again
{
//while (step<=totalsteps) // this will stop the code from restarting from here on in!
{
switch (step)
{
case 1:
digitalWrite(PinStirplateMotor, HIGH);
if (!timercalculated) {
startstep = millis(); // start step clock, reads milliseconds from this moment
steptime = (unsigned long)stirplateontime*60*1000; // calculate the end of step from the configuired time "stirplateontime"
stopstep = startstep + steptime; // calculate the end of step from the configuired time "stirplateontime"
timercalculated = 1; // don't do again whilst in this step
}
if (millis()>=stopstep) { // time has finished
digitalWrite(PinStirplateMotor, LOW); // turn stir plate motor off
step++;
timercalculated=0; // next step's timer not yet calculated
}
break;
case 2:
if (!timercalculated) {
startstep = millis(); // start step clock, reads milliseconds from this moment
steptime = (unsigned long)stirplateofftime*60*1000; // calculate the end of step from the configuired time "stirplateofftime"
stopstep = startstep + steptime; // calculate the end of step from the configuired time "stirplateofftime"
timercalculated = 1; // don't do again whilst in this step
}
if (millis()>=stopstep) { // time has finished
step++;
timercalculated=0; // next step's timer not yet calculated
}
break;
}
while(millis() - previous_millis_value >= 1000)
{
cumulativeSeconds++;
previous_millis_value += 1000;
}
}
}
Nice idea, would need a different motor than the single-phase computer fans that are so common tho.mika said:...
I've wondered about a stirplate that spins for so long in one direction then stops and spins up in the other direction with an adjustable lag in between.
...
Enter your email address to join: