Arduino sketch for Stepper Motor Serial Control
$30-250 USD
Paid on delivery
1. Scope
The scope of the project is to control a linear actuator that is powered by a stepper motor, driven by a motor driver controlled via Arduino.
The consultant will be requested to analyse requirements based on existing equipment. Design wiring schemas and a sketch as outlined in the description below
2. Description
The linear actuator in question is powered by a Nema 17, 1.8 degree, 24v, 4 wire stepper motor (LDO-42STH47-1684A). The Stepper Motor Driver in use is a ST-M5045 2M542 and controlled via Arduino Uno and two limit switches are to be connected. A 24v Power Supply is also available.
The objective is to send movement commands to the stepper motor via Serial.
3. Requirements
3.1 Design of an Arduino sketch that will receive commands through serial interface.
Features Required are as follows:
3.1.1 Forward movements start with an F followed by a variable number which indicates the number of steps such as:
F500 – (Moves Stepper Forward 500 Steps)
3.1.2 Reverse movements start with an R followed by a variable number which indicates the number of steps such as:
R500 – (Moves Stepper Backward 500 Steps)
3.1.3 Forward and Reverse movements are sometimes required to decelerate in the final steps in this case the input shall be prefixed by FS (Forward Movement with Deceleration) and RS (Reverse Movement with Deceleration) as follows:
FS500 – (Moves forward 500 steps and will decelerate speed in final steps)
RS500 – (Moves backward 500 steps and will decelerate speed in final steps)
3.1.4 A limit switch shall be installed at both ends of the actuator. In the event that any of the limit switches are triggered, motion is to be stopped.
3.1.5 Home axis is a feature that will ensure that the positioning is correct. There will be two home/limit switches. For the purpose of this project, we they shall be called home1 and home2. The features required related to limit home switch are as follows:
H1 – (Moves stepper towards home1 and stops once switch is triggered)
H2 - (Moves stepper towards home1 and stops once switch is triggered)
HTEST – (Moves stepper towards home2 once at home2 goes back to home1.
3.1.6 Serial interface to accept a list of commands in 1 entry eg:
H1, FS500, RS200, FS1500, H1
3.1.7 Once a command is given via serial an OK message is returned to Serial.
3.1.8 Once a limit/home switch is triggered at any point, a message such as Home1 Triggered and Home2 Triggered message is returned to Serial.
3.1.9 A repeat command is required to repeat the last command/s entered.
E.G. REP will repeat the last command such as FS500 or RS500. If multiple commands were inputted together (Refer to 3.1.6) once the REP command is triggered, the commands that were last inputted together in one line are repeated.
[url removed, login to view] Stepper motor speed shall be a fixed variable in the Arduino Sketch.
3.2 Design of Wiring Schema.
3.2.1 A full design indicating the wiring configuration of all the system is required.
3.2.2 The configuration of the Jumper Switches on the ST-M5045 2M542 motor driver needs to be indicated.
4. Bidder Details
The bidder is required to bid for the above Sketch, Wiring Schema and an extra 3 hours of consultancy via email or phone related to the setup or code changes.
4.1 Bidder Requirements:
- Fluent In English
- Extensive experience dealing with Micro Controllers particularly Arduino, Stepper Motors, Drivers and similar.
- Possess equipment to be able to test any code.
Project ID: #7735330
About the project
15 freelancers are bidding on average $184 for this job
hello i am interested in your project, i have experience in stepper motor control. --------------------------------------------------------- thanks
Hi, Congratulations on an excellent specification! I have been involved in the design and implementation of light industrial controll systems for many years, and more recenlty using the Arduino patform. My skils bas More
hello, I am new here but i has done my bachelors in electrical engineering.I can handle any type of project related to Ardino,Microcontroller,Stepper motor,Dc serve motor and any programming project which includes C+ More
Im Electronic Engineer with high expertise in arduino systems, and knowledge of stepper motors modules to specific task
i have a good knowledge about arduino programming and have done number of project using arduino and stepper motor,i will do your work easily and accurately