solar tracker controller


Results 1 to 40 of 42

Threaded View

  1. #22
    Join Date
    Mar 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Smile Re: solar tracker controller

    i think i will follow Ioannis idea about the programming of the motor....
    also such as dave said...... stop only there are indifference in Cds value.....

    this is the proramming for the LCD



    TRISA = 1 'Set all PORTA pins as inputs (Cds)
    TRISc = 0 'Set all PORTc pins as outputs (motor)
    TRISD = 0 'Set all PORTD pins as outputs (LCD)
    TRISB = 1 'Set all PORTD pins as outputs (limit switch)

    start:

    pot porta.0,255,v1 'Read 1st CdS Sensor (east)
    pot porta.1,255,v2 'Read 2nd CdS Sensor (west)


    'LCD display
    Serout 1,4,[254, 1] 'Clear Screen
    Pause 25
    Serout portd.1,1,["Cds 1 = "] 'display Cds 1 =
    Serout portd.1,1,[#v1] 'display value Cds 1
    Serout 1,1,[254,192] 'Move cursor to first position on second line
    Pause 5
    Serout portd.2,1,["Cds 2 = "] 'display Cds 2 =
    Serout portd.2,1,[#v2] 'display value Cds 1
    Pause 100 'display the Cds value for a little time


    my problems is there are 4 output for the lcd so i dont know where to put this programming that only have two output.....?

    detail lcd
    16 x 2 characters LCD display
    With yellow backlight
    Built in controller (HD44780 or equivalent)

    http://www.cytron.com.my/usr_attachm..._Schematic.pdf
    Last edited by muzakyo; - 4th March 2011 at 17:19.

Similar Threads

  1. Microstepper controller
    By aratti in forum Schematics
    Replies: 14
    Last Post: - 3rd January 2015, 17:52
  2. Replies: 14
    Last Post: - 6th March 2011, 06:08
  3. Replies: 2
    Last Post: - 14th July 2008, 23:11
  4. Fridge controller
    By nomad in forum General
    Replies: 4
    Last Post: - 23rd February 2008, 08:13
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 15:44

Members who have read this thread : 1

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