hi, my names jake and im VERY new to the arduino program. I have been messing around with the arduino uno on windows 7 for the past 4 days and it is ADDICTIVE!!! but back to the point. So the project I'm working on and a aquaruim controller for my aquarium, Project:ARC (Arduino Reef Controller) is basically an idea right now because I and still trying to figure out to write code and how to make the proper circuits. So far I have a 16x2 lcd screen that I made display the following....
Project:ARC
version 1.0
(next screen after 5 sec delay)
Temp:___ .time.
Blu-100 Wht-100
I want to be able to get it to display the time without a rtc because i dont have one yet and I want to peice this project together. where it says ".time." thats where i want to replace it with current time. Please be nice lol I'm new and I just got arduino to work.
heres the code for anyone that can help me out a bit, thanks
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); //pins that are being used
void setup() {
lcd.begin(16, 2); //the display screen dimentions
lcd.print("Project:ARC"); //What the first row will say
lcd.setCursor(0,1); //Where the first letter is set
lcd.print("version 1.0"); //Second row of words
delay(5000); //how long the "idle" screen will be displayed for
lcd.clear();
}
void loop() { //this will be the new screen
lcd.setCursor(0,0);
lcd.print("Temp:___ .time."); //will display temperature the a space for the time example-12:34
lcd.setCursor(0,1);
lcd.print("Blu-100 Wht-100"); //tells me what the percent of the power to the blue led's and white led's is.
}
Just popping in because I want to follow this discussion, especially since it'll probably get to the point of waterproof sensors at some point. A forum search for 'waterproof' comes up with a lot of threads, and a web search for waterproofing yields many suggestions, but none that I've seen that specifically talk about being safe for fish. My own interest is in only water temperature, since I have just a little fresh-water tank.
Find some stainless tubing and seal the sensor inside using aquarium sealant
I've read that the DS18B20 is already waterproof (older versions were notorious for moisture issues)
My somewhat limited experience with silicone aquarium sealant is that it doesn't always bond well, so I don't know for sure that I'd trust it. I'm pondering pure acrylic hot-melt.
from what i see, the options I would use is pure silicone (I have used it for many applications and i believe as long as it cures before it touches water it should be fine)
or better yet cut some airline tubing thats a little bigger than the sensor place it in the middle and put silicone through the tube so its suspended in the tube and waterproofed.
just some of my idea's though, glad to see someone thats interested though
okay so far between lacrosse practice and school, I been messing with my arduino and came to the first question. I have been looking for a way to use two simple buttons to control and lcd menu screen. I have no real knowledge of how to write a code so if someone can show me a good read on how to do so that would be great. but anyway, i want to use one button to go down a menu screen and one to go up. here are the menu's code so far
lcd.setCursor(0,0);
lcd.print("Main Fan:ON");
lcd.setCursor(0,1);
lcd.print(" LED Fan:ON 75%");
delay(5000);
lcd.clear();
}
so between those last three (possibly adding more) how would i write a code and wire two buttons to scroll up on the menus and down?
thanks for any help
For your time issue, you will have to write in a way to tell the arduino what time it is, either by serial or an lcd menu. Then, you can keep track of it with the millis() function, but there will be some eventual drift. In my experience, and that of others, this is no more then a few seconds a day. Just remember that it adds up.