High going pulse

Hi Sionaggutraidh, The code from the example which I cannot find now does not contain an ‘if’. I tried it anyway with the same result. Yes my code does have a setup I just left it out in the post to keep the post shorter. Apart from that it is the actual code.

I designed the hardware for a high going pulse myself. I tested it on LTspice simulation software. The pulse is nice and high at nearly 5 volts. I have change the circuit slightly which before gave a high of only 4v. I thought this was the problem but as I said earlier it worked perfectly for a long time.

I don’t have an oscilloscope to test the circuit. If you have one I would gladly let you have the circuit for testing. The problem could be a hardware failure on the circuit. But that doesn’t change the programming problem in that there should be no writing to the led or delays if the program has not picked up the high going pulse.

If you have the sketch where I obtained that line of code please let me have it so I can check my programming against it?