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 04-17-2011, 06:41 PM
herring_fish's Avatar  
Join Date: Apr 2011
Location: USA
Posts: 60
herring_fish is on a distinguished road
Any Arduino Hand Held Pendant Code?

I saw the Reading the Rotary Encoders page in the Arduino Playground and this got me thinking about making a Hand Held Pendant for my low end 2 axis machine. They used an ALPS STEC12E08 encoder which has 24 steps per turn and they offered some code to play with but it won't quite do what I want it to do, as is.

I have thought that I would move the LCD from the main controller enclosure to the external box with the wheel, that I would get machine by a friend, a turn knob for choosing the axis, another for a multiplier, a manual mode switch and an all stop button.

Of course this is just for fun and not a necessary part of my project but it would be cheap to implement. I would hope that as I turned the main wheel, it would move the steppers and read out the moves on the screen.

I already saw Arduino EMC Pendant II but he uses a key pad and I didn't see any encoder code. I'm looking for something simple.

Does anyone know of some similar project that might have some code that I could look at so I can see if this is too much for this beginner code smith?
Reply With Quote

  #2   Ban this user!
Old 04-18-2011, 06:51 AM
borisz's Avatar  
Join Date: Nov 2006
Location: Slovenija
Posts: 8
borisz is on a distinguished road

It is not Arduino, but I am suggesting you to check PoKeys: PoLabs - Affordable PC USB oscilloscopes, logic analyzers and USB interfaces
It can do more than you asked. There are USB and ethernet versions. Ethernet version is supporting also ModBus.

regards

Boris
__________________
www.poscope.com home of PoScope, PoKeys and PoUSB
Reply With Quote

  #3   Ban this user!
Old 04-18-2011, 10:43 AM
herring_fish's Avatar  
Join Date: Apr 2011
Location: USA
Posts: 60
herring_fish is on a distinguished road

Actually, I already have almost everything that I need aside from the LCD that I need to buy anyway and the encoder.

I have the driver board and motor and they are talking. The motor accelerates and decelerates to move to the right spots, it powers down and waits to stay cool and goes home accurately. My code awaits the arrival of 3 limit switches so that I can finish the "power out" wake up calibration. The second axis is not here but it is a simple learners kit because the slide is so simple and light. (it is moving feeding tubes not spindles)

I thought that I would add
while the manual switch is on,
jump over the rest of the program,
read the encoder,
read multiplier switch and multiply (times 1, times 10, times 100)
and then move that many steps.

I want to keep it really simple because I'm a beginner.
Reply With Quote

  #4   Ban this user!
Old 04-18-2011, 10:57 AM
borisz's Avatar  
Join Date: Nov 2006
Location: Slovenija
Posts: 8
borisz is on a distinguished road

Originally Posted by herring_fish View Post

I thought that I would add
while the manual switch is on,
jump over the rest of the program,
read the encoder,
read multiplier switch and multiply (times 1, times 10, times 100)
and then move that many steps.

I want to keep it really simple because I'm a beginner.
That could be done very easy with Mach and PoKeys
__________________
www.poscope.com home of PoScope, PoKeys and PoUSB
Reply With Quote

  #5   Ban this user!
Old 04-18-2011, 12:34 PM
herring_fish's Avatar  
Join Date: Apr 2011
Location: USA
Posts: 60
herring_fish is on a distinguished road

I'm confused, sorry. I looked at the web site. Are you talking about hardware for others that might read this thread or are you talking about something that I can use? I already have a Rugged Step Motor Shield that is working.

I think/hope that all that I need is to be directed to some good simple code and a cheap encoder. Are you pointing me to code that is available to be downloaded for those two parts?
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-18-2011, 01:07 PM
borisz's Avatar  
Join Date: Nov 2006
Location: Slovenija
Posts: 8
borisz is on a distinguished road

Sorry, English is not my native language, probably you do not understand...
My first post started with: "It is not Arduino..."
That means, that it is not Arduin

regards

Boris
__________________
www.poscope.com home of PoScope, PoKeys and PoUSB
Reply With Quote

  #7   Ban this user!
Old 04-19-2011, 01:04 PM
 
Join Date: Mar 2006
Location: Sol 3 (YVR)
Posts: 96
vegipete is on a distinguished road

Reading an encoder is almost the same as reading a switch - almost. An encoder is more or less 2 switches with a related on-off state. Have a look at this encoder from Digikey. The arduino, or any other controller, reads the 2 encoder signals at some rate, giving a 2 bit number. This 2 bit number is compared to the 2 bit number from last time the encoder was read and any change indicates how the encoder has moved.

I'd say, get your hands on an encoder of your choice, connect it to your arduino and have fun experimenting. Step one would be to read and display the quadrature signals from the encoder at very slow turn rates to get a feel for how it works.
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
usb hand held calculator o.k. daisydog Mach Mill 0 02-10-2010 08:45 PM
ShopSabre hand held remote? mwestvang Shopsabre 5 11-30-2009 06:36 PM
cnc hand held remote mwestvang CNCzone Club House 1 05-10-2009 11:40 AM
I need my hand held :D........Palm or HP?? trubleshtr Computers and Networking 6 01-13-2006 06:58 PM
Hand held band saw? njtermite Hobby Discussion 9 03-07-2004 09:50 PM




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