PIC 18F4620, program help needed!!

Thread Starter

mcdara

Joined Feb 23, 2011
11
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
 

t06afre

Joined May 11, 2009
5,934
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
Please do not double post. You have posted the same question here http://forum.allaboutcircuits.com/showthread.php?t=50451
 
Top