Go Down

Topic: Getting output highs when I should be getting lows (Read 15785 times) previous topic - next topic

PaulS

Quote
This is what I have put in my chip

And? What output do you get? What happens on the pins?

That useless voltage print is still at the end.
The art of getting good answers lies in asking good questions.

substance


This is what I get with 5 v on all my inputs. Can I remove the voltage to my inputs and see what happens. Kind of like simulating one of the switches being pressed?

Code: [Select]
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4960.94
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4960.94
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4960.94
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.96
Voltage on pin 5 is 4.97
Voltage:4960.94
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage:4965.82
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.96
Voltage:4965.82

substance

I removed pin 1 and the voltage drops to zero eventually but it does not change from gas is not flowing to gas is flowing like it should

Code: [Select]
 




Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 3.58
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 3.66
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 3.75
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 3.27
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.48
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.96
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.37
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 3.19
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.93
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 1.57
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.54
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.58
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.59
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.50
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.36
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.46
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.71
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 5.00
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 5.00
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.75
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 5.00
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 5.00
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.59
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.46
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.80
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.51
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.38
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.36
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 3.51
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.91
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 5.00
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 5.00
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.96
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.96
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 4.97
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97

PaulS

Quote
This is what I get with 5 v on all my inputs.

And, the output pins? Are they behaving as expected?

Quote
Can I remove the voltage to my inputs and see what happens. Kind of like simulating one of the switches being pressed?

You could, if you ground the wire, instead.

Better would be to get a potentiometer and connect 5V to one outside pin, ground the other outside pin, and connect the center pin to the various gas pins. Rotate the potentiometer, and be sure that the voltage changes as expected.
The art of getting good answers lies in asking good questions.

substance


The output pins were correct with 5volts on all the inputs

Quote
This is what I get with 5 v on all my inputs.

And, the output pins? Are they behaving as expected?

Quote
Can I remove the voltage to my inputs and see what happens. Kind of like simulating one of the switches being pressed?

You could, if you ground the wire, instead.

Better would be to get a potentiometer and connect 5V to one outside pin, ground the other outside pin, and connect the center pin to the various gas pins. Rotate the potentiometer, and be sure that the voltage changes as expected.


I grounded pin 1 and got gas is not flowing when it should be flowing
Quote
4.

substance

That is with pin 1 grounded. Gas should be flowing now but it is not.
Can I aks you Paul if you don't mind, from looking at the code I have put up (the last one that it is my chip) What do you say my chip should be doing>. Say I had not explained anything to you what would you say the code was saying. I am just trying to establish whether there may have been some confusion in what I have said to you

Code: [Select]
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 4.97
Voltage on pin 3 is 4.97
Gas is NOT flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 4.96
Voltage on pin 3 is 4.97
Gas is NOT flowing...

substance

Now if I ground all 3 of my inputs from the gasses I get a high output which is not what I want. I want just one of my inputs to be grounded and the other 2 high, to give me a high output

Quote
Voltage on pin 1 is 0.00
Voltage on pin 2 is 0.18
Voltage on pin 3 is 0.00
Gas is flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 0.24
Voltage on pin 3 is 0.00
Gas is flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 0.24
Voltage on pin 3 is 0.00
Gas is flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 0.16
Voltage on pin 3 is 0.00
Gas is flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 0.17
Voltage on pin 3 is 0.00
Gas is flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 0.20
Voltage on pin 3 is 0.00
Gas is flowing...
Voltage on pin 4 is 4.97
Voltage on pin 5 is 4.97
Voltage on pin 1 is 0.00
Voltage on pin 2 is 0.26
Voltage on pin 3 is 0.00



substance

Strange thing happening now is that if I ground pin 3 then the thing works as it should. Problem is that if I ground pin 1 or 2 then I still get a low on my output rather than the required high. The last bit of my code for pins 4 and 5 is working absolutely perfectly. I am nearly there now I think although my head is a bit battered. Here is my code now.

Code: [Select]
int ARS_IN_A1 = 1; //Declares an integer of Phos input
int PHOS_IN_A2 = 2; //Declares an integer of Phos input
int BOR_IN_A3 = 3; //Declares an integer of Phos input
int BGA_IN_A4 = 4;  //Declares an integer of BGA input
int BGB_IN_A5 = 5;  //Declares an integer of BGB input
int DEP_TIME = 12;  //Declares an integer of Dep timer
int A_SIDE = 11;    //Declares an integer of BGA timer
int B_SIDE = 10;    //Declares an integer of BGB timer


long aRead = 0;  //Assumes voltage range from input
#define N_READINGS 10   

void setup()
{
Serial.begin(9600);  //Serial console for debugging

pinMode(DEP_TIME, OUTPUT);  //Sets dep timer as an output
pinMode(A_SIDE, OUTPUT);    //Sets BGA as an output
pinMode(B_SIDE, OUTPUT);    //Sets BGB as an output
}

float readVoltage (int pin)
{
  long aRead = N_READINGS / 2;  //pre-round the result (not sure what this is doing)
  for(int i=0; i <10; i++)   //Takes 10 readings
    aRead += analogRead(pin);  //Does this mean the that the analog inputs are being read
  aRead = aRead / N_READINGS;        //Takes the average of 10 readings
  float voltage = (aRead * 5.0)/1024.0;  //Converts to digital
Serial.print(" Voltage on pin ");
  Serial.print(pin);
  Serial.print(" is ");
  Serial.println(voltage);   
  return voltage*1000;       //converts to milivolts
}

void loop()
{
   bool gasIsFlowing = false;  //sets a flag which will be used later
   float voltage = readVoltage(ARS_IN_A1);   //reads the floating voltage on the phos in pin
   if( voltage <= 2000 )  //If voltage less than 2V
      gasIsFlowing = true;  //makes my flag true if the criteria is met

  gasIsFlowing = false;  //sets a flag which will be used later
   voltage = readVoltage(PHOS_IN_A2);   //reads the floating voltage on the phos in pin
   if( voltage <= 2000 )  //If voltage less than 2V
      gasIsFlowing = true;  //makes my flag true if the criteria is met

  gasIsFlowing = false;  //sets a flag which will be used later
   voltage = readVoltage(BOR_IN_A3);   //reads the floating voltage on the phos in pin
   if( voltage <= 2000 )  //If voltage less than 2V
      gasIsFlowing = true;  //makes my flag true if the criteria is met

if(gasIsFlowing == true)  //If this is true depending on the above criteria being met
   {
     Serial.println("Gas is flowing...");
     digitalWrite(DEP_TIME, HIGH); //Gives 5V output to dep timer
   }
   else // If gasisflowing is not true then do something else
   {
     Serial.println("Gas is NOT flowing...");
     digitalWrite(DEP_TIME,  LOW) ;   //Gives no output if no gasses are flowing
   }
{

float voltage = readVoltage(BGA_IN_A4 );
   if( voltage <= 2000 )           //If voltage less than 2V
   {
     Serial.println("BGA is OPEN...");
      digitalWrite(A_SIDE, HIGH);   //Gives 5V output to BGA timer
   }
   else
   {
      Serial.println("BGA is SHUT...");
      digitalWrite(A_SIDE, LOW);   //Give no output on a side
   }

   voltage = readVoltage(BGB_IN_A5 );
   if( voltage <= 2000 )  //If voltage less than 2V
   {
      Serial.println("BGB is OPEN...");
      digitalWrite(B_SIDE, HIGH); //Gives 5V output to BGB timer
   }
   else
   {
      Serial.println("BGA is SHUT...");
      digitalWrite(B_SIDE, LOW);   //Give no output on B side
   }

}



    delay(1000);  //1 sec delay between measurements
}

substance

It is this bit of code where the problem lies

Code: [Select]

void loop()
{
   bool gasIsFlowing = false;  //sets a flag which will be used later
   float voltage = readVoltage(ARS_IN_A1);   //reads the floating voltage on the phos in pin
   if( voltage <= 2000 )  //If voltage less than 2V
      gasIsFlowing = true;  //makes my flag true if the criteria is met

  gasIsFlowing = false;  //sets a flag which will be used later
   voltage = readVoltage(PHOS_IN_A2);   //reads the floating voltage on the phos in pin
   if( voltage <= 2000 )  //If voltage less than 2V
      gasIsFlowing = true;  //makes my flag true if the criteria is met

  gasIsFlowing = false;  //sets a flag which will be used later
   voltage = readVoltage(BOR_IN_A3);   //reads the floating voltage on the phos in pin
   if( voltage <= 2000 )  //If voltage less than 2V
      gasIsFlowing = true;  //makes my flag true if the criteria is met

if(gasIsFlowing == true)  //If this is true depending on the above criteria being met
   {
     Serial.println("Gas is flowing...");
     digitalWrite(DEP_TIME, HIGH); //Gives 5V output to dep timer
   }
   else // If gasisflowing is not true then do something else
   {
     Serial.println("Gas is NOT flowing...");
     digitalWrite(DEP_TIME,  LOW) ;   //Gives no output if no gasses are flowing
   }

wildbill

You have too many of these:
Code: [Select]

   bool gasIsFlowing = false;  //sets a flag which will be used later

You only need the first one - it's supposed to get set if any one of the gasses is flowing. As it is, only the boron (?) input can be effective.

nickgammon

Code: [Select]
 
   bool gasIsFlowing = false;  //sets a flag which will be used later
...
   if( voltage <= 2000 )  //If voltage less than 2V
      gasIsFlowing = true;  //makes my flag true if the criteria is met

  gasIsFlowing = false;  //sets a flag which will be used later


What is the point of this test? You set a flag and then clear it a line later.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

substance

I have got the thing working :-)
Can I say a big thank you to everyone who has helped and given me advice, especially AWOL and PaulS.
It was hard work at times but I genuinely feel as if I have learnt a lot of things that will make life easier in the future. Once uni is out the way in 2 months time, I really am going to see what else I can do with an Arduino.
Thanks again, I really do appreciate all the help I have been given
Dave :) :) :)

PaulS

Quote
I have got the thing working :-)

Great news. Congratulations on persevering and learning stuff in the process.
The art of getting good answers lies in asking good questions.

Go Up