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-08-2007, 05:45 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,198
epineh is on a distinguished road
Buy me a Beer?
Simple PWM Generator

I would like to know if anybody has (or can whip up) a simple schematic for a PWM generator using common components.

I want to use it to test my H-Bridges with servo's connected before I plug the rest of the system in "just in case"

I need to supply PWM and NOT PWM to the driver and I am using 5V logic.

Any help would be appreciated.

Russell.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 10-08-2007, 06:15 AM
 
Join Date: Jan 2007
Location: Hamilton,Oh
Posts: 325
bborb is on a distinguished road

This has been discussed extensively in the sci.electronics.basics newsgroup (usenet). Many use the famous 555 chip. The Velleman kit uses an SG3525 chip.
Googling either of these chips with PWM should get you started.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 10-08-2007, 06:17 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,198
epineh is on a distinguished road
Buy me a Beer?

Forgot to mention 20kHz would be about right
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 10-08-2007, 06:20 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,198
epineh is on a distinguished road
Buy me a Beer?

That was my first port of call, but haven't come up with anything as yet, I was thinking that someone must have done this with a 555.

I will keep looking.
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 10-08-2007, 07:21 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,198
epineh is on a distinguished road
Buy me a Beer?

So this is what I have got so far, I can use the 555 in Astable operation, I have drawn up a quick schematic, all I then need to do is take the output through something like a 74hc14 to invert the output to give me the NOT PWM signal...

Period is 0.693(R1+2R2)C
So freq would be 1/Period

By changing R1 and R2 to a pot I should be able to change the duty.

Am I close or way off ?
Attached Thumbnails
Click image for larger version

Name:	555 pwm.jpg‎
Views:	652
Size:	49.7 KB
ID:	44894  
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-08-2007, 09:30 AM
 
Join Date: Mar 2005
Location: Toronto, Canada
Posts: 1,128
Mcgyver is on a distinguished road

using a single 555, the frequency and duration will both change... must pwm 555 circuits you use two 555 together (a 556 is two 555 on one chip), one in astable, one in monostable. the astable sets the frequency of the pwm, the mono the % of the pulse that is on....use that pulse to turn a fet on and off. you only need a pot on R1 for the monostable (you're adjusting the time the pulse is on, not the frequency). can't seem to find the web page that taught me all this, but as suggested search pwm and 555 and you'll get lots.

one of the guys at homeshop machinist came up with this simple circuit and excellent tutorial - should get you started. voltages of the fet etc may need adjustment for your app
http://vts.bc.ca/workshop/pwm/pwm.htm
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 10-08-2007, 10:05 AM
 
Join Date: Jan 2005
Location: Missouri
Posts: 746
2muchstuff is on a distinguished road

Here is a link to a 556 PWM. http://www.m.case.btinternet.co.uk/h...enerators.html
__________________
If it's not nailed down, it's mine.
If I can pry it loose, it's not nailed down.
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 10-08-2007, 10:26 PM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,198
epineh is on a distinguished road
Buy me a Beer?

Cheers guys, that is the ticket !

I like both sites, either will work for what I want, just have to rummage through the electronics pile to find which components I have and choose one to build.

Cheers.

Russell.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 10-09-2007, 05:23 PM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

For a little bit more than the cost of a 555, you can buy an off the shelf PWM IC.

By using a dedicated power supply control IC, you can drive fets or fet drivers at duty cycles that are very, very low to nearly 99% while also adding shut down. over current and some other housekeeping functions via built in error amps and the like.

Look into the SG3524, SG3525 and SG3526. EIther these or their complements are available in PWM positive or negative logic. These IC's may be available with an LM prefix from National or some other industry number.

The LM3526 is one that I have a lot of experience with and it is somewhat easier to use over a wide frequency range than a 555 - the use of a fancier IC is also much harder to reverse engineer in a circuit if you scrub the numbers off of the IC when/if you ship the device.

The above IC"s have some well documented application notes publishes with/for them....
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 10-09-2007, 10:39 PM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,198
epineh is on a distinguished road
Buy me a Beer?

Hey Dennis, thanks for the tip, I was going to use components I had lying around, but at $1.00 Au for the SG3524 it seems a lot simpler to buy a dedicated chip.

The LM3526 came up as a Dual Port USB power switch, is that the right number ?

Cheers.

Russell.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-09-2007, 11:08 PM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

The 3524/25's are stripped down versions of the 3526 - all are voltage controlled PWM's.

You set up a reference voltage and then compare it to/with the output voltage you create/integrate with the output side. The error amp keeps the output voltage constant by varying duty cycle - frequency stays fixed. You can daisy chain most of them and even do pulse by pulse current limiting and/or even soft starts.

I recall the 24/25 as being simple O/C outputs while the 26 is dual totem pole version. You can AND/OR the outputs as appropriate.
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 10-10-2007, 03:48 AM
 
Join Date: Aug 2007
Location: Harrison AR USA
Posts: 72
Blog Entries: 1
OzarkCNC is on a distinguished road

Originally Posted by epineh View Post
Hey Dennis, thanks for the tip, I was going to use components I had lying around, but at $1.00 Au for the SG3524 it seems a lot simpler to buy a dedicated chip.

The LM3526 came up as a Dual Port USB power switch, is that the right number ?

Cheers.

Russell.
Try SG3526 or UC3526 or IP3526 or LT3526

or go here http://www.alldatasheet.com/view.jsp?Searchword=3526

Since I found that site, I don't miss my TTL data book so much.
__________________
Ōz@®KÇÑÇ
Tweet this Post!Share on Facebook
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
EMC with what g-code generator? randyf1965 LinuxCNC (formerly EMC2) 10 09-18-2011 11:00 AM
NC Code Generator vijaychd General CNC (Mill and Lathe) Control Software (NC) 0 03-26-2007 02:39 PM
post generator dxxx SprutCAM 1 11-06-2006 02:28 AM
Simple Question Simple Answer ? p3t3rv Stepper Motors and Drives 6 02-16-2006 10:00 AM




All times are GMT -5. The time now is 12:25 AM.





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