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