go away spammer

Author Topic: implementing PWM  (Read 1863 times)

0 Members and 1 Guest are viewing this topic.

Offline HimanshuTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
implementing PWM
« on: January 27, 2012, 09:43:42 AM »
Hello,
           i want to know how to implement pulse width modulation(PWM) on a circuit, what additional components like resistance and capacitor are required.
also i want to know how to implement PWM on 8051 microcontroller.

Offline pterrus

  • Jr. Member
  • **
  • Posts: 37
  • Helpful? 0
Re: implementing PWM
« Reply #1 on: January 27, 2012, 10:10:14 AM »
I'm thinking about using an LM555 timer IC as a PWM generator.  Hook it up in astable mode like this.  Full disclosure: I haven't actually tried it yet.  But it should work!

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: implementing PWM
« Reply #2 on: January 27, 2012, 12:47:21 PM »
Circuit below will generate PWM with variable duty cycle. Change Cap or Pot value to get different frequency.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: implementing PWM
« Reply #3 on: January 27, 2012, 02:26:18 PM »
Hi,

Change Cap or Pot value to get different frequency.
First it needs to be rearranged a bit ;)
As shown, it's possible (likely even) to short pin 7 to Vcc (Not Vdd, it's an analog device), which will kill the internal transistor driving this pin.


I have attached an example of a PWM circuit that works reliably and relates M/S ratio closely to pot-position.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

 


Get Your Ad Here

data_list