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



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


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


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-26-2008, 08:30 PM
abasir's Avatar  
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:	347
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  
Join Date: Nov 2006
Location: New Zealand
Age: 44
Posts: 90
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
 
Join Date: Jan 2004
Location: NEW HAMPSHIRE
Age: 62
Posts: 534
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  
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:	218
Size:	228.0 KB
ID:	54301   Click image for larger version

Name:	DSC01414.jpg‎
Views:	232
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  
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:	315
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  
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
Silver Member
 
Join Date: May 2005
Location: USA
Age: 45
Posts: 1,810
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  
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:	266
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
 
Join Date: Aug 2006
Location: Australia
Posts: 209
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  
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, 475 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
 
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
 
Join Date: Aug 2006
Location: Australia
Posts: 209
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




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On


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 11:03 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361