Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Chet on August 23, 2011, 08:51:26 AM

Title: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Chet on August 23, 2011, 08:51:26 AM
In spite of my best troubleshooting techniques, I'm getting a random limit switch activation.
Not frequently, but they happen.
This is a problem because I typically leave my machine running by itself for extended intervals of time.
If Mach 3 generates a limit trigger, I lose all of the time I didn't know the machine was stopped.
I'm cutting foam, and the sound of the vacuum cleaner drowns out everything else.
A member here, TJ, suggested the following:
"Do you have an extra output pin available for use??? IF so If you buy a C37 relay board from CNC4PC ($15.00) It would take about 15 minutes and whatever alarm you want to use and have what you need.
Set up the pin and port for Enable1 . When Mach is active the relay will open turning off the alarm. When ever the systems Estops the relay will close and turn on the alarm.
You would use the Normally CLosed (NC) side of the relay."
So.... anyone here familiar with the step-by-step to make this happen?
If I pick an output pin on Mach 3, can I pick it up on the HobbyCNC Pro board?
Will it be visible as an active output on the Diagnostics's tab?
I'm open to experimentation, but if someone here knows the process already, I'm ready to learn...
Thanks, Chet

Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: BR549 on August 23, 2011, 10:46:22 AM
First thing is you need to look a teh docs for your board and determend IF you have any spare ouput pins available.  After that it is a simple process of hooking up the relay board and assigning the pin and port to match the output pin/port.

Set this up as one of the enables in config pin/ports.

On your alarm side you would have a power input to common side of the output relay and then from the NC side the other leg would first go to a Manual override switch then on to the alarm itself. From the return side of the alarm you go back to the power supply to complete the circuit.

NOW in operation as long as Mach is NOT in reset the relay would be held open and the alarm would remain off. The moment Mach goes into reset it shuts off all outputs. The relay being held open would then shut and sound the alarm. The manual override is to allow you to turn OFF the function on startup or when needed.

(;-) TP
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Overloaded on August 23, 2011, 11:14:03 AM
Hi Chet,
 Did your troubleshooting include an increase in the debounce interval ?
May solve you problem ? ? ?
Russ
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Overloaded on August 23, 2011, 11:16:03 AM
...or, run your vac through a Mach controlled relay. You would definately hear when it went off due to a trip.
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Chet on August 23, 2011, 11:18:48 AM
Turning off the vac by a Mach controlled relay is a wonderful suggestion!!!!!!
Anybody here using Mach and a HobbyCNC breakout board that can tell me how to do that?
Chet
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Overloaded on August 23, 2011, 11:32:00 AM
Like TP said, you need an output and the relay board but wire the relay N O to a 110vac outlet for the vac. Use the switch on the vac for the override. When mach is running, the relay will be closed powering the outlet, when in reset, the outlet will be dead.
Assuming you have 110 and are manually starting/stopping the vac now.
Russ
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: BR549 on August 23, 2011, 12:01:31 PM
I have looked on the Hobbycnc site and do not see ANY docs for the board.

(;-) TP
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Chet on August 23, 2011, 03:42:13 PM
You're right... The docs for HobbyCNC circuits are nearly non-existent...
They come with great assembly instructions, but little documentation.
However, I have now cross-posted my problem to the HobbyCNC group...
Thanks, TJ, and all of the rest of you, for your insights!
If a solution does appear, I'll be sure to let this group also know!
Chet
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: BR549 on August 23, 2011, 09:02:50 PM
Well if all else fails there is always the USB way to drive the relays(;-)

(;-) TP
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Chet on August 23, 2011, 09:29:45 PM
OK, here's some info on the HobbyCNC board:
pins 1, 14, 16, 17 are available, but only on a straight through basis...
a 10K pull up resistor will be needed...
So, let's say I pick pin 14 --
I'd want Config/Ports & Pins/Output
Enable 1, ENABLED, port 1, pin 14, BUT Active Low should be Red X or Green check??????
Please advise...
Thanks, guys!
(And, yes, I did order the relay driver board from CNC4PC)
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: BR549 on August 23, 2011, 09:47:22 PM
You are correct so far(;-) The active low needs to be the RED X that will make it active High.

You can test this on the diagnostic page. There is a LED that shows the state of the enable1 output pin.

When Mach is normal the led should be ON and when you put it into reset it should go OFF.

Remember on the alarm side of the relayy when you wire it up PLAN to put a disconnect switch inline to be able to shut off this function. IF not then when you first fire up the system the alarm will turn on untill you come out of RESET and when you shut it down the alarm will ALSO turn on.

(;-) TP
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Chet on August 23, 2011, 10:13:32 PM
Excellent info!
I'm glad I'll be able to check the operation on the diagnostic tab.
And thanks for the reminder on the in-line switch...
I'd actually thought of that myself, but it's a great reminder!
There will now be a several day pause until I get my relay driver board...
Chet
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Chet on August 27, 2011, 01:35:36 PM
Success!!!!!
The C-37 single relay board from cnc4pc.com is an excellent little unit.
No 10k pull-up was necessary!
Pulled 5 v off the HobbyCNC board to power it, and attached the input to pin 14.
Wired the vac in on the NO pins of the relay.
Didn't need an extra in-line switch as the vac already has one!
Sweet!!!!!
Thanks to every for their suggestions!
The idea of turning something off as an alarm was a stroke of genius!
Many thanks to all who participated!
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: Overloaded on August 27, 2011, 01:56:20 PM
Congrats. Chet !
Glad it worked out well for ya.
Russ
Title: Re: Adding audible alarm to Mach 3 thru HobbyCNC board...
Post by: BR549 on August 27, 2011, 03:09:20 PM
Good Job(;-)

(;-) TP