Close

Ultratronics v1.0 board stepper motor drive mapping

A project log for Building the Thor robot

Building a 6-axis robot based on the Thor robot. When size DOES matter!

olaf-baeyensOlaf Baeyens 01/31/2017 at 18:570 Comments

It may be of interest for some people that want to control the Ultratronics v1.0 Pro board but these defines are the constants that are needed for the stepper motor controls.

It took some time to verify them with a real stepper motor.

#ifndef _ULTRATRONICS_H_
#define _ULTRATRONICS_H_

#define  X_AXIS_DIRECTION 34	// D34 X axis direction --> PC2 
#define  X_AXIS_STEP 35			// D35 X axis step  	--> PC3
#define  X_AXIS_ENABLE 37		// D37 X axis enable	--> PC5
//BasicStepperDriver stepperX(MOTOR_STEPS, 34, 35, 37); // X-axis

#define  Y_AXIS_DIRECTION 23	// D23 Y axis direct	--> PA14
#define  Y_AXIS_STEP 22			// D22 Y axis step
#define  Y_AXIS_ENABLE 33		// D33 Y axis enable 
//BasicStepperDriver stepperY(MOTOR_STEPS, 23, 22, 33); // Z-axis

#define  Z_AXIS_DIRECTION 26	//D26 Z axis direction
#define  Z_AXIS_STEP 25			//D25 Z axis step
#define  Z_AXIS_ENABLE 24		//D24 Z axis enable  */
//BasicStepperDriver stepperZ(MOTOR_STEPS, 26, 25, 24); // Z-axis

#define  E0_AXIS_DIRECTION 46	//D46 E0 axis direction
#define  E0_AXIS_STEP 47		//D47 E0 axis step
#define  E0_AXIS_ENABLE 48		//D48 E0 axis enable  */
//BasicStepperDriver stepperE0(MOTOR_STEPS, 46, 47, 48); // Z-axis

#define  E1_AXIS_DIRECTION 36	//D36 E1 axis direction
#define  E1_AXIS_STEP 44		//D44 E1 axis step
#define  E1_AXIS_ENABLE 45		//D45 E1 axis enable */
//BasicStepperDriver stepperE1(MOTOR_STEPS, 36, 44, 45); // Z-axis

#define  E2_AXIS_DIRECTION 41	//D41 E2 axis direction
#define  E2_AXIS_STEP 42		//D42 E2 axis step
#define  E2_AXIS_ENABLE 43		//D43 E2 axis enable */
//BasicStepperDriver stepperE2(MOTOR_STEPS, 41, 42, 43); // Z-axis

#define  E3_AXIS_DIRECTION 38	//D38 E3 axis direction
#define  E3_AXIS_STEP 39		//D39 E3 axis step
#define  E3_AXIS_ENABLE 40		//D40 E3 axis enable */
//BasicStepperDriver stepperE3(MOTOR_STEPS, 38, 39, 40); // Z-axis
//BasicStepperDriver stepper(MOTOR_STEPS, DIR, STEP, ENBL);

#endif

Disclaimer: Be careful when you use it in your projects, I may have made a mistake.


Discussions