Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: project...

  1. #11

    first year paman gud ko mga idol...

  2. #12
    Quote Originally Posted by leepanares View Post
    first year paman gud ko mga idol...
    First year undergraduate? Daghan pa kag kailangan kat-onan. Pasara sa tanan subjects. Maka-answer naka ana inig abot nimu og 3rd year.

    First year graduate studies? Dapat kahibaw naka ana. Hehehe.

    We're on the same university.. Good luck on your endeavor.

  3. #13
    Elite Member
    Join Date
    Apr 2010
    Gender
    Male
    Posts
    1,097
    Blog Entries
    6
    #include<pic.h>


    void setport(void)
    {
    TRISD=0x0F;
    PORTD=0x00;
    TRISC=0x00;
    PORTC=0x00;
    }

    void setpwm(void)
    {
    CCP1CON=0x00;
    TMR2=0x00;
    TMR2IE=0;
    TMR2IF=0;
    GIE=0;
    }

    void adjustpwm(int x,int y)
    {
    T2CON=0x06;
    PR2=255;
    CCPR1L=x;
    CCP1CON=y;
    }

    void main(void)
    {
    setpwm();
    setport();
    while(1)
    {

    if((PORTD&0x0F)==0x02) /*left*/
    {
    xxxxx
    }
    if((PORTD&0x0F)==0x04) /*right*/
    {
    xxxxx
    }
    if((PORTD&0x0F)==0x03) /*2 left*/
    {
    xxxxx
    }
    if((PORTD&0x0F)==0x0C) /*2 right*/
    {
    xxxxx
    }
    if((PORTD&0x0F)==0x0 /*max right*/
    {
    xxxxx
    }
    if((PORTD&0x0F)==0x01) /*max left*/
    {
    xxxxx
    }
    if((PORTD&0xFF)==0x00) /*centre all white*/
    {
    xxxxx
    }
    if((PORTD&0xFF)==0x0F) /*centre all black*/
    {
    xxxxx
    }
    }
    }
    Last edited by crysyani; 02-08-2011 at 09:53 PM. Reason: too much spoon feed

  4. #14
    idol pila ni ka sensor u gi gamit?ako gi gamit ky 3 ra.,ok ra kha ni??salamat jd idol naka tabang jd sa ako pag skwela,,,

  5. #15
    mas maayo nga dungagan na nmog 2 kay base on experience, maglisud ug follow ug steep kaayo na curve ang 3 ka sensors.. pero it might work on your robot though

  6. #16
    nindota jud ani istorya.net oiii


    kay pwede magpa coach

  7. #17
    ahhhh kalami

  8. #18
    Elite Member
    Join Date
    Apr 2010
    Gender
    Male
    Posts
    1,097
    Blog Entries
    6
    Quote Originally Posted by chuckkcuhc View Post
    nindota jud ani istorya.net oiii


    kay pwede magpa coach
    the bad part is

    kamo pa mangita sa right angle ani

    kung sakto bani na PWM na code

    d ni sya mao dayon

    different servo
    different sad ang code

  9. #19
    Kung noob ka ani bro daghan pa jud ka dapat mahibaw-an... ipahimo nalang na.

  10. #20
    dugaya na anang line follower nga projects oi... wala pa napul an ang compe dept sa TC ana... hehehe!

  11.    Advertisement

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

 
  1. PROPOSED PROJECT: Pinoy Operating System?
    By 4U in forum Programming
    Replies: 27
    Last Post: 12-20-2005, 07:45 AM
  2. Join the Uptime Project!
    By cebu_tux in forum Software & Games (Old)
    Replies: 12
    Last Post: 10-15-2005, 01:41 PM
  3. Replies: 1
    Last Post: 07-14-2005, 04:58 PM
  4. Need Local Music for Indie Film Project
    By vanceloma in forum Music & Radio
    Replies: 5
    Last Post: 07-01-2005, 02:33 AM
  5. Project Manager / Web developer / Interface designer
    By ScReWfAcE in forum Websites & Multimedia
    Replies: 3
    Last Post: 06-21-2005, 01:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top