![]() |
|
|||||||
| The Projects Forum Working on an electronics project and would like some suggestions, help or critiques? If you would like to comment or assist others with their projects, this is the place to do it. |
|
|
|
Thread Tools | Display Modes |
|
#11
|
|||
|
|||
|
thank you all of you ,for your advices
at this time i cannot change the design i mean the stepper or the sensors ....,cause i have to submit the final report soon.so if u can concentrate your advices on what i have to do on the existing design it would be much better.and can i make the micro sleep and wake up any time i want for a definite period?any body who know the hi tech c compiler syntax,would you give me the code....and i have some problems on the delay routine. thank you; |
|
#12
|
||||
|
||||
|
Quote:
The big benefit is that it does not need to know what time of day it is or what day of the year it is. Quote:
Quote:
Code:
// C code for a 1 second period with a 1MHz timer (4MHz xtal);
// uses 1 variable; unsigned long bres
// gets here every TMR0 int (every 256 ticks)
bres += 256;// add 256 ticks to bresenham total
if(bres >= 1000000)// if reached 1 second!
{
bres -= 1000000;// subtract 1 second, retain error
do_1sec_event();// update clock, etc
}
Select All
Suggestion on solar tracking algorithm; (sun moves 360' per day or 15' per hour, that is about 1.25' every 5 minutes) 1. every 5 minutes move 1.1 degrees (leaves 0.15 degrees error). 2. check sensors, if west>east move another 0.3 degrees. The result is that every 5 minutes it will move either 1.1 degrees or 1.4 degrees, and the input from the sensors will keep it phase locked to the sun. Anyway, that is a starting point.
__________________
Roman Black - PICs and electronics. Author of BTc PIC-sound encoder, Shift1-LCD project, the TalkBotBrain talking PIC controller, LiniStepper open-source microstepping motor driver, the Black Regulator 2-transistor SMPS, and probably some other stuff; www.RomanBlack.com |
|
#13
|
|||
|
|||
|
how can i wake up a pic micro from sleep?
i mean when the sun rises in the morning. |
|
#14
|
||||
|
||||
|
Only put the PIC to sleep for five minutes at a time (or something like that). On wake-up, check if the Sun's shining. If not, go back to sleep for five minutes. Your PIC will only be running for a total of a few seconds per night and use very little power.
|
|
#15
|
||||
|
||||
|
or, run your sensors through a window comparator which interrupts the micro when west angled sensor excedes east angled sensor, then step until comparator flips back.
__________________
I get all the news I need on the weather report |
|
#16
|
|||
|
|||
|
i have tried the comparator method but i coudnt wake the micro up....,i don know may be the error is on the code.so do u have any suggestion. i was writing the code in ccs c language.
|
|
| Tags |
| based, microcontroller, panel, solar, tracking |
Related Site Pages
|
||||
| Section | Title | |||
| Worksheet | Design Project: audio media-based signal generator | |||
| Worksheet | Open-loop opamp circuits | |||
| Textbook | The common-emitter amplifier : Bipolar Junction Transistors | |||
| Textbook | The transistor as a switch : Bipolar Junction Transistors | |||
| Textbook | Special-purpose diodes : Diodes And Rectifiers | |||
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DC/DC Voltage boost from solar panel | russpatterson | The Projects Forum | 3 | 02-15-2010 04:25 AM |
| Solar Panel to Charge Lithium Polymer Batteries | zenite | The Projects Forum | 11 | 01-29-2010 10:44 PM |
| NEED HELP-Question About LED and Solar Panel | ajoi24 | General Electronics Chat | 8 | 12-09-2009 03:26 PM |
| help on Tracking system ! | extremeads1 | The Projects Forum | 2 | 06-01-2007 02:07 PM |
| Microprocessor/ Microcontroller based system | saleemsm | Embedded Systems and Microcontrollers | 5 | 06-07-2006 04:07 AM |
| Thread Tools | |
| Display Modes | |
|
|