hi!
I've a problem with the usage of pulseIn() with the function tone. I receive anything.
I shlould receive a high pulse from another file that is seems to this.
#define SENSING 7 #define IR 13
unsigned long sense;
void setup(){
pinMode(SENSING,INPUT);
pinMode(IR,OUTPUT);
Serial.begin(115200);
Hi, while we wait for a better explanation of your problem, if i understand what u want to do u can change this
tone(pin, frequency, duration)
zetax:
tone(LED,38000);
delay(5);
noTone(LED);
delay(5);
tone(Led, 38000, 5)
as reference say: "Generates a square wave of the specified frequency (and 50% duty cycle) on a pin" is that u want? u want a square wave with 50% duty cicle?