I think this machine will be the death of me! I am on my 5th or 6th version of the charge pump circuit now, and 4th or 5th version of the IO board. The charge pump part is working beautifully. A five pin connector takes the 5v, gnd, switched gnd, estop switch position to the IO board and also supplies the charge pump signal. (Previous version I had forgotten the IO board needed power to send the charge pump signal, and was switching the 5v. DOH!) Without the switched ground from the mosfet, the spindle relay transistor wont do anything, meaning the the spindle wont work until a valid charge pump signal is applied. The estop position is just fed back to parallel port pin 15 so that Mach3 also knows when an Estop has occurred. All of this this works great, I just have one niggle with the IO board.
In my previous version of the IO board I had forgot the Limit,Home inputs are NC, which meant the LED's were on all the time. I added a transistor, and now the LED works but the parallel port pin is held low. The strange thing is I tested this with my breadboard before I made the new board, but somehow had managed to test and make something completely different. Here's that part of the schematic...
Attachment 11722
This was my thinking...
When X6-1 & X6-2 are connected to the Home switches, pin 2 of OK1A is grounded, meaning PP 13 is held low. By grounding the base of Q3 LED 1 should be off.
When X6-1 & X6-2 are open, R14 will supply base current to Q3, lighting up LED 1, and also hold pin 2 of OK1A high, making PP13 go high.
It's the last part that doesn't work, the LED lights up but pin 2 stays low, thus Mach3 doesn't see the switch activate.
I am guessing it has to do with the base of Q3, but don't know to be honest, I am better with digital electronics.
Any help or suggestions much appreciated.
Regards,
Les