Show Posts
Pages: 1 ... 6 7 [8]
106  Using Arduino / Programming Questions / Timer question on: July 13, 2011, 06:48:15 am
Simple Question
Like most I'm new, but learning fast, and have a question.

How do I start the program over in 7 days?

Delay wont work, the program is doing all kinds of stuff, I think I need a timer or clock function but everything I have seen deals with building clocks or LCD clocks I don't need that complicated.

107  Using Arduino / Programming Questions / 1st time and can use a lil help on: July 05, 2011, 10:35:51 pm
Here is my 1st code ever, all sad and sick looking, I'm sure any help would be appreciated.
Essentially I am trying to control some relays that are timed I need a spot to add code that runs all the time too
Here's what I have so far.

const int  drain  = 13;
const int  solenoid  = 12;
const int  PH = 11;                 //for future use
const int   A = 10;                  //for future use
const int  B= 9;                    //for future use
int drain =  Low;
int solenoid = Low;
int  PH = Low;
int A = Low;
int B = Low:
long previousMillis = 0;
long interval = 1000;      //not sure what to do here I want it to run once, then do it again every 7 days
void setup() {
pinMode(drain, OUTPUT);
pinMode(solenoid, OUTPUT);
pinMode (PH, OUTPUT);
pinMode (A, OUTPUT);
pinMode (B, OUTPUT);

Void loop()

// here is where I wanted to add some code later that runs all the time, except when the the next part runs

if (drain==LOW);
drain = HIGH;
delay (1000*600);   //I want a 10 min delay
drain = LOW
if (solenoid ==LOW);
solenoid = HIGH;
delay (1000*900);  //I want 15 min delay
solenoid = LOW;
digitalWrite (drain, solenoid)



108  Using Arduino / Installation & Troubleshooting / Re: NewSoftSerrial on: June 25, 2011, 08:46:19 pm
Ok I think I found the problem, I'm using Ubuntu linux the libraries folder is locked down wont let my copy delete or do anything there.
I downloaded a program nautilus after trying to gain access all the other ways I know failed. Using that I just copied the NewsoftSerial File into the libraries file and it seems I'm in business. "What a Pain."
I'm sure I will be back soon with more questions.
Thanks for the help though.
109  Using Arduino / Installation & Troubleshooting / Re: NewSoftSerrial on: June 25, 2011, 08:00:02 am
Ok got cut paste working, here is my sample code
Mind you I have nothing hooked up just trying to check the code.

#include <NewSoftSerial.h>
NewSoftSerial mySerial =  NewSoftSerial(2, 3);
char stamp_data[15];
byte holding;
byte i;
byte startup=0;
void setup(){
void loop() {
  for(i=1; i <= 2;i++){

if(mySerial.available() > 3) {
   for(i=1; i <= holding;i++){
 for(i=1; i <= holding;i++){

Tnx for the help.
110  Using Arduino / Installation & Troubleshooting / Re: NewSoftSerrial on: June 24, 2011, 07:50:47 pm
Ok tnx for the help, but here's my problem, Iv'e got code for a PH sensor
but when I compile it it says. "NewSoftSerial does not name a type."
I think that's because the NewSoftSerial program's not installed correctly.
I tried to follow the instructions to put it in the Sketch folder and restart, but as soon as I restart the program its not there poof gone, nothing to install.
Am I missing something?.

also; the cut paste wont work ether, but don't care much about that right now.

111  Using Arduino / Installation & Troubleshooting / NewSoftSerrial on: June 23, 2011, 09:04:25 pm
I'm new to all this, so maybe its just me, but I cant get the NewSoftSerial working.
1st off the Arduino site tells you all kinds of stuff about it, but it doesn’t give you a download link, or instructions on how to install it.
I downloaded it off another site its sitting on my desktop not even sure what version it is. Now what I'm lost.

Pages: 1 ... 6 7 [8]