solar tracker controller


Results 1 to 40 of 42

Threaded View

  1. #8
    anj's Avatar
    anj Guest


    Did you find this post helpful? Yes | No

    Default

    Gday Cire
    60? whats that.
    Looking at yr diag, i assume the limit switches are used to set the amount of travel for the tracker.
    So operation would be

    start pointing east
    track sun during day
    when hit west limit switch stop tracking and wait for sun to go down
    quickly slew back to east until hit east limit switch
    wait until light again
    repeat process

    if this is the case i would do this
    move the new call to stop tracking so it is checked before anything else
    delete the other call to "hold" routine
    ................
    start:
    low PORTB.0 'pin portb.0 low
    low PORTB.1 'pin portb.1 low

    if PORTA.1 = 0 then face_east 'limit switch1 <- move to here

    Pot PORTB.2,255,b0 'read first cds sensor
    pot PORTB.3,255,b1 'read second cds sensor
    ................
    modify new routines

    face_east: 'facing east
    low PORTB.0 'pin portb.0 low /stopping the solar panel for moving
    low PORTB.1 'pin portb.1 low / stopping the solar panel for moving
    sleep 14400 'wait for 4 hours
    high PORTB.1 'pin portb.1 high /solar panel back facing east ready for next day sun shine

    'Add this next bit to wait until east limit switch closes
    ' dont go back to start, do all here
    hitsw:
    if PORTA.2 = 1 then hitsw 'loop until you have hit the switch
    'note, now use = 1, ie while sw is open, just keep slewing until it closes
    low PORTB.0 'pin portb,0 low / stopping the solar panel for moving
    low PORTB.1 'pin portb.1 low / ----- do ----
    sound PORTB.4,[124,12000] 'tone

    sleep 3600 'wait for 1 hour
    goto start 'check again
    end

    Andrew
    Last edited by anj; - 26th March 2004 at 23:24.

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