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 12-31-2006, 04:33 AM
 
Join Date: Apr 2006
Location: USA
Posts: 149
macona is on a distinguished road
Interfacing a 24 volt signal to parallel port

I am trying to interface my sensor I am using to provide spindle feedback. It is a keyence fiber optic sensor and it outputs a 24v pulse. I had planned on interfacing it with a opto22 dc input module but it does not seem to like frequencies above about 100hz. Any signal above there seems to disappear.

What are my options. The output of the sensor is limited to 40 ma. The interface board i have for my parallel port uses SN74ACT245N buffers. Maybe an optoisolator? What about using a couple resistors for voltage divider?
Reply With Quote

  #2   Ban this user!
Old 12-31-2006, 09:01 AM
 
Join Date: Apr 2005
Location: USA
Posts: 29
Servo Wizard is on a distinguished road

macona,

The IDC5 module that you have has a 5ms on time and 5ms off time, or a 10ms cycle time. (1000/10=100) Opto 22 G4IDC5K has a .025ms on and .025ms off time, or a .05 cycle time. (1000/.05=20000)

Servo
Reply With Quote

  #3   Ban this user!
Old 12-31-2006, 09:45 AM
 
Join Date: Sep 2005
Location: UK
Posts: 43
CNCezee is on a distinguished road
spindel speed


I would not use an opto isolator due to there being a turn on and turn off time which limits the speed of opperation,
I would use a pnp transistor (BC212 type) using the +24 signal potted down to turn off the transistor ( signal low transistor on )with the emitter voltage supply at +5 volts, then if required use a standard gate to shape the output signal.
However to do this the +24 volt signal ground and +5 volt ground must be common

Roger

CNCEzee
Reply With Quote

  #4  
Old 12-31-2006, 09:50 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

What is the nature of the output signal from the fibre optic? you may not need to isolate it. If not either feed direct to the 74245 or buffer it with a 2N7000, make the common of the optic sensor common to the 74245 common.
I just noticed you mentioned the 24v optic signal, you could still use the 2n7000 with a voltage divider to the Gate.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 12-31-2006, 09:59 AM
 
Join Date: Dec 2006
Location: USA
Posts: 11
The Speaker Guy is on a distinguished road
A couple aproaches

There's a few ways to do this

A voltage dvivder into a a 74HC14 Schmitt trigger. Simple, easy to get part. Use a 20k resistor on top, a 3.9k resistor on the bottom. Question is if the signal source can drive the R load well.

Use an LM339 comparator. You get four per package, and these operate up to 36V. Set IN- to 1/2 of the peak operating voltage. Connect the IN+ directly to the signal source. Advantages are no load to drive from signal source, and this circuit works from 5V to 36V with no changes.

http://www.national.com/pf/LM/LM339.html

Good Luck

John
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-31-2006, 10:04 AM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

I personally like SpeakerGuy's approach...voltage divider and feed that into the 74HC14.....it will also provide you with some debounce if necessary.
Reply With Quote

  #7  
Old 12-31-2006, 12:41 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,462
ger21 is on a distinguished road
Buy me a Beer?

http://www.cncbuildingblocks.com/ele...interface.html
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #8   Ban this user!
Old 12-31-2006, 12:55 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Need to know more informaion. Looking at the keyance website, several different output configurations. Do you have a model number? My fear is they have slow rise and fall times. If that is true a comparitor configured with a lot of hysterysis, and large signal swing would be best.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #9   Ban this user!
Old 12-31-2006, 01:00 PM
 
Join Date: Apr 2006
Location: USA
Posts: 149
macona is on a distinguished road

The module is a keyence FS-V1P with PNP output. The module I am using is the Opto22 G4IDC5D.

I put the scope on the output and found it has a good turn-off response time but by the time it gets to zero the next pulse starts. I tried loading down the output with a 200 ohm resistor and it cleaned up the waveform a lot. I have a pretty clean signal up to about 1200 RPM with a 4 mark encoder wheel (4 black, 4 white) and from there I start loosing it again. I dont think its the opto22 module but the signal quality.

I think I will try the schmitt trigger and see what that does.
Reply With Quote

  #10  
Old 12-31-2006, 01:30 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

What about a MC1489, this is a very common data reciever ic but it takes up to +30v input, will condition the signal and has a response input pin that can tailor the trigger point, outputs to TTL.
Al.
Attached Files
File Type: pdf mc1489.pdf‎ (97.5 KB, 99 views)
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-01-2007, 03:23 AM
 
Join Date: Apr 2006
Location: USA
Posts: 149
macona is on a distinguished road

I got it working. Combination of two things. First was the resistor across the output of the sensor. This cleans up the fall time nicely. Second was switching the input to the second parallel port board (I am using two parallel ports on this machine) After looking at the output of the opto22 module I found I was getting a good signal out of it after all. I checked the output to one side of the 74245 and it was pretty good. I went to the computer side and it looked like crap. In the chip it looks like it was picking up interference. My best guess it was from the spindle drive.

So it all works good now. Set up closed loop spindle control and got it tuned pretty well. I can run it dead slow, put my hand on the spindle to stop it and it kicks up the power to compensate within a second or so. I think it would do it faster after I play around with the decel parameters in the VFD.

Yay! Thanks Guys

I cant wait to upgrade to the G100... Bye Bye parallel ports...
Reply With Quote

  #12   Ban this user!
Old 01-01-2007, 01:58 PM
 
Join Date: Nov 2006
Location: israel
Posts: 1
shaheen is on a distinguished road
a same problem

i try to do the same project and i face the same problem
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 09:20 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