PIC 18F4620, program help needed!!

Discussion in 'Homework Help' started by mcdara, Feb 23, 2011.

  1. mcdara

    Thread Starter New Member

    Feb 23, 2011
    11
    0
    Hi,
    Im a student in UCC and just working on a project where i require to turn a DC motor in 7 different directions, one starting from 0 degree straight, with 180 degrees complete right and -180 degrees complete left, you get the picture

    The aim is to turn a shaft of toy gun to demonstrate different shooting angles

    My experience to date is I can get the basis LED flashing, and a basic understanding of while, if and else loops

    Can anyone help with a sample code needed to turn this motor in different 7 steps?

    Kinda regards, Mcdara
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Please do not double post. You have posted the same question here http://forum.allaboutcircuits.com/showthread.php?t=50451
     
  3. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Let's keep this the active thread.
     
  4. mcdara

    Thread Starter New Member

    Feb 23, 2011
    11
    0
    its my 1st time posting, sorry i wasnt sure which forum to post to
     
Loading...