Using LCD from Mechatronics Demo Board


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Nah, PBP handle it. if 0-50 in a byte variable will return 205 or 206.
    But 'duty' is a word and, if it does end up being a 'negative number', it'll be above the 1000 limit set in the IF/THEN above and nothing will happen to 'duty' and the program will appear to go stupid.

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


    Did you find this post helpful? Yes | No

    Talking

    <table><td></td><td>hum hum... pfff i knew... it was a test to know if you follow... HUM HUM</td><td></td></table>
    Steve

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

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    hum... pfff i knew... it was a test to know if you follow... HUM HUM
    Do I get anything as a prize?

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


    Did you find this post helpful? Yes | No

    Wink

    My respect for few days... or some of those...

    Last edited by mister_e; - 10th May 2007 at 04:47.
    Steve

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

  5. #5
    Join Date
    Apr 2007
    Location
    Copenhagen
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Ups, you're right. I will correct it today, but I don't think that this is the main problem, because I don't use the buttons to change the speed and the motor just stops.
    However, that gave me smth to think about. Maybe somehow now the pin connected to the "decrease" button is by default low, so in each loop program reduces the speed by one step, even though I didn't press anything?
    Maybe I should somehow configure the pins connected to buttons to detect button press correctly?

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. 16f887 44 pin demo board code problem?
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th December 2008, 14:17
  3. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Replies: 8
    Last Post: - 7th December 2006, 15:42

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