Variable voltage output from a Pic?


Results 1 to 9 of 9

Threaded View

  1. #4
    Join Date
    Jul 2004
    Posts
    6


    Did you find this post helpful? Yes | No

    Smile Pwm

    Hi Guys, thanks for your thoughts on this.
    What i'm trying to do is control the colour of a tri-colour LED (red, green and blue) I want to be able to set the overall colour of my LED at any colour using different voltages on each pin.

    I wasn't aware of the PWM command until now, it works well but goes low when I come out of the PWM loop.

    In my code, i'm using the SerIn command to listen for the RGB values, set the colour of the LED acordingly and then wait for another input.

    The hardware HPWM command sounds perfect, that way I can just alter the colour and go back to SerIn.

    My other problem is that I have 100x tri-colour leds to control. It shouldn't be too much of a problem to address them all, thats if the 16F628 supports SerIn?
    I don't mind having 30 of these pics (10 for each colour), each controling 1 colour of 10 separate led's. Do you know if there are enough outputs on the 16F628 to do this?

    Many Thanks,

    Dan
    Attached Images Attached Images  
    Last edited by Dan_lay; - 7th July 2005 at 19:10.

Similar Threads

  1. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00:52
  2. Replies: 5
    Last Post: - 30th April 2008, 20:01
  3. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  4. Output PIC module
    By freelancebee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th September 2005, 20:10
  5. can a pic remember a variable?
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 18th January 2005, 09:50

Members who have read this thread : 0

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