CNCzone.com-The Largest Machinist Community on the net!


Welcome to the CNCzone.com-The Largest Machinist Community on the net! forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion

Notices

General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


Reply
 
Thread Tools Display Modes
  #1   Ban this user!
Old 02-26-2008, 08:30 PM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
Another homebrew pendant...

In the process of building my own homebrew pendant to work with Mach3 on my small Sherline mill. It uses a PIC to simulate the quadrature signal normally associated with regular MPG... Tested the code last night and it works fine... no add-on required thus it will work with any version of Mach3...

It has 4 dedicated buttons for Axis +, Axis -, Axis Select and MPG Mode. A visual confirmation of selected axis (X, Y, Z) and mode (X1, X10, X100, continuous) via LEDs. The remaining 9 switches are wired but actual functions are configured in Mach3... Power is taken from USB port...

Will be working on suitable casing tonight (if I can find the time)...
I'll provide more photo and details at my blog
Attached Thumbnails
Click image for larger version

Name:	DSC01382.jpg‎
Views:	289
Size:	392.3 KB
ID:	54243  
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #2   Ban this user!
Old 02-26-2008, 09:07 PM
Steve-Tee's Avatar
Steve-Tee Steve-Tee is online now
 
Join Date: Nov 2006
Location: New Zealand
Age: 43
Posts: 86
Steve-Tee is on a distinguished road
That sure is neat and tidy .
Those extra keys ought to offer a great degree of functionality, while allowing you to get close to the work piece.
Ahhh, don't ya just love the power and flexibility of those PIC chips.

Crikey, I remember when I used to build everything without the help of these beauties!! Oh boy, what a lot of solder boulders!


Great work there .

Cheers and CNCs,
Steve.
Reply With Quote

  #3   Ban this user!
Old 02-27-2008, 04:19 PM
SPEEDRE SPEEDRE is offline
 
Join Date: Jan 2004
Location: NEW HAMPSHIRE
Age: 61
Posts: 487
SPEEDRE is on a distinguished road
What are those switches called?. I'd like to use that kind for a keypad controller I'm trying to conjure up.
Reply With Quote

  #4   Ban this user!
Old 02-27-2008, 07:34 PM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
Speedre,

I don't really know the actual name but here's the description from Digikey...
SWITCH TACT SPST 12MM MOM N/O The TACT stands for tactile...
I just browse in parts store here and picked from their racks...

Photos of the almost complete casing below...
Attached Thumbnails
Click image for larger version

Name:	DSC01407.jpg‎
Views:	178
Size:	228.0 KB
ID:	54301   Click image for larger version

Name:	DSC01414.jpg‎
Views:	195
Size:	208.3 KB
ID:	54302  
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #5   Ban this user!
Old 02-27-2008, 08:27 PM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
My current thinking on label and buttons mapping...
Attached Thumbnails
Click image for larger version

Name:	PendantA Label.jpg‎
Views:	263
Size:	52.1 KB
ID:	54318  
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P

Last edited by abasir; 02-27-2008 at 09:14 PM.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-27-2008, 09:42 PM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
Somebody ask me for a little more detail on the setup at my blog, so here I go...

4 top right hand switches are connected to PIC, i.e., Axis +, Axis -, Axis Select, Jog Mode
4 PIC outputs are connected to parallel port, i.e., Quadrature A/B, Axis Select, MPG Mode
The remaining PIC outputs are connected to the LEDs...

On Axis Select, PIC check current axis selection then pulse the axis select output for about 250ms... to make sure Mach3 registers it...

Same on Jog Mode... only two Mach3 mode used (Velocity and MultiStep)... the right number of pulse must be sent to change to the right mode...

On Axis+/-, PIC check current mode and send relevant number of pulses (1, 10 or 100 or continuous)... output is quadrature... similar to normal MPG...


I'll put up the PCB file and the PIC hex file here if there is any interest...
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #7  
Old 02-27-2008, 10:37 PM
mxtras's Avatar
mxtras mxtras is offline
The Village Idiot
 
Join Date: May 2005
Location: USA
Age: 43
Posts: 1,808
mxtras is on a distinguished road
Nice work!

Scott
__________________
Consistency is a good thing....unless you're consistently an idiot.
Reply With Quote

  #8   Ban this user!
Old 02-28-2008, 06:46 PM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
It's done... I'm all too happy...

Did the label works last night... The label was printed on color laser printer and subsequently laminated on one side with laminating machine... Punched the LED holes with paper puncher... The button holes were cut using circle cutter... 3M spray adhesive complete the process... result below...

p/s: Just realized the X-Axis LED label is wrongly labeled as Z-Axis... dang, I'm just gonna let it be...
Attached Thumbnails
Click image for larger version

Name:	DSC01432.jpg‎
Views:	240
Size:	424.3 KB
ID:	54387  
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P

Last edited by abasir; 02-28-2008 at 07:11 PM.
Reply With Quote

  #9   Ban this user!
Old 03-03-2008, 01:18 AM
twistedfuse twistedfuse is offline
 
Join Date: Aug 2006
Location: Australia
Posts: 189
twistedfuse is on a distinguished road
Looks great. Keep up the good work. Looking orward to seeing the files uploaded. You've built something that alot of us wish to have 'one-day'.

Daniel
Reply With Quote

  #10   Ban this user!
Old 03-03-2008, 02:06 AM
abasir's Avatar
abasir abasir is offline
 
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road
And the files are here...

The zip file contains
- the PCB design and components placement
- sample label above (with the mistake corrected)
- the hex file to burn into the PIC16F628
Attached Files
File Type: zip 9W2BSR_Pendant.zip‎ (305.0 KB, 333 views)
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-04-2008, 07:08 PM
dex918 dex918 is offline
 
Join Date: Aug 2007
Location: Malaysia
Posts: 45
dex918 is on a distinguished road
Completed mine.... but not using the PIC... since I already have the MPG...
Photos here...
__________________
http://9w2dtr.blogspot.com/
Reply With Quote

  #12   Ban this user!
Old 03-05-2008, 09:29 PM
twistedfuse twistedfuse is offline
 
Join Date: Aug 2006
Location: Australia
Posts: 189
twistedfuse is on a distinguished road
Thanks very much for the files. I have already started to serach for the PICs and a programmer. Was your programmer a ready to buy or did you build one. I look forward to building the pendant. Will post photo for you when done if you like.

Daniel
Reply With Quote

Reply

Bookmarks




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Homebrew Danka CNCzone Club House 0 12-31-2007 11:59 AM
homebrew CNC Controller gbowne1 PIC Programing / Design 8 09-07-2006 06:21 PM
Homebrew welder DSL PWR Welding, Brazing, Soldering, Sealing 13 01-04-2006 11:51 PM
Homebrew CNC Lathe Deviant General Metal Working Machines 24 03-06-2005 09:38 AM
Homebrew driver - HELP! chuckknigh General Electronics Discussion 3 11-10-2004 09:20 PM




All times are GMT -5. The time now is 02:40 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.