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 10-27-2004, 12:03 AM
 
Join Date: Mar 2004
Location: Canada
Posts: 500
Sanghera is on a distinguished road
Convert 12 V to 5 Volt?

Hi all, just wondering how to convert 12 V into 5 Volts, do you need a DC to DC converter or can you use something else?
Thanks.
Reply With Quote

  #2   Ban this user!
Old 10-27-2004, 12:15 AM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Do you want to convert 12V power supply _or_ 12V signal to 5V?

If power supply, you'll need DC/DC convertor (expensive) or voltage regulator IC (cheap) depending on amperage & efficiency you required. For low amp (about 1A) the standard here is LM7805. If you need about 3A, you can use LM123. For extended use at rated amp, heatsink is required.

If signal, just use a voltage divider, i.e., two resistors.
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #3   Ban this user!
Old 10-27-2004, 12:21 AM
 
Join Date: Mar 2004
Location: Canada
Posts: 500
Sanghera is on a distinguished road

So what value of resistor for 12 volt down to 5 volt for signal? Can you get 12V from the computer power supply just as easy as 5 Volts?
Thanks.
Reply With Quote

  #4   Ban this user!
Old 10-27-2004, 12:29 AM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Originally Posted by Sanghera
So what value of resistor for 12 volt down to 5 volt for signal? Can you get 12V from the computer power supply just as easy as 5 Volts?
Thanks.
I would use 6.8k & 4.7k or something near that.
All desktop computer power supply I came across have +12V (yellow wire), +5V (red wire), -5V, and -12V. Typically the +12V and +5V can supply several amps.
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

  #5   Ban this user!
Old 10-27-2004, 12:31 AM
 
Join Date: Mar 2004
Location: Canada
Posts: 500
Sanghera is on a distinguished road

Cool.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-27-2004, 05:59 AM
 
Join Date: Oct 2003
Location: Sweden
Age: 34
Posts: 398
arvidb is on a distinguished road

Sanghera, just to clarify the use of the voltage divider (in case you don't know this already):

Connect the two resistors in series. Connect the 4k7 end to GND and the 6k8 one to the 12 V signal. You can then pick the 5 V signal between the junction of the resistors and GND.

Arvid
Reply With Quote

  #7   Ban this user!
Old 10-27-2004, 07:16 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 500
Sanghera is on a distinguished road

How did you do the math for this?
I mean, say you have a 1.5 Volt battery and want 1 Volts out of it? Not that I need this info. just as an example. How would you figure how many ohm resistor and what not? Ohm's law eh? You would have to know the amps of the 1.5 Volt battery wouldn't you? If you do, what would be the proper way with a multimeter?
Thanks.

Last edited by Sanghera; 10-27-2004 at 07:54 PM.
Reply With Quote

  #8   Ban this user!
Old 10-27-2004, 07:54 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 500
Sanghera is on a distinguished road

Scratch this post.
Reply With Quote

  #9  
Old 10-27-2004, 08:29 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

Here is a program I wrote to run under Qbasic for the three terminal voltage regulator LM317 The value of R1 is typically around 280 ohms and is connected between the output pin and the Adj pin, R2 is connected from the Adj pin and ground. This gives you the value of R2 for a given output and and the current through it.

REM PROGRAM TO CALCULATE LM317 REGULATOR RESISTOR
CLS
PRINT "R1 = ";
INPUT R1
PRINT "Voltout = ";
INPUT Voltout
LET I1 = 1.25 / R1
LET R2 = (Voltout - 1.25) / I1
PRINT "Resistor Divider Current ="; I1
PRINT "R2 ="; R2
END

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

  #10   Ban this user!
Old 10-28-2004, 05:17 PM
 
Join Date: Oct 2003
Location: Sweden
Age: 34
Posts: 398
arvidb is on a distinguished road

Originally Posted by Sanghera
How did you do the math for this?
I mean, say you have a 1.5 Volt battery and want 1 Volts out of it? Not that I need this info. just as an example. How would you figure how many ohm resistor and what not? Ohm's law eh? You would have to know the amps of the 1.5 Volt battery wouldn't you? If you do, what would be the proper way with a multimeter?
Thanks.
You calculate the current using Ohm's law, with R = resistance of the two resistors in series and U = battery voltage of 1.5 V. When you know the current through the resistors, you can calculate the voltage drop over each resistor.

If the resistors are R1 and R2 their series resistance is R1 + R2, so the current through them by Ohm's law becomes I = U/(R1 + R2). The voltage over R1 is then, also by Ohm's law, U1 = R1/(R1 + R2)*U, and the voltage U2 over R2 = R2/(R1 + R2)*U.

In the original question, U = 12 V, and with R1 = 4k7 and R2 = 6k8, U1 = 4k7/(4k7 + 6k8)*12 = 4.9 V, which is good enough.

Observe also that U1 + U2 is always equal to U, as it must. Also notice that if you draw current from the point where the resistors are connected, that current will be drawn from the positive, so will pass only through the resistor not connected to ground. This will increase the voltage over that resistor (again, Ohm's law), meaning less voltage and current through he "lower" one, and so a lower voltage. That's why voltage dividers like this only work for "signal" levels (where the current draw of whatever is connected between the resistors is insignificant).

Arvid
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-28-2004, 08:36 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 500
Sanghera is on a distinguished road

So, this would not be a practical way to do for a PS? Or does current not even come into play here?
Thanks.
Reply With Quote

  #12   Ban this user!
Old 10-29-2004, 02:28 AM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Voltage divider above is not for PS. Current flow is only about 1mA (12V/10k Ohm). If you connect another significant load (taking more than 0.1mA) to the divider, the voltage will change as the total resistance is changed (taking into account the load resistance).

As I indicated earlier, if you need PS conversion, get a voltage regulator -- LM7805 with heatsink will give you 1A continuous.
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
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
New Plans to convert a Sieg Mini-Mill to CNC rsteele Product Announcements & Manufacturer News 2 09-19-2011 01:18 PM
What all parts to convert cnc jr to servos? blazer928 Servo Motors and Drives 3 11-15-2006 01:01 PM
5 Volt Power Supply Tripping murphy625 General Electronics Discussion 13 02-27-2005 09:05 PM
Convert 3d studio file to iges/parasolid? Rekd General CAM Discussion 2 04-08-2004 09:10 PM
convert smartcam to dxf format? imfool General CAM Discussion 4 03-23-2004 09:15 PM




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