solar tracker controller


Closed Thread
Results 1 to 40 of 42

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    muzakyo, I found this .txt file I saved from a couple of years ago. I thought you might be interested because it looks like the same code you are trying to use but has been modified since your version.... Enjoy...
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    Hmm, I took a look at the code, but see no check to stop the motors when in a balance of the sensors (if they were moving).

    Maybe this will help:

    Code:
    greater: 'greater routine
    b2 = b0 - b1 'find the difference
    if b2 > 10 then cw 'is it within the range? if not go to clockwise/ solar panel facing west
    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
    goto start 'if it is in the range,do it again
    
    lesser: 'lesser routine
    b2 = b1 - b0 'find the difference
    if b2 > 10 then ccw 'is it within the range? if not got counter clockwise/solar panel 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
    goto start 'if it is in the range, do it again
    This is an idea, not tested.

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    Ioannis , The line begining with "Start", the first thing the program goes is disable the motor outputs.....

    Dave Purola,
    N8NTA

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    Ooops yes. You are right.

    On the other hand, 100ms isn't too litlte for a motor to start and move the panel?

    Ioannis

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


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    Ioannis, Yes I do beleive 100 milliseconds is to short of a period to operate the motor BUT, I didn't write the code... I only regergitated it from some old records I had for Muzakyo...

    Dave Purola,
    N8NTA

  6. #6
    Join Date
    Mar 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Smile Re: solar tracker controller

    "The line begining with "Start", the first thing the program goes is disable the motor outputs....."

    i think that can be apply to my proramming.... the function is just like the proramming ioannis write....

    greater: 'greater routine
    b2 = b0 - b1 'find the difference
    if b2 > 10 then cw 'is it within the range? if not go to clockwise/ solar panel facing west
    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
    goto start 'if it is in the range,do it again

    lesser: 'lesser routine
    b2 = b1 - b0 'find the difference
    if b2 > 10 then ccw 'is it within the range? if not got counter clockwise/solar panel 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
    goto start 'if it is in the range, do it again

    so what the suitable timing for the pause...?

    i not try it yet to the motor....
    i am currently doing the circuit.... and now try to assemble the circuit with the lcd....
    i need to add command for lcd in the proramming ....

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


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    Quote Originally Posted by muzakyo View Post
    "so what the suitable timing for the pause...?
    Well, I personally leave the motor on untill the sensors are indicating that there is no more indifference. I also start a timer each time the motors are started and check it for a timeout condition.

  8. #8
    Join Date
    Oct 2011
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    Quote Originally Posted by Dave View Post
    muzakyo, I found this .txt file I saved from a couple of years ago. I thought you might be interested because it looks like the same code you are trying to use but has been modified since your version.... Enjoy...
    what programme did you use ?! micopaskal ?! or what ?! thanks !

  9. #9
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    I hope you realize that your motors will only be powered by 4.3V or so, even though your source is 12V. The PIC will put out a maximum of 5V from its output pins, and those drive the bases of the two 'top' transistors in the bridge. The emitters will go no higher than a diode drop below the bases. If you really are using the circuit you show, your 'top' transistors are going to dissipate a lot of power, and your motor won't have much power.
    Charles Linquist

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


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    PiRaTuS, From the looks of it, it was written for a Basic Stamp.... Just my observation....
    Dave Purola,
    N8NTA
    EN82fn

  11. #11
    Join Date
    Oct 2011
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    thanks a lot , can i convert from basic stamp to mikro pascal ?!

  12. #12
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    My comment was referring to the schematic posted by CIRE.
    Charles Linquist

  13. #13
    Join Date
    Feb 2011
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    This dual axis solar dish tracker is way more than you need, but you find something useful, like a motor controller. http://www.harbornet.com/sunflower/sunrun.pbp Best, Doug

  14. #14
    Join Date
    Oct 2011
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: solar tracker controller

    Quote Originally Posted by Dave View Post
    muzakyo, I found this .txt file I saved from a couple of years ago. I thought you might be interested because it looks like the same code you are trying to use but has been modified since your version.... Enjoy...
    im sorry , but can you hel me with this , do you have electric schematic and PCB

Similar Threads

  1. Microstepper controller
    By aratti in forum Schematics
    Replies: 14
    Last Post: - 3rd January 2015, 16:52
  2. Replies: 14
    Last Post: - 6th March 2011, 05:08
  3. Replies: 2
    Last Post: - 14th July 2008, 22:11
  4. Fridge controller
    By nomad in forum General
    Replies: 4
    Last Post: - 23rd February 2008, 07:13
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14: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