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  
Old 02-08-2005, 07:20 PM
*Registered User*
 
Join Date: Feb 2005
Location: USA
Age: 39
Posts: 86
wcarrothers is on a distinguished road
Mutilated mouse DRO (using Microsoft PS2 Mice)

Well in an effort to have a cheep DRO I figured I'd end up using the mouse encoders to interface with the parallel port using the DRO software that reads the parallel ports from http://www.lindsayengraving.com/othe...rests/dro.html Using encoders from PS2 microsoft type mice

Anyway I couldn't find much out there on mouse mutilations that didn't use Logitech mice. And of course I've long since tossed all my Logitech mice which I liked a lot but simply wore out. But I do happen to have a LOT of MS mice.

Of course they are built different. The out put of their IR sensors is different then I think the Logitech ones are based on some of the schematics I've seen on the web.

The MS mice use 1 IR emitter and 1 sensor which has 2 outputs which produce the oscillating output signals to determine direction. The encoders used in the http://www.lindsayengraving.com/othe...rests/dro.html I think output negative pulses which trip the PNP transistors to signal the 5v to the parallel ports. Looking at the Microsoft mouse circuit board it was kinda easy to see the sensors were going to send hi output when triggered rather then low so connecting to PNP transistors like they did on the lindsyengraving site wouldn't work.

Anyway I'm just dangerous enough with electronics and transistors to know when things work. But in any case in my experimenting I connected the Encoder signals from the MS mouse to some NPN transistors then watched how the LED's pulsed. Took a little bit to figure out which pin's of the mouse chip (once removed) needed to be used (follow the circuit board layouts) but once powered with 5v I was getting signals to the NPN transistors and was able to watch some connected LED lights blink on and off as I spun the wheel... Success.

Now the problem was to convert that signal to PNP so I could send 5v to the parallel port.

To do that I connected the output of the NPN transistors to some 4N25 optical isolators (pin 1 to the NPN transistor and 2 to ground). That triggered the optical transistor on the other side and that (pin 4 ground and 5 to PNP) triggers the PNP transistors . The rest of it is the same as Lindsy engraving's site. to the parallel port.


The mouse bodies are mounted to the mill and a simple rubber band running around the crank shafts with some PVC slipped and shrunk around the shafts to guide the band a little bit.. the band goes around the signal wheel triggers the signals. After getting it dialed in with the dro software it works Really good. Took something like a .00004725 count offset in the software to get it counting right with the signals.

I had a handful of mice to play with. and while the mouse chip for the most part had the same pin outs for reading the sensors (pin 1 and 2 for x and pin 3 and 4 for Y Pin 5 was positive) one of the mouse needed 6,11,12 to ground and the other just needed 6 and 12 and had an extra transistor on it which had to be removed and bridged with negative.

I did find how ever non of my P2 gate way boxes would work at all. Stupid gateway parallel ports not standard? Ended up using one of my P1 machines I have laying around.

Anyway sorry for the long post. Hopefully I will have some pictures of the work and schematics up soon. My descriptions of things probably isn't really good enough for the non brave to try but couldn't wait to talk about it.

b.
www.watchdogflyball.com
Reply With Quote

  #2  
Old 02-09-2005, 09:09 AM
*Registered User*
 
Join Date: Feb 2005
Location: USA
Age: 39
Posts: 86
wcarrothers is on a distinguished road
Pics of the mouse mutilation

Here are some pics of the 2 different mice I used and the circuit boards.

notice the one pic of the mouse circuit board before then after. see the missing transistor. Not sure what the reason was for this transistor but it needed to be removed and one leg grounded to get ground to the sensors.

The other mouse did not need this and only needed pins 6,11,12 grounded
pin 5, on both got 5v positive (borrowed from the PC's power supply red wire)
pins 3 and 4 are signals from the 1 sensor (Y up and down on the PC screen) used in each mouse. pins 1 and 2 would be used if you wanted to use signals from the (X side to side) sensor in the mouse.

Wires from pin 3 and 4 go to the NPN transistors then the output of those go to the 4N25 optcial isolators, and the out put of the isolators trigger the PNP transistors which output goes on to the parallel port.

I'll draw up a schematic when I have a second.



b.
Attached Thumbnails
Click image for larger version

Name:	DSCF0097.JPG‎
Views:	428
Size:	91.2 KB
ID:	5134   Click image for larger version

Name:	DSCF0098.JPG‎
Views:	361
Size:	85.6 KB
ID:	5135   Click image for larger version

Name:	DSCF0101.JPG‎
Views:	351
Size:	82.2 KB
ID:	5136   Click image for larger version

Name:	DSCF0103.JPG‎
Views:	303
Size:	119.4 KB
ID:	5137  

Click image for larger version

Name:	DSCF0099.JPG‎
Views:	305
Size:	80.0 KB
ID:	5138  
Reply With Quote

  #3  
Old 02-09-2005, 10:08 AM
joecnc2006's Avatar
www.joescnc.com
 
Join Date: Aug 2004
Location: usa
Posts: 3,056
joecnc2006 is on a distinguished road
Mouse

So what will it do when you have it finished? I'm new here but is it to be used as an interface board or a stepper controlor? Just need to know in layman terms.

Thanks, Joe
Reply With Quote

  #4  
Old 02-09-2005, 10:14 AM
*Registered User*
 
Join Date: Feb 2005
Location: USA
Age: 39
Posts: 86
wcarrothers is on a distinguished road

Well it interfaces the sensors in a microsoft mouse to the PC parallel port so you can use those sensors with the DRO program given out on the http://www.lindsayengraving.com/oth...erests/dro.html site or other sites which happen to have added to that base program code some what.

Basicly I guess you could discribe it as the ultra ultra cheep man's DRO seeing that the circuits and transistors are all of a couple dollars and ya can pic up used mice for free or almost free (if you work in an office or have an old computer store around)

But the point was to get it working with the Microsoft type mice (ie PS2 port mice) as it is impossiable to find the old serial logitec mice to do this with which I have seen being used on some old web sites..

Also I still have yet to get the interface to work with any of my older P2 gateway parallel ports (on the mother boards) no matter what the settings in bios are. Not sure what the deal is there. So I have it connected to one of my older P1 machines and it works fine.

I'm a layman my self so not sure if my terms are very clear.

b.
Reply With Quote

  #5  
Old 02-10-2005, 08:50 AM
*Registered User*
 
Join Date: Feb 2005
Location: USA
Age: 39
Posts: 86
wcarrothers is on a distinguished road

Just mouted the Y axis this morning. I ended up ditching the PVC tubes I used as guide helpers for the rubber belts (bands) for some larger O ring seals I had around. The were 1.75 ID rubber 0 rings then I hot glued around the out side edge of them to hold them in place on the shaft. The PVC tubes had slight eregularitys after I heated them to fit them on. the edges would rub on the bands a little and it just didn't work as well as the rubber o rings.

I'll get some pics soon.

b.
Reply With Quote

Sponsored Links
  #6  
Old 02-11-2005, 08:29 AM
*Registered User*
 
Join Date: Feb 2005
Location: USA
Age: 39
Posts: 86
wcarrothers is on a distinguished road

Here is the circuit diagram I built to interface the mouse output to the parallel port.

the 5v and ground are leached off the ground and red wires from the computers power supply.

Just repeat the schematic for how ever many axis you have.

Playing with the DRO last night I found it to be quite accurate. Might be more accurate if I could find better rubber bands. Also I'm considering increasing the diameter of the mouse incoder wheel shafts by slipping a tube or something over it then the rubber band on that.

Guess accuracy might vary depending on age of the mouse parts and quality of rubber bands but I have found playing with it that for free it does really darn good for me anyway.

You can solder to pin 1 or 2 of the mouse chip (after removing the chip) for the 1 axis in the mouse. In both the mice I used I solder to pin 3 and 4 of the chip because of the direction I mounted the mice.



b.
Attached Thumbnails
Click image for larger version

Name:	Circuit.jpg‎
Views:	711
Size:	30.3 KB
ID:	5167   Click image for larger version

Name:	Y axis.JPG‎
Views:	496
Size:	41.5 KB
ID:	5168  

Last edited by wcarrothers; 02-12-2005 at 04:18 PM.
Reply With Quote

  #7   Ban this user!
Old 03-30-2009, 11:37 AM
 
Join Date: Jan 2007
Location: US
Posts: 100
student1616 is on a distinguished road

can i use scale with sine wave out put(a,a- and b,b-) along with this DRO software.i have a mitutyo scale,which i want to connect to PC.
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





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