The code in this repository allows you to control an Arduino-based linear slide rail with mechanical end-stop switches.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes in your Arduino.
The diagram below illustrates how to connect the components to ensure the project operates correctly.
Now you can download and install the project in your Arduino.
First download the .ZIP, extract it in your device.
Open your Arduino IDE and upload the file to your device.
Make sure you have everything properly connected and you are ready to go!
The code was developed, run and tested in Arduino IDE v.2.3.2
Contained files:
The railduino_control.ino
file is used to control the motor signals and the switches, which will tell you when to change direction.
Additionally, the railduino_control_accel.ino
file allows us to set the acceleration and speed parameters with which the motor will move.
In the picture below, we can see what the prototype looks like.
- Kiyoshy Nakamura
This project is licensed under the GNU GPLv3 - see the LICENSE file for details.