Pages: [1]   Go Down
Author Topic: Integrating a timer in a photoresistor sun-tracking system.  (Read 549 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everybody. I am working on a solar panel project. We installed a photo-resistor sun-tracking system that will rotate the solar panel based on the values of the photoresistors (placed orthogonal to each other.)

I have the program set to measure the voltage output of the solar panel every one minute when the solar panel is facing the optimal direction. But when the system decides to rotate, our time-scale is technically off because as soon as the system is done rotating, it measures the voltage output of the solar panel immediately after. This creates a difference of a few seconds between two readings instead of one minute when the solar panel is facing time. I am looking to get correct, corresponding times for the voltage readings.

Thank you everybody!
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

our time-scale is technically off because as soon as the system is done rotating, it measures the voltage output of the solar panel immediately after.

Take out the code that triggers an immediate voltage check after movement.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Queens, New York
Offline Offline
Faraday Member
**
Karma: 65
Posts: 2925
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you post your code?
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

0
Offline Offline
Full Member
***
Karma: 3
Posts: 180
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Whenever I see someone using a tracking system based on sensors I always wonder why use a tracking device based on a sensor instead of just using the very precise available routine that will give you the location of the sun for your location based upon the time and location.  Maybe it is an exercise in sensors and a two dimensional optimization but who use it for a permanent application.

Maybe I am missing something and if I am wrong can someone explain the error in my thoughts.
Logged

Pages: [1]   Go Up
Jump to: