Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: How to make a 15 min. pause ?? on: September 09, 2008, 01:10:26 pm
Quote
Hello,

I'm starting and I am very interested in your assembly, which compon :)ents as you used for your mounting PH assemble them and how?

 smiley-wink

Hi there..

First... Thanks MEM, you helped me out again  smiley-wink

For the PH probe i bought a new one on Ebay, and from the technical info i got on it, found out that it gave 0.60 Mv pr 0.1 ph so therefrom it was just a calculation and there you have it.. and AGAIN thanks to MEM i found out how to print decimals on my display so it looks right  smiley
2  Forum 2005-2010 (read only) / Syntax & Programs / Re: How to make a 15 min. pause ?? on: September 08, 2008, 02:31:32 pm
  Thanks.. Ill try that out in the morning ;-)
3  Forum 2005-2010 (read only) / Syntax & Programs / How to make a 15 min. pause ?? on: September 08, 2008, 08:28:32 am

 Hi there..

Im new to arduino and have no programmingexperience whatsoever.. but still did manage to build a Aquariumcontroller which tells Temp, PH on a 4 line LCD, and with these variables turns on and off various equipment..

My new quest is to have it to make a 15 minutes pause on one of the output when i activate a inputpin, and my question is : is there a special way to do this or is it just to make an delay(900000) ?!?

Thanks
Martin
4  Forum 2005-2010 (read only) / Interfacing / Re: Decimal number on a 4x20 Hitachi LCD on: August 30, 2008, 01:58:59 am
 Hey HULK..

Tack for linket til denne side, men jeg fatter intet af hvor den kode skal ind for at få mit til at virke, som jeg skrev i den anden tråd har jeg ingen programmeringserfaring !?!

Hvad bruger du denne kode til, jeg skal bruge den til en akvariecomputer..
5  Forum 2005-2010 (read only) / Interfacing / Re: analog in to 4 bit LCD driver on: August 24, 2008, 03:34:11 am
 Hey Neilzero..

Ive adapted your code into my little program, but can't find out how to make it show the temperature as 26,1 as oposed to the 261 format it is in now ?!?! Im sure you have a solution, I just can't see it since i've only been into arduino programming for about 4 days now  :-/

My code is at the bottom.

Quote

Code:
 int heat = 451;      
  char heat_str[4] = "   ";  //reserve the string space first
  itoa(heat, heat_str, 10);
  lcd.printIn(heat_str);

  //todo: make sure number can be notated within str length.

My code..
Code:
#include <LCD4Bit.h>

LCD4Bit lcd = LCD4Bit(2);
int temperaturePin = 2;    // select the input pin for the temperature


void setup() {
  lcd.init();
 }

void loop() {  

  lcd.clear();
  lcd.printIn("Vandtemperatur :");
  delay(1000);


  int i, val = 0;
  
  for(i = 0; i < 20; ++i)
  {
       val += analogRead(temperaturePin);    // read the value from the sensor
       delay(50);
  }
  
  val /= 4.06;      // conversion value to millivolts
   if(val > 28 * 10)   // temperature in deg C times 10, since we're measuring to tenths of a degree
     digitalWrite(13,HIGH);
   else
     digitalWrite(13,LOW);
    
     int heat = val;      
  char heat_str[5] = "    ";  //reserve the string space first
  itoa(val, heat_str, 10);

  lcd.cursorTo(2, 5);  //line=2, x=6.
  lcd.printIn(heat_str);
  delay(1000);
  }

 Thanks... Martin
6  Forum 2005-2010 (read only) / News / Re: Swedish area on: October 25, 2008, 12:34:33 pm


My idea was to make an "Nordic" board that could gather Sweden, Denmark and Norway  :o
Pages: [1]