Connect with us

Using an infrared sensor as a switch

Discussion in 'Sensors and Actuators' started by marmitas, Oct 25, 2012.

Scroll to continue with content
  1. marmitas


    Oct 9, 2012
    I am trying to use an infrared sensor as a switch to turn on PWM pulses generated by a PIC. I don't have much experience working with PNP transistors. The attached image shows my idea, will that work?

    Attached Files:

    Last edited: Oct 25, 2012
  2. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    Jan 21, 2010
    I think the simple answer is No.

    It may be easier to have the phototransistor connected to an input on the PIC and have the pulse train get turned on and off under software control.
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