I'm new here but the arduino programming and the c++ generic coding is familiar for me.

I have a problem here on this code

#define pLed 2 //here is attached a resistor and a led on series#define ceFul A0 //here comes in a signal from an whip antennavoid setup(){ pinMode(ceFul, INPUT); //you know what this is ......... pinMode(pLed, OUTPUT); digitalWrite(pLed, LOW);}

void loop(){ if(analogRead(ceFul)==HIGH) //if the signal is HIGH it should { digitalWrite(pLed,HIGH); delay(10); //light up the led for 10 ms digitalWrite(pLed,LOW); delay(10); }}

It's fine and correct, but the led is lighting like the blink sketch in basics - and the fun part is that it lights up randomly

Please, Help me !!!Bye!!

[...............................................................]

Well, it happens that the analogic pin when used with other voltage generators, it makes a lot of high impedence signals, wich i detected later. So i changed few things :1) the if instruction uses a int variable and not the direct input signal;2) used a logic pin and not more analogic, after some trials works well;3) Tried and tried and now it works.Anyway, you can always give me a hand constructing a real antenna filter and signal receiver from the 590 kHz frequency. Sorry for bad english and, have a nice day!!