This blog is dedicated to my Final Year Project which will be an Urban Installation created in an abandoned house, where the 4 seasons are unleashed. Within this blog, you will know how my project has progressed including the problems which I will encounter and also the development of my final piece - Hafiza :D

Thursday, 22 April 2010

Rotation code - Forwards & Backwards

This image below is a screenshot of forward rotation code used to instruct the turntable to rotate forward.


The numbers 2, 3, 4 & 5 are the numbers of the pins used on the Arduino that connect to the stepping motor. As I have 4 relays, which equals to 4 steps of the rotation.

Copy of Coding + Explaining:




The image below is a screenshot of the backwards rotation code:
As you can see that the code is very similar to forwards code. However, this time the numbers are typed backwards, i.e. 5, 4, 3, 2. This code instructs the turntable how to rotate backwards when instructed to do so.


No comments:

Post a Comment