Pages: [1]   Go Down
Author Topic: run cnc with l293d..need help  (Read 1342 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi,

I'm using l293d for my stepper driver
link for circuit:
http://arduino.cc/en/Reference/StepperBipolarCircuit
(using 2 pin controller)

and using Gcodesender for my software.
link for gcodesender:
http://www.shapeoko.com/wiki/index.php/GcodeSender

the problem is when i key in some code, the stepper would have sound but no moving. this happen when i not using power supply(12v) to my driver. it could be not enough current. But, when i connect the power supply to driver. the massage " A device attached to the system is not functioning" appear and stepper not function at all.

hope some one can help regarding this issue.

tq
« Last Edit: September 18, 2012, 09:52:02 am by saifulxy » Logged

Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could be a power issue.
What is the stepper motor rated for and how many amps does your power supply provide?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you're using l293d you'll only be able to operate small steppers. are they connected to a load?


Have you checked that all pins are properly connected?

Have you tried running the motors  from the serial monitor by using the stepper library?

What G-code interpreter are you using?
One more thing  check the  limiter switches  if you haven't any connected  try reassigning the pins for them.
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 159
Posts: 2895
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah, L293s are only rated for 600mA current loads, which means small
steppers motors.

Also, where exactly does this message appear, "A device attached to the system
is not functioning"? This sounds like a PC problem, not stepper problem. The
stepper control circuit is simple open-loop, so I don't see how the Arduino software
could even know the stepper is not functioning.
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12577
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote from: oric_dan(333) link=topic=123352.msg928948#msg928948
Also, where exactly does this message appear, "A device attached to the system
is not functioning"? This sounds like a PC problem, not stepper problem.

At a guess, either the operating system or the Gcodesender application are complaining that the Arduino has provoked an error on the USB interface. Without a wiring diagram it's pointless trying to guess why connecting the power supply would cause that.
« Last Edit: September 19, 2012, 09:07:03 pm by PeterH » Logged

I only provide help via the forum - please do not contact me for private consultancy.

Topsham, Vermont USA
Offline Offline
Edison Member
*
Karma: 32
Posts: 1867
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, You are switching power, and you may well have Electromagnetic Interference problems of various types.

Some INFO on the ArduinoInfo WIKI here - http://arduinoinfo.info   http://arduino-info.wikispaces.com/RelayIsolation
That is a place to start thinking about wiring, grounding etc.

The message you got sounds like Arduino is crashing.  I think you will need to power Arduino from a separate 9V supply etc.. 
Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

tq for all reply,

currently i just change other program, which is pronterface.

i can connect the arduino to program, but my motor not moving(only sound)

it could be problem on firmware.

someone can help regarding this issue? i'm not good in programmer..

program:
pronterface

driver:
http://arduino.cc/en/Reference/StepperBipolarCircuit
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

how does the two pin configuration work for the l293d? i'm trying to build a simillar project with three of these chips and using a 4 pin configurations leaves me with almost no pins left on my arduino.
Logged

UK
Offline Offline
Tesla Member
***
Karma: 104
Posts: 6360
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You are asking a question on a very old Thread.

If you want to drive some sort of CNC device you should use proper stepper motor driver boards such as the Pololu A4988. They only need 2 connections to the Arduino and have many other benefits.

...R
Logged

Pages: [1]   Go Up
Jump to: