Loading...
Pages: [1]   Go Down
Author Topic: Integrating a timer in a photoresistor sun-tracking system.  (Read 252 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: 108
Posts: 6607
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

Queens, New York
Offline Offline
Edison Member
*
Karma: 31
Posts: 1730
"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

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

0
Offline Offline
Full Member
***
Karma: 2
Posts: 155
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
Print
 
Jump to: