+ Reply to Thread
Page 1 of 2
1 2 Last
Results 1 to 15 of 22

Thread: Problem with Solar Tracker circuit

  1. #1
    TheEngineer Newbie
    Join Date
    Oct 2009
    Posts
    9

    Default Problem with Solar Tracker circuit

    Hello,

    For a project I am attempting to make a solar tracker that tracks the sun throughout the course of a day from east to west. I will have circuitry to sense the sun and then use a motor and linear actuator to adjust a PV panel to face directly at the sun.

    The circuitry uses photoresistors (along with an LM339 comparator) that will change resistance depending on the amount of sunlight. Therefore, when the West sensor sees more light than the East, it will have less resistance and allow for more current to flow and activate a motor relay to turn the panel towards the West. When the panel is directly under the sun, both sensors will see equal light and the panel is not moved. At the end of the day, when both panels see equal darkness (high resistance), the panel will move back to the East.

    I found several schematics online for the control circuitry but am having trouble getting the design to simulate correctly (using MultiSim). I can configure the circuit to work correctly for one instance (i.e. pointed directly at sun or with the West seeing more sunlight), but it does not work when I change resistances.

    Basically, when the circuit sees equal light, the photoresistors will have a value of approx 10k. In order for the panel to stay where it is, the voltage at the base of each of the transistors needs to be high (the actual motor relays will connect to the collector of the xistors).

    Similarly, the base voltage of the EAST_DRIVE xistor needs to be high when the WEST resistor is 10k and the EAST is 100k (dark) so that the panel will turn towards the West.

    The problem I am seeing is that since the outputs of U3D and U3B are tied together, that node will only be high when both outputs are high. For whatever reason, I cannot get the values to come out right.


    I am attaching a jpg of the schematic as well as the MultiSim file (in zip folder) incase anyone can maybe run the simulation and see if they can find out what is wrong? I have been racking my brain trying to troubleshoot this.

    Thanks!!
    Attached Images
    Attached Files


  2. #2
    BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent
    Join Date
    Jun 2009
    Location
    Huntsville, Alabama USA
    Posts
    2,174

    Default

    Quote from TheEngineer:
    The problem I am seeing is that since the outputs of U3D and U3B are tied together, that node will only be high when both outputs are high. For whatever reason, I cannot get the values to come out right.
    Yeah, that's kind of the point. This keeps both motors from running at the same time, and tearing up the mechanical components.
    Lions and tigers and bears, OH MY!

  3. #3
    Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent
    Join Date
    Nov 2007
    Location
    Phetchabun,Thailand
    Posts
    3,457

    Default

    What happens if one is high and the other one is low?

    Use two switching diodes at the outputs.
    Proper Planning Prevents Piss Poor Performance

  4. #4
    BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent
    Join Date
    Jun 2009
    Location
    Huntsville, Alabama USA
    Posts
    2,174

    Default

    Diodes aren't needed, and would defeat the safety feature. Also, the OP's writeup is wrong; in order for the thing to NOT move, the transistor bases have to be low. If they are both high, then the motor will get confused.
    Lions and tigers and bears, OH MY!

  5. #5
    Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent
    Join Date
    Nov 2007
    Location
    Phetchabun,Thailand
    Posts
    3,457

    Default

    Quote Originally Posted by BrownOut View Post
    If they are both high, then the motor will get confused.
    what will happen exactly if U3B and U3C are high.
    Proper Planning Prevents Piss Poor Performance

  6. #6
    BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent
    Join Date
    Jun 2009
    Location
    Huntsville, Alabama USA
    Posts
    2,174

    Default

    Quote Originally Posted by Boncuk View Post
    what will happen exactly if U3B and U3C are high.

    Then "East" relay energizes, and the safety feature prevents the "West" relay from energizing. Safety featuer could be made much better, I'm sure.
    Last edited by BrownOut; 9th October 2009 at 02:58 AM.
    Lions and tigers and bears, OH MY!

  7. #7
    TheEngineer Newbie
    Join Date
    Oct 2009
    Posts
    9

    Default

    Quote Originally Posted by BrownOut View Post
    Then "East" relay energizes, and the safety feature prevents the "West" relay from energizing. Safety featuer could be made much better, I'm sure.
    Thanks for your input, sorry about the delayed response.

    I guess I am a little confused. If the base of the transistors is High, then the multimeter attached to the collector sees a Low voltage. It was my understanding that I want a Low value in order to keep the relay, which will be where the multimeter is, from activating. Thus, when I want the panel to turn towards the West, I want a High value on the multimeter XMM1 and a Low value on the multimeter XMM2. Is this correct?

  8. #8
    BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent
    Join Date
    Jun 2009
    Location
    Huntsville, Alabama USA
    Posts
    2,174

    Default

    If your relays are modeled by the 10K ohm resistors, then it's just the opposite. You have one side connected to VDD, so it takes a "Low" on the collector side for any current to flow, and energize the relay.
    Lions and tigers and bears, OH MY!

  9. #9
    TheEngineer Newbie
    Join Date
    Oct 2009
    Posts
    9

    Default

    Quote Originally Posted by BrownOut View Post
    If your relays are modeled by the 10K ohm resistors, then it's just the opposite. You have one side connected to VDD, so it takes a "Low" on the collector side for any current to flow, and energize the relay.
    Ahh, that makes perfect sense. Thanks!

    On another note, I am having a hard time figuring out the purpose of the 1M feedback resistors (I did not create this circuit originally). Taking them out doesn't seem to affect the output node on the comparator. Do you know what they might be there for, especially when their value is so high?

  10. #10
    BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent
    Join Date
    Jun 2009
    Location
    Huntsville, Alabama USA
    Posts
    2,174

    Default

    It's called "hysterisis" and it prevents the output from oscillating at the switch point. Leave them in.
    Lions and tigers and bears, OH MY!

  11. #11
    TheEngineer Newbie
    Join Date
    Oct 2009
    Posts
    9

    Default

    Quote Originally Posted by BrownOut View Post
    It's called "hysterisis" and it prevents the output from oscillating at the switch point. Leave them in.
    Ok. Any specific reason why U3D doesn't need one?

  12. #12
    BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent
    Join Date
    Jun 2009
    Location
    Huntsville, Alabama USA
    Posts
    2,174

    Default

    I'm not crazy about the way U3D is connected. I would probably not connect the way it's in your drawing. But without at least simulating it, I would't feel comfortable telling you to change anything. IMO, you can connect a 1M feedback or not.
    Last edited by BrownOut; 19th October 2009 at 02:23 AM.
    Lions and tigers and bears, OH MY!

  13. #13
    TheEngineer Newbie
    Join Date
    Oct 2009
    Posts
    9

    Default

    Quote Originally Posted by BrownOut View Post
    I'm not crazy about the way U3D is connected. I would probably not connect the way it's in your drawing. But without at least simulating it, I would't feel comfortable telling you to change anything. IMO, you can connect a 1M feedback or not.
    I believe it is set up that way so that both relays can never be on at the same time. Do you have any suggestions as to a better configuration?

  14. #14
    BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent BrownOut Excellent
    Join Date
    Jun 2009
    Location
    Huntsville, Alabama USA
    Posts
    2,174

    Default

    Quote Originally Posted by TheEngineer View Post
    I believe it is set up that way so that both relays can never be on at the same time. Do you have any suggestions as to a better configuration?
    You're right about that. I just think it's not optimal, but if it works, then go with it.
    Lions and tigers and bears, OH MY!

  15. #15
    TheEngineer Newbie
    Join Date
    Oct 2009
    Posts
    9

    Default

    I have this circuit working now and am looking for some advice on a driver unit to turn the panel. Currently, I have the panel mounted on a lazy susan-type turntable that will be rotated by the use of a linear actuator. I am planning on making this linear actuator myself by mounting a bolt on the motor shaft, similar to this: Quick and easy "electric linear actuator" prototype ...

    However, I have run into the issue of my motor running way too fast (~2500 RPM) and would like to use a stepper motor with a 555 timer as a controller. In reference to the circuit that I posted earlier in this thread, when the "west" photocell receives more light than the "east" (and the panel should turn west), I'd like the motor to step towards the west, then recheck the signal, step, recheck, etc until both photocells are receiving equal light and the panel does not turn too far.

    Can anyone point me in the right direction of how to set this up?
    Last edited by TheEngineer; 21st November 2009 at 11:24 PM.

+ Reply to Thread
Page 1 of 2
1 2 Last

Similar Threads

  1. Solar Tracker Help
    By Muad'Dib in forum Renewable Energy
    Replies: 5
    Latest: 26th October 2009, 05:48 AM
  2. Solar Tracker Help pt.2
    By jmarmontgomery in forum Electronic Projects Design/Ideas/Reviews
    Replies: 5
    Latest: 12th September 2008, 04:53 AM
  3. Help with solar tracker circuit
    By Moneer81 in forum General Electronics Chat
    Replies: 15
    Latest: 4th August 2008, 10:52 AM
  4. Solar Inverter and Solar Tracker
    By gtoluyemi in forum Chit-Chat
    Replies: 1
    Latest: 15th April 2008, 03:51 AM
  5. Solar Tracker
    By quium in forum Electronic Projects Design/Ideas/Reviews
    Replies: 3
    Latest: 19th January 2007, 05:17 PM

Tags for this Thread