Look this up on google for instructions to do this. I cannot get it to work for several possible reasons. The interrupt code I presume to be 'enable receive(0)'. Waiting for a digital zero to start the interrupt code. When there is no signal from my remote for the mains power switch I am getting voltages ranging from 2.7-3.3 which must be random noise voltages from the data out of my receiver. When pressing the remote button I get a steady 1.8v.
For a 5v power supply a low must be below 1.5v. Therefore the interrupt program can't run.
Another problem I see is the 'output' instruction. Shouldn't this be a 'print' instruction so the results can be seen in the serial monitor? Nothing at all appears on my serial monitor.
Can anybody suggest how I can get this sketch to work?
For a 5v power supply a low must be below 1.5v. Therefore the interrupt program can't run.
Another problem I see is the 'output' instruction. Shouldn't this be a 'print' instruction so the results can be seen in the serial monitor? Nothing at all appears on my serial monitor.
Can anybody suggest how I can get this sketch to work?