Hello Guest it is June 27, 2019, 01:37:38 AM

Author Topic: Lathe Threading Wizard Rev 1.17  (Read 20108 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,847 25,847
  • Carnoustie, Scotland
    • View Profile
Re: Lathe Threading Wizard Rev 1.17
« Reply #40 on: February 01, 2014, 01:08:56 PM »
Ok that is your problem, the driver is not loaded.
Go to the Mach3 folder and double click the drivertest.exe and let it run. It will say pulsing too fast or something but once done your driver should be installed.
You can then re-open Mach again and hopefully it will be fine. I am of course assuming you are using the parallel port and not an external controller.
Hood

Offline AVRnj

*
  •  52 52
    • View Profile
Re: Lathe Threading Wizard Rev 1.17
« Reply #41 on: February 01, 2014, 01:19:55 PM »
That worked!!!

Thank you so much! I now have spindle DRO through emulating the index!!!

Next up I can try to get my rigged up optical reader working and hopefully I can eventually thread.

I really appreciate all of your support, there is no way in the world I would have figured that out. I have been reading this stuff and searching and nowhere did I find this stuff.

Much thanks, I will report back when I get some time to try the actual optical reader.

Offline Hood

*
  •  25,847 25,847
  • Carnoustie, Scotland
    • View Profile
Re: Lathe Threading Wizard Rev 1.17
« Reply #42 on: February 01, 2014, 01:21:59 PM »
Ok but disable the emulation when trying the real index, sometimes emulation can stop things working. Cant remember if the Index is one of the things but best to disable anyway.
Hood

Offline AVRnj

*
  •  52 52
    • View Profile
Re: Lathe Threading Wizard Rev 1.17
« Reply #43 on: February 01, 2014, 01:27:10 PM »
Will do, thanks!

Offline AVRnj

*
  •  52 52
    • View Profile
Re: Lathe Threading Wizard Rev 1.17
« Reply #44 on: February 01, 2014, 06:12:55 PM »
Well, no luck and I ran out of time.

I had my arduino switching 5.5 volts to zero with every revolution measured by multimeter, tried to set it up on my G540 and did not work.

I touched my multimeter on the 10 Pin and the ground and was no longer getting low pulses, only a continuous high pulse.

Something happened with my rigged connections .

Ran out of time today,
Hopefully will get some time tomorrow.

In the meantime I have some digital Hall effect switches on order so that will hopefully be a better solution long term.

Thanks again for all your help Hood, really appreciate it.
Re: Lathe Threading Wizard Rev 1.17
« Reply #45 on: February 02, 2014, 12:00:01 PM »
I'm curious why you're using a hall effect sensor.  Won't the magnet tend to pick up some of the ferrous metal swarf flying around and cause problems?   Seems like an opto sensor would increase the odds of it working more consistently?  My lathe has a knack for throwing debris into the strangest places.  ::)
Milton from Tennessee ya'll.

Offline AVRnj

*
  •  52 52
    • View Profile
Re: Lathe Threading Wizard Rev 1.17
« Reply #46 on: February 02, 2014, 12:12:33 PM »
The only reason is that I cannot find the opto sensor that Hood recommended, it seems to be discontinued.

The hall sensors I bought were really cheap, about $1.5 a piece plus shipping, so I spent about $5 on them and I could use the for other applications if I don't use them for this.


Right now I am debugging a problem I just cannot figure out, this one is bizarre.

My mocked up opto sensor using ir and an arduino is working absolutely perfectly when not hooked up to the G540 board. I get 0 volts when my ir detects black, and 4.8v when it detects white, very consistently and very fast switching.

for some reason I just cannot understand, when I take the exact same wires that I have coming out of my arduino that I am measuring with my multimeter, and plug them into the G540, the voltage is only getting up to 1.1V when it sees white, and 0 v on black.

I don't believe that is going to be enough to trigger the index switch, but I have not tried it actually plugged in to Mach3 right now since I am doing the electronics in my house.

At first I thought maybe there was some resistor in the pin, so I took a battery pack that I have that delivers 6v and set that up in the same pins, and the G540 pin is measuring 5.8v accurately, so it's not the G540 pin.

My G540 is not plugged in right now, just trying to hook up all the electronics and get it working before hooking it up to my lathe again.

I tried different wires, same thing. I am at a complete loss on this.
« Last Edit: February 02, 2014, 12:15:12 PM by AVRnj »

Offline RICH

*
  • *
  •  7,338 7,338
    • View Profile
Re: Lathe Threading Wizard Rev 1.17
« Reply #47 on: February 02, 2014, 02:12:57 PM »
Quote
I'm curious why you're using a hall effect sensor.

DICKEYBIRD,
Provides for easy installation of an index /  sensor in places you would not be able to use a disk.
Dosen't pick up junk if it's covered. Personaly I would apply KISS principle and not have it's ouput based on
another piece of software such as the Auduino. Nothing wrong with a disk and sensor though.

RICH

Offline AVRnj

*
  •  52 52
    • View Profile
Re: Lathe Threading Wizard Rev 1.17
« Reply #48 on: February 03, 2014, 07:20:14 AM »
So I finally got my IR sensor working the way I intended and hooked up to my G540 board.

Basically I have a digital output from my arduino going to input pin 1, and a ground from my arduino going to pin 12 , which is power supply GND.

When my IR detects black, it sends 0 volts to the G540, when it detects white, it sends 4.9 v.

I verified this on the G540 board with a multimeter, and watched it toggle successfully between 300mv and 4.9v when the G540 is powered on.

I have my inputs in Mach3 set to the proper pins, turned off emulate, and I am not able to get a green light on my index light in the diagnostics area no matter what I do.

I tried with active low both on and off, nothing.

So I am now once again at a loss. I have my IR and wiring doing exactly what I wanted on my G540, and no index.

Can anyone confirm for me that this is what I should be doing, sending a ~5v signal on and off to my G540 and to Mach 3?

I am so frustrated with this, I have spend so many hours it's crazy.

While I know a lot of that time has been on my mocked up switch via arduino, most of the exercise would need to be done with an opto or hall switch anyway since what I have been trying to do is send 5 v on and off to my G540.

Re: Lathe Threading Wizard Rev 1.17
« Reply #49 on: February 03, 2014, 09:15:23 AM »
You might need 12v for the Gecko input.
Check this out:   
http://www.machsupport.com/forum/index.php/topic,15978.0.html
Russ