Search found 3 matches

by rzamora06
Sat Jan 28, 2017 11:18 am
Forum: Arduino
Topic: HCMotor Arduino library for driving DC and stepper motors.
Replies: 22
Views: 94461

Re: HCMotor Arduino library for driving DC and stepper motor

Last question (hopefully):
When used with a stepper motor Time sets the stpeer motors clock frequency in 100us increments. So for a value of 2000 this would give a clock period of 200ms or 1/0.2 = 5Hz.
For a speed of 2000 (clock period of 5Hz), would 5Hz then be considered my stepper motor pps?
by rzamora06
Fri Jan 27, 2017 10:12 pm
Forum: Arduino
Topic: HCMotor Arduino library for driving DC and stepper motors.
Replies: 22
Views: 94461

Re: HCMotor Arduino library for driving DC and stepper motor

Hi Andrew, This snippet from the HCMotor.cpp file: void HCMotor::Init(void) { HCMotor::_MotorTimer2Init(T2_CLK_DIV_32, 49); } Has multiple values from which the prescaller can be set to: T2_CLK_DIV_0 = 1, T2_CLK_DIV_8 = 2, T2_CLK_DIV_32 = 3, T2_CLK_DIV_64 = 4, T2_CLK_DIV_128 = 5, T2_CLK_DIV_256 = 6,...
by rzamora06
Wed Jun 29, 2016 7:07 am
Forum: Arduino
Topic: HCMotor Arduino library for driving DC and stepper motors.
Replies: 22
Views: 94461

Re: HCMotor Arduino library for driving DC and stepper motor

I have a couple of questions on your HCMotors library. Without manipulating the library, is there a way to create a sketch that will cause the stepper motor to travel a limited number of steps?

Go to advanced search