Connect with us

Detecting input

Discussion in 'Microcontrollers, Programming and IoT' started by steve_venkat, May 26, 2017.

Scroll to continue with content
  1. steve_venkat

    steve_venkat

    30
    0
    May 22, 2017
    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..?
     

    Attached Files:

  2. Marsh Lane

    Marsh Lane

    10
    0
    May 27, 2017
    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?
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-