Connect with us

PIC32M and a light bulb (12 VDC, 12 watt), and 120VAC 100 watt

Discussion in 'LEDs and Optoelectronics' started by aloneindesert, Jul 17, 2013.

Scroll to continue with content
  1. aloneindesert

    aloneindesert

    2
    0
    Jul 16, 2013
    Hi everyone, I'm new, but am trying to learn how to control power/current/switching in electronics. I'm pretty good at normal stuff, ohms law, trouble shooting, etc, but I don't have a clue how to setup something simple from a chip.

    I have complete control over the PIC32 chip, it performs as expected when I turn on an output. I get 5 VDC from output pin to ground. Everything works great there, but I want to start controlling the physical world with this thing, real stuff, not just LEDs.

    I would like that output to power a 12 volt DC light bulb (via non mechanical), and another circuit to control a 120 watt (AC) light bulb. On/Off should be simple.

    I'm imagining a transistor, a resistor and I should be in operation? I just don't know where to look to get the basics, from there I can expand. Current project is a house cooling system with evaporative cooler, 4 temp gauges, circulation fans, water pump. If I can turn on a light bulb, I can figure out the rest - minus some research on inductive high amps loads (relays probably).

    So if you could send a link in the tutorials (i looked to no avail) or an outside link, or just say simply how to do it, and I'd be forever grateful.

    And mind you, imagine I have a 5 volt battery with 10ma max output, I just want that (in conjunction with another power supply) to be able to control the light. IIRC, output is an open collector, but it can be open drain also. (I don't know what that means)
     
  2. (*steve*)

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

    25,497
    2,839
    Jan 21, 2010
    Google "PIC solid state relay" for information on how to use a solid state relay with a PIC. This is a comparatively safe way to switch mains using a microcontroller.

    Google "PIC mosfet load" for information on using a mosfet with a microcontroller.

    Be aware that there are plenty of gotchas that most web sited ignore or gloss over, so just check (with us if you like) that whatever you choose to do is appropriate before you go out and buy stuff.
     
  3. aloneindesert

    aloneindesert

    2
    0
    Jul 16, 2013
    Perfect, Thank you. That lead me to some real simple examples using a PIC and 2N2222A for driving a real relay.
     
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

-