A pic circuit as a "switch" on a higher voltage circuit?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Posts
    14

    Default A pic circuit as a "switch" on a higher voltage circuit?

    Hi again all!

    Say i have a really simple circuit.

    Just a 9v battery, to a 9v motor.

    And i want to use a pic circuit to control this circuit how would i do it?




    So my simple pic circuit running allowing the current to pass through the higher voltage circuit only when the leg is "high"
    (sorry about the crap diagram, but hopefully it shows 2 seperate circuits, with the 5v one controlling the 9v one)


    Many thanks.

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    guest_05, I would use an NPN transistor with the Collector connected to the lamp and the Emitter connected to the Negative of the 9 volt battery. The Base of the transistor would have a resistor of about 1000 Ohms to the PIB output pin. Also you NEED a Common ground path between the 5 volt source and the 9 volt source.

    Dave Purola,
    N8NTA

  3. #3
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Hi,
    you can use an NPN or PNP transistor as a switch.the number of the transistor is depends on the current that your motor need.and also you you can use 74HC4066(analoge switch) but it is depends on your motor current.
    you can use 7805 regulator to have the 5 volt regulated voltage .
    you should connect the 9 volt to the input and connect the ground to the middle pin and take the 5 volt from output of the ic.

  4. #4
    Join Date
    Oct 2006
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    wow, cheers for the replies guys, but you are both way over my head

    --- i've only just finished my first circuit of blinking an led lol


    Basicly, i cannot do anything with the 9v circuit, i just used that as an example, i'm really using a 12v torch on a boat.

    I dont want to really join the two circuits up, except for unsoldering the switch on the torch, and adding a single component in to act as the switch.

    Then my pic circuit will be able to do simple flahses of the torch, such as "SOS" etc.

    Many thanks.

Similar Threads

  1. PIC 16F877A circuit for stepper motor...
    By kristina in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th June 2012, 09:13
  2. Controlling power to a PIC with another PIC
    By jswayze in forum Off Topic
    Replies: 3
    Last Post: - 28th May 2005, 20:44
  3. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14
  4. PIC vs PLC (programmable logic controller)
    By pondindustrial in forum Off Topic
    Replies: 4
    Last Post: - 17th December 2004, 22:11
  5. Pic suggestion for high precision voltage measure
    By d1camero in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th April 2004, 07:22

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts