embedded c code for a solar tracker using atmega8

Discussion in 'Embedded Systems and Microcontrollers' started by firdous jahan, Feb 3, 2013.

  1. firdous jahan

    Thread Starter New Member

    Feb 3, 2013
    1
    0
    can i get the embedded c code for a solar tracker using atmega8 ..it uses a single stepper motor ,2 ldrs and a lcd display..
     
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    You are in luck! I just happen to have such a code!
    Code ( (Unknown Language)):
    1.  
    2. void main()
    3. {
    4.     //do initialization
    5.     Initialize();
    6.     while(1)
    7.     {
    8.         //do solar tracking
    9.         Traq_te_sunz();
    10.     }
    11. }
    12.  
    Now that that is out of the way, think, can anyone write code for a system without knowing how the parts are connected, or what the parts are?

    The answer is no...

    So, how about a schematic, hmmm?
     
Loading...