Using PIC16F84A as a timer for several I/O


Closed Thread
Results 1 to 8 of 8

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I know...I am missing something.
    I think he wants to switch the circuit he has from 1 motor to the other so as not to buy / build another tracking circuit. It is doable but the issue I see is when switching from 1 set of sensors to another the calibration difference may throw things out of whack. I think all you need is a simple loop to switch a relay, something like:
    Code:
    loop:
    PortB.0 = 0
    pause 60000
    portb.0 = 1
    pause 60000
    goto loop
    EDIT: Another issue came to mind, and that is how your tracking circuit will react to having its outputs go from open circuit to loaded
    being switched by a relay, I am thinking some big resistors (high watt high ohm value) joining those circuits to handle the transients, or perhaps MOVs. Better yet use FETs to switch instead of relays . Damn I must be getting old . . .
    Last edited by Archangel; - 22nd March 2009 at 18:07.
    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.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    WOWWWW guys, i didnt think this would be that complicated.

    Ok let me try to explain once more, u seeeee i already have the tracking circuit made, i got the 2 LDRs (FYI: these LDRs compare the light intensity and then move motor to a postion where there is equal light falling upon them) and the motor running at 12V, everything is setup, basically i have finished the tracking system for azimuth direction.

    All i want to do is thaaat instead of making a whole new tracking circuit for the vertical direction, i want to use an automatic timer. so now i should have one tracking circuit, 2 LDRs for azimuth direction, motor for moving panel in azimuth direction, 2 LDRs for vertical direction, and a motor for vertical direction. All the automatic timer should do is that to switch from one motor and a pair of LDRs (azimuth direction) to the other motor and a pair of LDRs (vertical direction).

    is there any project anywhere of this nature that i can refer to?

    Guys i seriously appreciate all the help u have provided, i mean believe it or not, this was my first time ever posting a message in a forum, and im really glad to see the kind of respose i have recieved.

    thanks once again, any furthur help would be appreciated,

    take care

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


    Did you find this post helpful? Yes | No

    Default

    OptimusPrime, All you need is a 4 pole double throw relay. 2 contacts for the motor output from the tracker to the motors and 2 contacts for the 2 sets of LDR's. Program the PIC for 60 second pause then toggle 1 of the outputs to drive a transistor to switch the relay... Pretty simple I think...

    Dave Purola,
    N8NTA

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  3. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 07:56
  4. Timer interrupt frequency
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th January 2009, 23:49
  5. timer interupt help 16f73
    By EDWARD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd July 2005, 08:41

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