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
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