[Help]3 sensors line follower with CvAVR

Discussion in 'Homework Help' started by Silentech, Nov 5, 2009.

  1. Silentech

    Thread Starter New Member

    Sep 14, 2009
    8
    0
    Hello guys...
    i need ur help again..:)
    i am confused when i got a homework to make a program with cvavr..:(
    can anybody here help me to make this program..:confused:
    i want to learn how to program micro with cvavr...

    This is all i wanna know..
    i want to use atmega 8535..
    how to make program using 3 sensor just with 3 pins from 8 pins in portA..
    i want to categories that pin with x,y,z
    this is output high, when x is 1, n then y and z is 0, so it will move right..
    that is bineri,
    but i`m not use x,y,z=(1,1,0) and x,y,z=(1,1,1)..

    help me pls..
    Thx very much for help me..
    so i can get learn more..
    :D i love this forum..
     
  2. Nanophotonics

    Active Member

    Apr 2, 2009
    365
    3
    I'm not familiar with cvavr, but I would suggest you to find some online C tutorials (if you are using C) to program the micro. What you are asking seems quite straight forward once you know the language's basics.
     
  3. Silentech

    Thread Starter New Member

    Sep 14, 2009
    8
    0
    can u link me to the tutorial about line follower program or avoider robot??
    :( i don`t know language`s basic C well..
     
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    CVAVR actually CodeVision AVR?

    hgmjr
     
  5. Silentech

    Thread Starter New Member

    Sep 14, 2009
    8
    0
    yes that`s right...
    :) can u help me...
     
  6. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Have you drawn up a schematic of your circuit? If so, go ahead a post it so that we can see what hardware you are using.

    hgmjr
     
Loading...