Maker Pro
Maker Pro

Detecting input

steve_venkat

May 22, 2017
30
Joined
May 22, 2017
Messages
30
In this the LED is controlled by both controller and switch.I have to sense when the switch is pressed too....

I planned when the output control pin is zero and and switch is pressed means controller will sense the input.
But i'm using PWM also,in that case how I can sense the input from button..?
 

Attachments

  • input.jpg
    input.jpg
    39.1 KB · Views: 59

Marsh Lane

May 27, 2017
10
Joined
May 27, 2017
Messages
10
I may be on the wrong track here, but could you not wire the switch to one of the PIC inputs, and then get the PIC code to turn the LED on from a PIC output when the switch is pressed - that way you get both the LED operational from the switch, and are able to react when the input senses the switch has been pressed?
 
Top