16F877 Flickering LED


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1

    Unhappy 16F877 Flickering LED

    I have this strange problem with a RFID Scanner module that I connect to my PIC.

    If I connect the RFID Module directly to a 9volt battery and a 7805, it is working fine.

    On the RF Reader module I have a LED Witch goes on and off when I scan a RFID.

    When I connect the RF Reader Module to PORTA.3 of my PIC through a transistor (To make the current a bit more), the Module's LED Just starts flickering?

    Any ideas what the problem could be?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    can you post your whole schematic for some 'visual based' person like me?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3


    Did you find this post helpful? Yes | No

    Red face Circuit

    Here is my Circuit
    Attached Images Attached Images  

  4. #4


    Did you find this post helpful? Yes | No

    Unhappy RF Reader Module

    Here is the Pin Names for the RFID Reader Module.
    I'm ussing a 2N2222A Transistor at the RF Module.
    Attached Images Attached Images  

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Depending of your actual code but... did you disable internal adcs?
    ADCON1=7


    set PORTA.3 to outpuit, set here to LOw at the begining?

    are you sure of your actual schematic? looks weird.. What is the part number of your RF module?
    Last edited by mister_e; - 13th May 2005 at 15:02.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6


    Did you find this post helpful? Yes | No

    Unhappy code

    Here is my code:




    Include "Modedefs.bas"

    DEFINE OSC 20 ' Set the Xtal frequency to 20mHz
    RFVDDPin VaR PORTA.3 ' RF Module Power Pin.

    Main:
    ADCON1 = 7 ' Set Analog pins to Digital.
    TRISA = 0 ' Set all PortA Pins as output
    high RFVDDPin ' Switch RF Module On.
    end

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Replies: 3
    Last Post: - 5th December 2008, 15:00
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. can't even flash an LED
    By bruno333 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2005, 13:27

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