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 > Hobbycnc (Products)


Hobbycnc (Products) Discuss Hobbycnc controller boards here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-25-2007, 10:00 AM
 
Join Date: Feb 2006
Location: Viet Nam
Posts: 5
chithinh is on a distinguished road
Use Joystick to control 3 Axes.

Hello all,

Who can tell me know how to use Joystick with HobbyCNC board to control x, y, z axis? This one is easy for user to set 0,0,0 point or mill some simple shape. I don’t want to use Joystick via USB port because I have to turn PC on when do this. Give me your advice please. Thank you.
Reply With Quote

  #2   Ban this user!
Old 01-25-2007, 11:11 AM
 
Join Date: Sep 2006
Location: USA
Posts: 136
steve323 is on a distinguished road

It would not be too hard if you are good at electronics. I would tear apart a cheap joystick and replace the electronics with a PIC or AVR microcontroller. The HobbyCNC board needs 2 signals (direction and step) for each stepper motor. The step signal needs to pulse at the rate you want to turn the motor, and can be proportional to the joystick position. The output signals are just TTL level signals sent to a parallel port connector.

I plan on building one in the near future.
Reply With Quote

  #3   Ban this user!
Old 01-25-2007, 07:22 PM
 
Join Date: Feb 2006
Location: Viet Nam
Posts: 5
chithinh is on a distinguished road

Thank you Steve323, When do you start? Please take a photo when you accomplish this one. Do you have schema for this one? How do you think if i make another board with joystick and combine parallel with HobbyCNC board? is it possible?
Reply With Quote

  #4   Ban this user!
Old 01-26-2007, 11:34 AM
 
Join Date: Sep 2006
Location: USA
Posts: 136
steve323 is on a distinguished road

Sure, I will post some pictures. It may be a week or two before I finish. I have small children that limit my available hobby time.

There is not much to the schematic. The total component count will probably be 4 batteries, a 5V regulator, an AVR processor, a crystal, and the joystick potentiometers. The AVR has analog inputs that can read the potentiometers directly. The outputs can directly drive the printer cable, although I may add a buffer. I will probably also add some LEDs to monitor the input signals.
Reply With Quote

  #5   Ban this user!
Old 01-26-2007, 12:02 PM
 
Join Date: May 2004
Location: Canada
Posts: 13
heyarnold is on a distinguished road

Why is a joystick needed?

I was thinking it would be easier to control and simpler to with a box that had a toggle switch and buttong for each axis. The switch would control direction (up/down for z or y and left/right for x). The button would control the steps (pulses). The pulses could be generated by a simple 555 timer chip. Come to think of it a small potentiometer could be added below each button to control the step rate (faster / slower). I thought this box would look like a pendant you see on some machines.

What do you guys think?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-26-2007, 12:15 PM
 
Join Date: Sep 2006
Location: USA
Posts: 136
steve323 is on a distinguished road

That would be an option also. A small microcontroller has an advantage that it can be programmed to shut off if the limit switches are reached. It just depends on what is easier for you to build.

I will probably make mine using potentiometers from a gameboy type controller. They are like tiny joysticks and would fit easily into a pendant type control.
Reply With Quote

  #7   Ban this user!
Old 01-29-2007, 10:03 AM
 
Join Date: Dec 2006
Location: USA
Posts: 204
dan dimock is on a distinguished road
schematic

I am new to all of this, just now started my build of a cnc machine. Have ordered a conrol board from hobbycnc and have not made up my mind on which software to use. If you would post pictures and schematic, I would like to look into building one.
Thanks
Dan
Reply With Quote

  #8   Ban this user!
Old 02-20-2007, 01:23 PM
 
Join Date: Sep 2006
Location: USA
Posts: 136
steve323 is on a distinguished road

Here is a picture of my joystick controller. The joystick is available from Digikey for around $6. It appears identical to the two devices found in a cheap gameboy type controller. The CPU is a 28 pin Atmel AVR microcontroller. I built it using point to point wiring, although it would have been easier to build a small circuit board.

My setup has 3 pushbuttons. One button switches between XY or ZA mode. One button selects only the strongest of the X or Y direction to allow moving just one axis in a straight line. The third button is slow mode to limit the max speed. LEDs light up to show the active axis plus plus the status of the home inputs. I also added jumpers to gang the 4th axis with the X axis because my router has 2 X axis stepper motors.

The joystick is programmed to have 100 different delay values ranging from 0.25 to 0.00025 seconds. This gives reasonably smooth control from really slow to the max limit before the motors stall out.
Attached Thumbnails
Click image for larger version

Name:	joystick.jpg‎
Views:	382
Size:	267.9 KB
ID:	32169   Click image for larger version

Name:	schematic.jpg‎
Views:	363
Size:	95.3 KB
ID:	32170  
Reply With Quote

  #9   Ban this user!
Old 02-20-2007, 04:31 PM
 
Join Date: Dec 2006
Location: USA
Posts: 204
dan dimock is on a distinguished road
joystick controller

could this be use with software where the software is use to run a program, and the joystick could be use to set the router in place if you were cutting a lot of the same pattern out one piece of wood?
Dan
Reply With Quote

  #10   Ban this user!
Old 02-20-2007, 05:07 PM
 
Join Date: Sep 2006
Location: USA
Posts: 136
steve323 is on a distinguished road

No, that would require an input port and an output port so the device could sit in-line. I would be worried about missing pulses or messing up the timing, so I only have an output port.

It might work with a parallel port switch box although it would probably jump when switching between the two. Cheap switch boxes are not usually debounced.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-10-2007, 09:02 PM
 
Join Date: Jul 2005
Location: USA
Posts: 35
7ofclubs is on a distinguished road

I am pretty sure that Mach3 will let you do this already.

-=sHrEk=-
__________________
-=sHrEk=-
Reply With Quote

  #12   Ban this user!
Old 04-10-2007, 09:15 PM
 
Join Date: Dec 2006
Location: USA
Posts: 40
NGinuity is on a distinguished road

Originally Posted by 7ofclubs View Post
I am pretty sure that Mach3 will let you do this already.

-=sHrEk=-
Let you do what, exactly?
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
21i TB joystick.... patrickb Fanuc 7 07-13-2006 05:20 AM
joystick phe259 TurboCNC 5 03-27-2006 12:37 AM
Adding a Joystick. on7tim7 Mach Mill 0 01-10-2006 01:33 PM
Standalone Joystick Stepper Control kochevnik General Electronics Discussion 15 08-28-2005 05:22 PM
Joystick Control Sanghera DIY-CNC Router Table Machines 11 06-15-2004 11:39 PM




All times are GMT -5. The time now is 08:42 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