Basic PIC circuit acting weird


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Posts
    3

    Default Basic PIC circuit acting weird

    Hi

    I'm following a basic PIC tutorial. I've assembled a circuit on my bread board to flash an LED. I'm using the PIC 16F886 with a 5V AC to DC converter (500 mA max).

    The Setup:
    5V going to the Vdd
    5V to MCLR through 11.5 kOhm resistor
    Vss to ground
    5V to RC oscillator w/ a 11.5 kOhm resistor in series w/ a 27 pF capacitor to ground
    OSCin is connected to the RC oscillator between the resistor and capacitor
    220 Ohm resistor from port B to an LED to ground

    The problem:
    The circuit doesn't work unless i'm physically touching the LED wire or the resistor coming to it. I checked my connections with a multimeter but they seem ok. The port doens't seem to output voltage UNLESS i'm touching it.

    LOL this is driving me insane. Any ideas on what's happening.

    Thanks

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Post your code, PIC number. Do you have a regulator in your power supply? Capacitors ? Have you set the TRIS and PORT registers? Have you set the config fuses? Are you using Resistors to tie the unused ports to either ground or VCC ?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    your oscillator does not work! It start oscillating when you introduce disturbances with your body antenna. Replace oscillator with something that surely oscillate as a ceramic resonator.

  4. #4
    Join Date
    Jun 2007
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    you're right, i hadn't set the right oscillator setting on the pic.

Similar Threads

  1. Sending Commands from Visual Basic about IR to Pic
    By tne_de in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th April 2009, 06:09
  2. Replies: 3
    Last Post: - 29th October 2006, 09:16
  3. using AND as an IF statement
    By dw_pic in forum mel PIC BASIC
    Replies: 27
    Last Post: - 8th June 2006, 18:05
  4. How to use 93C46 Type EEPROM using PIC Basic PRo
    By in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st April 2003, 04:07
  5. Help with MPASM and PIC Basic
    By johngb in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 21st February 2003, 13:07

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