Adding Ports status to a variable


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Adding Ports status to a variable

    Hi,
    Personally I wouldn't worry about running the motor off a 6V supply.
    As for the circuit not operating properly below ~4V the only think I can think of is the POT command not doing the business. The manual says that the Pot/resistor should be 5-50k, you have 100k. It says to adjust Scale contstant to a lower value for large RC constants, you have the scale set to its maximum. Perhaps that's got anything to do with it.

    /Henrik.

  2. #2
    Join Date
    May 2009
    Location
    Montreal, QC, Canada
    Posts
    118


    Did you find this post helpful? Yes | No

    Default Re: Adding Ports status to a variable

    Since my first post, I have reduced the POT to 50K and I've used the code example given in the PBP book to adjust the scale and my value is now set to 30 so this is a mystery but I am not so concerned.
    I will use 2 diodes to supply the PIC and run the motor off the 6V, anyway the goal is to reduce the motor speed so it will be set to probably half duty-cycle. I didn't receive the motor yet but fingers crossed.

    Thank you Henrik for your help.

    Mike

Similar Threads

  1. activating i/o ports according to variable value
    By Picman in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 29th July 2010, 13:55
  2. accessing ports pins using an index variable
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th March 2008, 20:36
  3. adding new word variable ?
    By iugmoh in forum General
    Replies: 4
    Last Post: - 21st February 2008, 00:26
  4. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 15:21

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