Newbie with LAB X1 timming problem


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2006
    Location
    Brooklyn,NY
    Posts
    32

    Wink Newbie with LAB X1 timming problem

    How would I duplicate a retriggerable one-shot multivibrator with PicBasic Pro software. I would like the time period to be variable(programmable T1). The trigger input would be the output from an A/D converter.

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


    Did you find this post helpful? Yes | No

    Default

    schlaray, Do you mean you want the one shot period to be a function of the a/d reading or do you want the one shot to be triggered by some value being exceeded by the a/d?

    Dave Purola,
    N8NTA

  3. #3
    Join Date
    Nov 2006
    Location
    Brooklyn,NY
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    The one-shot will be triggered by a high value out of the A/D converter

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


    Did you find this post helpful? Yes | No

    Default

    Code:
    Start:
        ADCIN 0, ByteA
        If ByteA>Something then 
            Pulsout...
            endif
        GOTO Start
    Steve

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

  5. #5
    Join Date
    Nov 2006
    Location
    Brooklyn,NY
    Posts
    32


    Did you find this post helpful? Yes | No

    Wink

    I thank everyone for their interest. The period T1 will vary from 0 to 4 hours. The output of this one-shot will energize a delay operate timer whose period will also be 0 to 4 hours. Using the built in timers in the 16F877A seems to be a complicated task. When is it advantagious to use a seperate RTC to access time periods?

  6. #6
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi schlaray,

    Why don't you look at using one of the 12F series PICs as they are small. I'm assumming here that all you are looking for is creating a one shot timer. You could create a clock using the internal timers and have a serial display showing how much time has elapsed. You have 6 I/O pins to work with on the 12F series. Look at data sheets for one with an A/D input then go from there. I think one with 1K of memory should do the trick for you. Search this forum for Paul Borgmier's "Easy Clock" programs to see just how easy it is to create a clock with a serial display. I think what you're asking to do should be relatively simple to make. You could use one button to set the time period to whatever time you wantand the same with how long of a pulse you want to have. Setup a small menu program to select these times then have your display show you are "waiting for an activation". See how an imagination can run wild. That's what I like about this stuff. It gets the creative juices flowing, even on a Sunday!

    Have fun!

    BobK

    Chuck Helebuyck has produced some articles in Nuts and Volts Magazine this year that show you how easy it is to use timers and interupts. There also some great sample programs on the MELabs website.
    Last edited by BobK; - 5th November 2006 at 17:42.

  7. #7
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi schlaray,

    I got to thinking about your project again. Darrel Taylor had a great program called "Elapsed Timer" posted on this forum some time ago. Your ADC reading could trigger the timer and you just monitor the count until it reaches the point you want to stop at and do what you need to do.

    BobK

  8. #8
    Join Date
    Nov 2006
    Location
    Brooklyn,NY
    Posts
    32


    Did you find this post helpful? Yes | No

    Wink

    Once again I thank everyone for their input. With the information I have received it is time for me to get to work and apply some of it. As my project advances, I will return to ask additional questions.

Similar Threads

  1. Weird issue with Lab X1
    By Demon in forum General
    Replies: 28
    Last Post: - 25th March 2010, 04:30
  2. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 19:48
  3. power problem (newbie here!)
    By clocks in forum General
    Replies: 10
    Last Post: - 2nd May 2009, 13:18
  4. Making the Lab X1 communicate with the Lab X2
    By MatthewM in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th June 2008, 22:26
  5. Newbie problem :)
    By sokrad in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th January 2008, 10:34

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