3-Axis Stepper Controller

GreekPIC

Aug 1, 2004
251
Joined
Aug 1, 2004
Messages
251
They are actualy seven 4k7 resistors with one pin of each resistor connected to a common pin. You can use discrete resistors, though I don't think there so hard to find. Don't search for the specific code, ask for a 1-7 resistore network.

 

RobiD

Dec 3, 2004
34
Joined
Dec 3, 2004
Messages
34
I have a strange problem!

I have build my cnc, and I am using KCam to run it.

When I use just a pen in the holder, everything works fine, but when I turn the rotary tool (dremel type) on, it sends it haywire, and it appears to send some type of interference or spikes through the board and affects the software. It either does weird cuts that are not there or tells the software that is finished before it even gets to it's first cutting position.

As I said, if I don't turn the tool on, it all does as it should. It just appears to be interference from the tool motor.

Anybody else had this problem?

What is the simple solution to filter out what I think are spikes or electronic interference. I've tried different power points, but they are all on the same phase.

Thanks all.

David

 

Dazza

Jun 21, 2004
591
Joined
Jun 21, 2004
Messages
591
Hi RodiD,

The cause of the problems may not be interference or spikes, it may be possible that the vibrations from your cutting tool, is causing one or more of your stepper motors to trip a step, throwing your software collaboration with the stepper motors. It's just a thought, I am still only in the research stage of this project, so I could be way off.

Are you experiencing any significant vibrations?

 

RobiD

Dec 3, 2004
34
Joined
Dec 3, 2004
Messages
34
I have very little vibration. Nothing significant enough to affect the motors.

I am using a switching power supply, does this make it more prone to interference?

David

 

MP1

Dec 7, 2003
3,399
Joined
Dec 7, 2003
Messages
3,399
RobiD,
Describe your circuit board for the CNC. Is it mounted inside a metal container? Motors combined with digital circuitry is a hard combination in many cases. The circuitry must be shielded from electronic noise. You are probably right about this being interference from your Dremel. If you have shielded your circuit and this does not help, you might also want to try plugging the Dremel into a different power source. The feedback might not be RF. It might be noise in the AC line caused by something in your Dremel tool.

MP

 

RobiD

Dec 3, 2004
34
Joined
Dec 3, 2004
Messages
34
MP,

Thanks for your reply.

First of all, the board is out in the open, I haven't enclosed it yet inside a box. I wanted to get it working first.

I have tried running the dremel from a different power point but to no avail. It's all on a single phase.

I have picked up a few different caps for filtering such as 0.01uF, 0.1uF, 4700pF, 0.047uF and a .033uF.

It was suggested to me to try each on on the power input on the board between the + and - terminals to try to find which one would filter out the specific interference. A trial and error senario.

I am happy for any other suggestion you may have.

Regards
David

 

RobiD

Dec 3, 2004
34
Joined
Dec 3, 2004
Messages
34
MP,

Just another thought, I just read an article on shielding electronic boards from interference, and it mentioned that switch mode power supplies (of which I'm using an old AT power supply) can cause interference in circuitry.

I have the PSU pushed up against the board and am using the fan from it to cool the chips.

This still doesn't explain why, without the motor running in the dremel, the cnc will run through 4000 lines of g-code without skipping a beat, but as soon as I turn the tool on, it all goes bad.

David

 

Mikromike

Oct 9, 2004
9
Joined
Oct 9, 2004
Messages
9
RobiD,

Are you using a new Dremel or a old one. Also recheck for loose wire connections. I had the very same problem it turned out to be a loose wire that was only affected from the vibration. Mike

 

Dazza

Jun 21, 2004
591
Joined
Jun 21, 2004
Messages
591
RodiD,    have you tried running your mill with the pen in the holder, then running your rotary tool at a distance connected to the same power outlet? This may help narrow down possible causes of the problem.

This may confirm or eliminate the problem being a loose connection, as Mikromike suggested it could be.

 

MP1

Dec 7, 2003
3,399
Joined
Dec 7, 2003
Messages
3,399
Is it possible for us to see your board layout?

MP

 

RobiD

Dec 3, 2004
34
Joined
Dec 3, 2004
Messages
34
My board layout is this 3-Axis Stepper Controller, built exactly as specified in this project.

For power, I am using the 12vdc output of an old AT switching power supply which is just placed next to the board on a table as to utilise the fan from the PSU to cool the chips on the board.

I am using ribbon wire for the limit switches and 8 core solid communication cable to the motors. The printer port cable runs under the table to the computer. The PSU and computer share the same power point and so did the dremel, but have tried seperate power points to no avail.

I hope that is what your asking.

 

MP1

Dec 7, 2003
3,399
Joined
Dec 7, 2003
Messages
3,399
I was not aware there was a board layout in the project. Actually, there are two different projects in our projects section.
I assume that since you have already tried everything, that this included moving the PSU and fan away from the board? Other than this and the posted ideas, I do not have any other ideas. You will need to keep making changes until you find the right combination. Probably something simple, once you find it. That is how it usually works.

MP

 

RobiD

Dec 3, 2004
34
Joined
Dec 3, 2004
Messages
34
Maybe I misunderstood what you asked.

Here is a link to the project:
http://www.electronics-lab.com/projects/pc/008/

I had taped all three motor leads together, I undid this and there is an improvement, now when the motor is running, the z axis goes to, say the cut is -1.5mm, it will lower to 3mm from 5mm and begin it's run.

Without the dremel running, it goes to the correct depth.

It gets frustrating when you feel your not moving forward.

Thanks for your help
David

 

RobiD

Dec 3, 2004
34
Joined
Dec 3, 2004
Messages
34
Just an update.

Everything works fine if I run the dremel at a slow speed.

Only problem is it pulls the cutting tool through the work faster than it can cut.

I have slowed down cutting speed, but if I go any slower... well you know.

There must be a simple solution.

David

 

GreekPIC

Aug 1, 2004
251
Joined
Aug 1, 2004
Messages
251
Can somebody tell me what this part is? I'm using an AC motor from a busted drill for the spindle, and this was connected parallel to the switch.

Is it some kind of a filter? Should I add it to the relay board I'm making?

View attachment 36802

 

RobiD

Dec 3, 2004
34
Joined
Dec 3, 2004
Messages
34
Just an update.

Everything works fine if I run the dremel at a slow speed.

Only problem is it pulls the cutting tool through the work faster than it can cut.

I have slowed down cutting speed, but if I go any slower...
 

GreekPIC

Aug 1, 2004
251
Joined
Aug 1, 2004
Messages
251
RobiD you could try a flexible shaft to keep the drill furter away and to keep the spindle lighter.

BTW any answers about this?
index.php

I thought it was a cap (it says 0.33uF) but when I measure it it doesn't seem like one.

 

GreekPIC

Aug 1, 2004
251
Joined
Aug 1, 2004
Messages
251
I made some changes to the board to suit my needs, here they are in case someone else finds them usefull:

1. Changed board dimensions so it will fit in

View attachment 36972

 
Top