Author Topic: DING!!! Your dinner is ready.  (Read 17533 times)

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 3978
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
DING!!! Your dinner is ready.
« on: February 19, 2016, 20:07:00 pm »
I've been working on a redesign of a customer mold today, and it takes an enormous amount of time to generate tool paths.  It works.  Its just takes a very long time.  In order to use my time efficiently I've been doing some other work on the computer on the front desk.  Every so often I walk back into my office and check progress.  It would be really nice if there was an audible cue that could be turned on to let me know when its done generating tool paths or done generating G-code so I don't waste time running back and forth to check on it.  I could just leave my office door open and listen for the buzzer. 

Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8331
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #1 on: February 19, 2016, 22:51:55 pm »
I like "ding".  Gimme!

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline Garyhlucas

  • CNC Jedi
  • *****
  • Posts: 1370
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #2 on: February 19, 2016, 23:09:46 pm »
I used to build a low class robot watering system for commercial greenhouses.  Back then a display of any kind was expensive, but a voice synthesizer chip was $25.  So we made the machine talk, beep etc.  Greenhouses are very quiet so you could hear what it was saying from hundreds of feet away.  What was really great was training customers to program it.  I could hear the key presses which spoke each key over the phone and know when the customer was hitting the wrong keys.  The machine also had a report function to tell you all the settings and what it had done. So I could listen to it and know exactly what their settings were.  It seemed like a gimmick but actually worked really well.
Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8331
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #3 on: February 19, 2016, 23:17:08 pm »
Hah!  Gary, that's an amazing "parallel" development!

I developed an automated gerb press for my last employer (gerbs are fireworks 'fountains').  I put a voice synthesizer on it, also, for exactly the same reasons you did, and it worked well!

( I did have to add a large horn loudspeaker and amplifier, though, because the building could not be occupied when the machine was in use.  So, it had to be heard over other noises over 150' away.)

Heh!  Fun!

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4466
    • View Profile
Re: DING!!! Your dinner is ready + New Plugin
« Reply #4 on: February 20, 2016, 12:50:13 pm »
Bob,
Try this  ;D

It looks for a change in the Cursor. When CamBam is thinking, it changes to an egg timer cursor, when thinking is finished, it reverts to the default cursor. This plugin beeps when CamBam changes back to the default cursor.

1. unzip and install BeepMe.dll in CamBam's plugins folder
2. start CamBam , it appears as a new entry in the Plugins Menu called "Beep Me"
3. set the Duration of beeping, it's in milliseconds
4. set frequency of tone, it's in Hz
5. check enable if you want it to beep

Edit: see below for new version

« Last Edit: February 20, 2016, 15:15:31 pm by EddyCurrent »
Made in England

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8331
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #5 on: February 20, 2016, 13:18:38 pm »
Eddy!  Ain't you the plugin man!

Heh!  Neat!  It never even occurred to me that the cursor management might be exposed.

Good work.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4466
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #6 on: February 20, 2016, 13:24:05 pm »
Eddy!  Ain't you the plugin man!

Heh!  Neat!  It never even occurred to me that the cursor management might be exposed.

Good work.

Lloyd

Lloyd,
Thanks for your comments, this is the cursor part, obviously there is also an event handler to catch it.

 if (CamBam.ThisApplication.TopWindow.Cursor.ToString() == "[Cursor: Default]")
                {
                    Console.Beep(Params.frequency, Params.duration);
                }

Edit: It should be easy to call up a wav file instead of the beep, I'll have a look at that, it would be more entertaining if a voice shouted, "Your dinner is ready"  :D
« Last Edit: February 20, 2016, 15:43:36 pm by EddyCurrent »
Made in England

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4466
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #7 on: February 20, 2016, 13:55:56 pm »
I'm going to add an option to use a wav file instead of the beep, it just needs a browser to select the file and a checkbox to select beep or wav file. The beep should work on any computer but to play the wav file it would need speakers and likely most computers used for cnc purposes would not have speakers.
« Last Edit: March 28, 2016, 14:53:16 pm by EddyCurrent »
Made in England

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 2985
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #8 on: February 20, 2016, 14:57:13 pm »
An awesome job Eddy. Kudos for Bob for bringing this up, I have often wondered about it this specially when long wait time was required.
My 2¢

Win 10 64 bit, CB [1.0} rc 1 64 bit, Mach3, ESS, G540

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4466
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #9 on: February 20, 2016, 15:00:45 pm »
Thanks Bubba,  here's version 1.1, you now have a choice of beep or wav file
I've also attached a sample wav of a dog barking
« Last Edit: February 21, 2016, 19:52:14 pm by EddyCurrent »
Made in England

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2371
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #10 on: February 20, 2016, 16:32:44 pm »
The PC I am using is in fact built on a salvaged P4 Compaq MB and the hardware actually uses the PC speaker to play sounds - a feature I didn't know about but liked a lot.

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6135
    • View Profile
    • Cambam V1.0 French Doc
Re: DING!!! Your dinner is ready.
« Reply #11 on: February 20, 2016, 17:10:26 pm »
Hello,

Maybe a track for speech (not tested)

https://www.youtube.com/watch?v=S99MbYiLDII

++
David

Button1_Click
Dim SAPI
SAPI = CreateObject("sapi.spvoice")
SAPI.Speak(TextBox1.Text)

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 2985
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #12 on: February 20, 2016, 17:25:53 pm »
Now I got a Dog barking wav file with an amplifier ;D. Knowing that my little dog JackRat (Jack Russell Rat Terrier)mix will bark hearing other dogs bark I don't need to crank up the volume on my speakers, I can hear the CB finished with the file, long ways away. Bob get a dog and you can close the office door keeping the fly's out.. ;D
My 2¢

Win 10 64 bit, CB [1.0} rc 1 64 bit, Mach3, ESS, G540

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 3978
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: DING!!! Your dinner is ready.
« Reply #13 on: February 20, 2016, 17:54:47 pm »
The PC I am using is in fact built on a salvaged P4 Compaq MB and the hardware actually uses the PC speaker to play sounds - a feature I didn't know about but liked a lot.

In the early 90s when real sound cards were still expensive ( So was everything else computer related.  I once traded a motorcycle for a PP9600 modem. ) There was a fellow (in Germany I believe) who was tired of his rich friends bragging about their AMIGAs who developed a PC speaker file format and playback program.  The sound files were ***.MOD files, and his program was Mod Play.  At one time I had a decent small collection of music files in that format that played nicely over the PC speaker on my 286-16.  

Back in the early 80s I played with some variable sound generation using direct PEEKs and POKEs on the Apple II+.  I didn't have the skills or the musical knowledge, but you could create basic video game sound affects that way, and short single electronic instrument scores.  (Beep music is what we called it.)  
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4466
    • View Profile
Re: DING!!! Your dinner is ready.
« Reply #14 on: February 20, 2016, 18:11:01 pm »
Yes, I've been that route myself Bob  :D
Made in England