PDA

View Full Version : DIY 3020 CNC I/O Board



Pointy
16-12-2013, 08:12 PM
Hi guys,

I have a version of this circuit that works fine, but it is picking up 5v off the BOB and has no opto-isolation. Not ideal, so here is the redesign...

11017
My thinking is as follows...(which may or may not be correct)

The circuit will do nothing until I throw the main controller switch, this will then feed the 24v into the LM2575 5v switching regulator and power the circuit.

Each input is active low and has a LED to show it's status, except OK1A, which feeds a flip flop driving a red & green LED. The green LED is lit when the Estop switch is disengaged but the red LED lights when the Estop switch is engaged.. The capacitors C1-C4 are supposed to help de-bounce any input switches, although I am not sure of the best value or if they do any good, I think I had 0.01uf on the previous board. I am also not sure if the 10k pull-up resistors are needed with the opto-isolators. I am currently using 1 input for a probe, and 2 for Home/Limit switches, which leaves one spare.

The first output (pin14) controls the spindle. The 556 timer is used for a 5 second delay and 5 second buzzer warning. MY CNC controller (3020 Tonsen variant) has a separate spindle control which is fed by 240v, the actual switching on is controlled by grounding a signal cable, so there is no mains voltage near the circuit. The other 2 outputs are spare.

I wasn't quite sure of the best values for the resistors R23-R27 & R28-R30, I stole the values from the G540 schematic. If anyone can see any obvious glaring mistakes or can suggest a better way of doing something, please feel free to comment. After all I am just a novice at this.

Regards,

Les

EddyCurrent
16-12-2013, 09:16 PM
Les, You say you have a version of this that works well, so by making the changes to it's own supply and using opto-isolation surely this one will work fine too ?
Using pull up resistors is good, that last thing you want is an input that's floating about and susceptible to induced voltages so it needs to be tied to one leg or the other.
This is only one board so are you going to show how it fits into the complete system ?
If you notice, things like stepper motors, limit switches, spindle to some extent, are all wired in more or less the same way so it's the emergency stop circuit that interests me most.
Correct me if I'm wrong but you are using Mach3 on this job ? are you going to use the charge pump feature ?

Pointy
16-12-2013, 10:15 PM
Les, Just explain what happens when you hit the emergency stop button, I don't mean the flip flop changing state, LED's and input to OK1A, I mean after that.
If you notice, things like stepper motors, limit switches, spindle to some extent, are all wired in more or less the same way so it's the emergency stop circuit that interests me.
Correct me if I'm wrong but you are using Mach3 on this job ?

Yes I am using Mach3, the Estop switch just pulls pin 10 low. That's all it did on the original board/switch. I just added the flip flop. Mach3 detects the low and stops everything, there is no hardware emergency stop if that's what you mean.

Regards,

Les

EddyCurrent
16-12-2013, 10:42 PM
I changed my post but you have the original text, I thought afterwards I was jumping the gun when you were really asking about this board only.
It's a matter of scale probably, it's a 3020 after all so is there going to be a real emergency ? I don't know, what do you think ?

Pointy
16-12-2013, 11:03 PM
Les, You say you have a version of this that works well, so by making the changes to it's own supply and using opto-isolation surely this one will work fine too ?

Ah, but working and being safe are two separate things!


It's a matter of scale probably, it's a 3020 after all so is there going to be a real emergency ? I don't know, what do you think?

The EStop just being software is fine to be honest, I can always change it in the future if needed.

I am going to order some parts and test it out on the breadboard over the next couple of days. I will let you know how it goes.

Regards,

Les

Pointy
19-12-2013, 07:48 PM
I tweaked the circuit a bit as there were a few mistakes, and changed a few values. I also put some of it together on the breadboard to test it out and everything worked great. I have the PCB designed and after the 3rd attempt managed to get it single sided within the 100mm x 80mm free Eagle size constraints.

Next job is to make the PCB and test it out!

Regards,

Les

Pointy
23-12-2013, 10:51 PM
I tweaked the circuit a bit as there were a few mistakes, and changed a few values. I also put some of it together on the breadboard to test it out and everything worked great. I have the PCB designed and after the 3rd attempt managed to get it single sided within the 100mm x 80mm free Eagle size constraints.

Next job is to make the PCB and test it out!

Regards,

Les

After a couple of stupid mistakes with the pinouts of the ISQ74's, I got the PCB isolation routed & the components fitted. Initial bench tests look good, all inputs and outputs are doing what I expect them to do. All I need to do is hook it up to the BOB and PC to test it properly.

Regards,

Les

EddyCurrent
23-12-2013, 11:00 PM
Yes I see now that some of the pins were reversed e.g. 3/4 7/8, 11/12, 9/10 at least you have it working now.

ukracer
27-10-2014, 10:07 PM
How did you get on with this project??

Pointy
28-10-2014, 08:46 AM
How did you get on with this project??


It changed quite a bit from that first design, but it works great. You can read about it on my blog (http://www.planetpointy.co.uk/cnc-enclosure-part-1/). (It's under part 2, I think)

Regards,

Les

danilo
27-07-2015, 10:48 PM
For pull up resistor calculations you must consider the current passing through the line. Most diodes require 20mA maximum, so around 15mA will be safe to work with. Based on the diagram, for a 5V supply the pull up resistor (22K) is quite high; remember that there will also be a voltage drop in the opto-isolator.

pcb quote (http://www.7pcb.co.uk/pcb-quote/)