make a low voltage output from a PIC pin


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    3

    Default make a low voltage output from a PIC pin

    hi,

    for a science project, my son and i want to see what effects a low voltage will have on a goldfish. NOTE: this is LOW voltage and current, so no fish will be injured! i am using a simple voltage divider ckt to get 5.0V supply down below 1.0V steadystate.

    my question is: how can i generate a low voltage that "flutters" off and on from a PIC pin? i'm guessing just do a PWM or SOUND output off the pin with another voltage divider? target voltage is 0.5 to 1.0V to keep it simple.

    oh, and it must work underwater ;-)

    any inputs are appreciated!

    thanks
    Pat

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    You may want to connect pwm pin of 628A with an led or fish frying probe to say PORTB.0.

    Then have PWM set to a level that will give you the voltage you need.

    PWM will run in background.

    On the main program, you will have a simple flip flop loop turning PORTB.0 on and off.

    When PORTB.0 is low, then PWM will be flowing through your probe (or led for test) to PORTB.0.

    If you aso control flip flop frequency with a pot and also connect your pwm with another pot, then you can control both the voltage and the flip flop rate externally.

    P.S. - Voltage reference feature of this chip can give you 1.25V on Vref pin.




    -------------------------
    Last edited by sayzer; - 8th February 2008 at 20:23.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. What's the voltage on output pin when it's HIGH?
    By TonyA in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 23rd April 2008, 16:06
  2. "hello world" with 18f6680
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 91
    Last Post: - 6th February 2008, 07:06
  3. Dead PICs
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 15th August 2007, 14:12
  4. PIC 16F684 Configuration Settings
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th April 2007, 16:18
  5. Grounding Negative voltage through I/O pin
    By Squibcakes in forum Schematics
    Replies: 2
    Last Post: - 31st July 2006, 13:12

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