A quick overview of what the program should be doing.
Basically on pin C.2 I have the input voltage between 0-5 that is varied using a variable resistor.
Depending on the voltage that is on pin C.2 there will be a delay which will activate the output C.1.
I'm pretty sure that it is my code that...
I'm using an 18M2 chip which allows the PWMout option instead of using a 555 timer to get a 36khz frequency.
But when observing the frequency being outputted by the chip when the ultrasonic becomes active I noticed it changes.
which then loses detection of my infrared.
Is there any way around this?