Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Do you have any other way to keep the motors stopped in darkness?
The motor doesn't know what the voltage is on any of its terminals. It only know the difference between them.hmm interesting, so your saying from this schematic, Last One, since they are both showing the same voltage that really the motor is OFF, or is the motor working against itself? I mean my logic behind it is like both sides (polarities) of the motor are fighting against each other like they are in a tug of war match lol ?
So if that is true, will that damage the motor over time? My logic is surely wrong but that's what I think of when I actually see a voltage reading, and not two 0 voltages for both digital multimeters when the solar tracker is getting equal sunlight.
The motor doesn't know what the voltage is on any of its terminals. It only know the difference between them.
Well, right now everything would work except that the circuit doesn't have a definitive state when in darkness. Is there a signal elsewhere in your system that could cut motor power off when there's no solar power?
Obligatory words to permit post
What is the circuit you're using as the input voltage source? You mention phototransistor?
Reason I ask is, phototransistors don't usually generate a 0-1V signal.
OK, according to some of the feedback at the radioshack, buyers say the 'phototransistor' is actually a photo diode. Photo diodes do generate noticeable current in sunlight, and look like open circuit when dark.
It means we can't depend on continuity in the diode during darkness. This isn't good or bad, but it influences the strategy for detecting darkness.
One thought here is to use a "light activated switch" to turn on the motor ground thru a logic level Nfet transistor. No light, then no ground for the motors. Look on the net, there should be plenty of circuit examples.I'm starting to wonder if we could some how make use of another portion of the OP Amp and use another phototransistor who's primary job would only be to detect if there is light or not, and some how make that part of the OP Amp act as a switch for the entire circuit. I have like 2 more logics I can use from this 1 OP Amp but I'm not sure how to fully go about implementing that in my circuit![]()
The third case where there's sun on both photodiodes is a problem. You'll find that Q3 and Q4 are both on, which would be OK, but they drive the gates of Q1 and Q2. The reason you're measuring 832mV on both sides of the motor is the N-channel transistors are stronger than the P-channel. But the P-channel transistors are still fighting really hard and are sending a lot of current through. Put an ammeter in the drain of Q1 and/or Q2. You should see 50 amperes going through each IRF5305.
Both nodes being at 11V+ is not a problem because this leaves the P-channel MOSFETs off.
Another problem is logical. The motor will run whenever the light isn't exactly the same, and moves to track the smallest of illumination changes. That's why I designed a range of 0.2V (we can adjust it later) where it's "close enough" and the motor isn't hunting. If there's no stopped range, the motor will jump back and forth whenever the light on one of the diodes changes just 0.05%. This is what the 10K resistors were there for.
Logic:
Inputs Output
A B X
0 0 1
0 1 1
1 0 1
1 1 0