Stepper motor control using pc serial port




















JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding. You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser. Thread starter buchacho Start date Nov 12, Status Not open for further replies. I have searched the web, but haven't found anything too promising on controlling a stepper motor through a PC serial port without a microcontroller.

Could someone point me to plans, schematics, components, strategy or anything that could help in interfacing a stepper motor to the RS serial port? Using a parallel port is not an option with the hardware I have. You could use a standalone UART to covert from serial to parallel, assuming you could find the ancient parts required?. Is this a class project that bans micro-controllers? Sceadwian Banned. Adding glue logic to the receive pin on the driving device would solve your problem, such as a clock decoder and a shift register.

You could probably do it with a couple flip flops and a serial in parrallel out shift register. No error corerction mind you. The problem with this is that the number of chips you'd have to add to do that standalone could be replaced by a single smaller micro controller If you can figure out how to setup the decoding logic you're probably smart enough to program a micro so?

To back-up one step, I would like to control a stepper motor with an embedded Linux box through the serial port. What sort of micro controller could I use that will accept commands to the serial port through simple scripts? I would prefer building my own circuit instead of buying a kit. I'm a newbie in this area, so any help is appreciated. The Mad Professor New Member. These should be of some help The Mad Professor said:. If you have two motors on one motor bridge, here is sample code for how you can move forward.

I used an indirect method with AJAX and storing the next command on a web server. Here is a video of my robot moving. The lag in response is because I'm slowly punching in the commands on my webserver located in Canada while the robot fetches them from Japan. The waddle as it moves forward is hardly detectable. It is running without the 5 ohm resistor, and the right and left turns are also operated in pulses so that they aren't too much more powerful than the forward drive.

You'll notice the wheels are different in the video because the treads seen in the other photos were too weak to support the weight of a laptop reliably. More about the project can be found here. Question 1 year ago on Step 4. Cool project!! It gives me hope on mine! I am about at wits end on that. I am a computer programmer by trade and not an embedded one. Therefore, I don't have a lot of experience with hardware interfacing.

I am attempting to control two steppers one bi-polar stepper and the other a 2-phase 4 wire through the RS card that I installed into my PCIE slot it has two ports. Probably motor drivers and some sort of UART chip or two or four? I need to drive it step by step so that I can keeptrack of where I am and I need to be able to use the micro-stepping of the motor. The serial port out code I believe I have covered if all I need to do is send out characters, but know they need to be interpreted some how on the hardware side.

I would than request the step count of the motor, and save it. To try and get better focus, I would stil move the motor a litle bit, and if it gets worse, i would just type the step count, to move the motor back, to reach focus. Kasty: I know the stepper. Controlling stepper motors with serial port Using Arduino Programming Questions. You need to debog debug the problem in small bites. Is the Arduino receiving the messages correctly? Is it correctly identifying each message?

For example does it correctly identify an "RMOV-"? Do your motor functions work correctly when called in test code without any serial input?



0コメント

  • 1000 / 1000