1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

My Latest Projects

Discussion in 'Renewable Energy' started by bryan1, Sep 11, 2006.

  1. dientudong

    dientudong New Member

    Joined:
    Nov 10, 2008
    Messages:
    3
    Likes:
    0
    LCD_please help me !

    #include "C:\Program Files\PICC\Examples\hienthiso.h"
    #include "C:\Program Files\PICC\Drivers\LCD.C"
    #use delay(clock=20000000)
    #byte portD=0x08
    #byte portB=0x06
    #bit RB0=0x06.0
    #use fast_io(b)
    #use fast_io(d)
    int8 mode,i,j;
    #INT_EXT

    void ext_isr()
    {

    mode++;
    delay_ms(1);
    if(mode==3)
    {
    mode=0;
    }
    }
    void program1();
    void program2();
    void main()
    {
    mode=0;
    set_tris_b(0b00000001);
    portB=0x00;
    set_tris_d(0);
    portD=0x00;

    enable_interrupts(int_ext);
    ext_int_edge(H_TO_L);
    enable_interrupts(GLOBAL);


    while(1)
    {

    switch(mode)
    {
    case 1:program1();break;
    case 2:program2();break;
    }
    }
    }
    void program1()
    {
    if(mode==1)
    {
    lcd_putc('\f');
    for(i=0;i<5;i++)
    {
    lcd_init();
    lcd_gotoxy(1,1);
    lcd_putc("NGUYEN VAN THANH");
    delay_ms(20);
    lcd_gotoxy(1,1);
    lcd_putc('\f');
    delay_ms(20);

    }
    }
    }

    void program2()
    {
    if(mode==2)
    {
    lcd_putc('\f');
    for(j=0;j<5;j++)
    {
    lcd_init();
    lcd_gotoxy(1,1);
    lcd_putc("HOANG THI HOAI MY");
    delay_ms(20);
    lcd_gotoxy(1,1);
    lcd_putc('\f');
    delay_ms(20);
    }

    }
    }
    I have a problem with code for LCD circuit.Please help me ! It doesn't work.
     

    Attached Files:

    • lcd.zip
      File size:
      2.4 KB
      Views:
      126
  2. rjvh

    rjvh New Member

    Joined:
    Dec 20, 2007
    Messages:
    863
    Likes:
    6
    Location:
    cambodia
    What have this to do with this thread:confused::confused::confused:

    I think you got the wrong thread

    Robert-Jan
     
  3. Thunderchild

    Thunderchild New Member

    Joined:
    Jul 3, 2005
    Messages:
    2,294
    Likes:
    9
    Location:
    UK
    hey I have 5
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Thunderchild

    Thunderchild New Member

    Joined:
    Jul 3, 2005
    Messages:
    2,294
    Likes:
    9
    Location:
    UK

    erm bollocks we had this discussion on here once and i worked so figures out for such hard heads and that was the end of the dispute. plus what said idiots should remember is that each and every litre/gallon of petrol (or other fuel) still has to be mined transported treated and then transported again and then to polute more when its used. A solar panel lasts at least 25 years and once made lasts 25 years with no further input of manufactured energy for the next 25 years it gives back and if you work out how many watts that is over 25 years it more than disproves the:

    "oh well that won't work just because I said so and heres a stupid reason to keep you baffled for the next 25 years by which time you won't be able to hold me responsable anymore for my unfounded opinions (not facts)"
     
  6. bryan1

    bryan1 Well-Known Member

    Joined:
    Aug 4, 2004
    Messages:
    1,679
    Likes:
    46
    Location:
    Adelaide Hills Sth Oz
    Well guys as our gas fridge finally went south and we now need to run it off electric I took 2 panles off mt shed array and put them onto the house array. The pic really doesnt do the panels justice as they do look small compared to the kaneka thin film array.But they are 24 volt 175 watt panels.

    new pv panels.jpg

    Cheers Bryan :rolleyes:
     
  7. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,228
    Likes:
    641
    Location:
    Derbyshire, UK
    Nice pic, what's the roof and wall covering in front of the panel?, it looks like canvas or something?.

    Looks seriously 'middle of nowhere' :D
     
  8. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,445
    Likes:
    937
    Location:
    Canada, of course!
    The burlap walls are stronger than the rice-paper walls used in another country.
     
  9. bryan1

    bryan1 Well-Known Member

    Joined:
    Aug 4, 2004
    Messages:
    1,679
    Likes:
    46
    Location:
    Adelaide Hills Sth Oz
    G'day Nigel,
    That material is 60% shade cloth, ages ago I made a solid fence post type frame for the outer wall and sewed a pocket in the shadecloth to attach it to the house. As it's on the northen face it keeps the house a heap cooler in summer and the missus loves it as she raises herbs in it. When it's 44C in the shade I run a mist of water in the shadehouse and the house drops in temp to liveable. Before I made the shade house the slate floor tiles in the house got that hot you near burnt ya feet on them.

    Now when ya say it's out in the middle of no-where, I'm less than an hour from the city and it takes less than an hour to get to work.

    Cheers Bryan
     
  10. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,228
    Likes:
    641
    Location:
    Derbyshire, UK
    Sounds like a nice workable idea, for little effort.

    I'm in the UK, an hour from a city is the middle of nowhere! :D
     
  11. killivolt

    killivolt Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    3,212
    Likes:
    121
    Location:
    U.S.
    Great Idea.

    That stuff is perfect for it's use out there. From where I am Down under.

    Anyhow, what is the estimated life of the product?

    Did they do something to make it more durable against solar radiation and wind stress, mold and rot. ?

    If not is there something to treat it with to extend life of the product. ?


    kv:)
     
  12. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,445
    Likes:
    937
    Location:
    Canada, of course!
    I also live in a city.
    Water, electricity, natural gas and cable TV/internet come out of the ground.
    When it gets hot the electric air conditioner cools my home and when it gets cold the natural gas furnace or fireplace provide the heating.

    I have never heard of nor seen a wet "fabric" wall used for cooling.
     
  13. bryan1

    bryan1 Well-Known Member

    Joined:
    Aug 4, 2004
    Messages:
    1,679
    Likes:
    46
    Location:
    Adelaide Hills Sth Oz

    Thats because you city dwellers never get out of ya shanty house and into the real world. There aint nuffin like livin in the country away from the city smog and 1,000's of ferals roaming around lookin to break into ya house. Out here in the country we hangup would be robbers, coat their nether parts with honey an tie em to an anthill...
     
  14. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,445
    Likes:
    937
    Location:
    Canada, of course!
    The smog has been fixed so it is gone.
    My part of Canada is civilized so there are hardly any home robberies.
     
  15. rjvh

    rjvh New Member

    Joined:
    Dec 20, 2007
    Messages:
    863
    Likes:
    6
    Location:
    cambodia
    No police involvement? :D:D:D

    Robert-Jan
     
  16. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,445
    Likes:
    937
    Location:
    Canada, of course!
    Maybe there are no police out in the Boonies. Explains why there is so much crime.
     
  17. bryan1

    bryan1 Well-Known Member

    Joined:
    Aug 4, 2004
    Messages:
    1,679
    Likes:
    46
    Location:
    Adelaide Hills Sth Oz
    Allo Guys,
    Well finally found some shed time and I got the rotor for my 2hp motor conversion finished milled and ready for the magnets to go on and epoxy them in.

    milled rotor.jpg


    Hopefully by monday I'll be ready to put the 2hp conversion in the lathe to test it out.

    Cheers Bryan :D
     
  18. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    I know this is a bit stale... but why you think there is so much crime in the boonies. It is actualy much less as indicated by lower insurance rates.

    Poeple who live in cities generaly know far fewer people then do rural or small town dwellers. Most often they do not even know the people who live on their block.

    In a small town everyone knows what, and who, almost before it happens.

    3v0
     
  19. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,228
    Likes:
    641
    Location:
    Derbyshire, UK
    Yes, it seems a strange pont of view? - crime rates are MUCH lower out in the country.
     
  20. mramos1

    mramos1 Active Member

    Joined:
    Sep 15, 2005
    Messages:
    2,403
    Likes:
    9
    Location:
    Boynton Beach, Florida USA
    I would think lower as well as you can get shot out in the country in most places. But the insurance rate would probably be a better guess.
     
  21. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,445
    Likes:
    937
    Location:
    Canada, of course!
    There was talk about robbers in the boonies. Hardly anybody gets robbed in my city.
    My insurance rates are mainly for fire, not robberies. A fire hydrant is close to my home, I have smoke detectors and an extinguisher so my insurance rate is very low.
     

Share This Page