home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / sci / electron / 19272 < prev    next >
Encoding:
Text File  |  1992-11-20  |  2.4 KB  |  56 lines

  1. Newsgroups: sci.electronics
  2. Path: sparky!uunet!hobbes!deanr
  3. From: deanr@sco.COM (Dean Reece)
  4. Subject: Re: Voltage to PWM for DC motor control?
  5. Organization: The Santa Cruz Operation, Inc.
  6. Date: Fri, 20 Nov 1992 17:50:36 GMT
  7. Message-ID: <deanr.722281836@sco>
  8. References: <1ei47kINN75s@gap.caltech.edu>
  9. Keywords: PWM
  10. Sender: news@sco.com (News admin)
  11. Lines: 43
  12.  
  13. tod@cco.caltech.edu (Tod Edward Kurt) writes:
  14. >
  15. >Hey everyone,
  16. >
  17. >    Here's my dilemma:  I've got a voltage that varies (say from 0-5v) and
  18. >I'd like to have this voltage control a DC motor via Pulse-Width Modulation.
  19. >I've got the actual high-current motor driver (MOSFETs) done, I just need some
  20. >pulses for it.
  21. >    It seems like there should be a chip that does all this, has an
  22. >adjustable PWM frequency, and provides a way to drive the motor both forward
  23. >and reverse (2 seperate outputs, one for forward, one for reverse)
  24. >    Any ideas?  Surely this must have been done thousands of times.  All 
  25. >help appreciated.  BTW, this is for an Electronic Speed Control (ESC) for an
  26. >RC car.
  27. >                    Thanks,
  28. >                        Tod
  29. >tod@sandman.caltech.edu
  30. >tkurt@vlsi.caltech.edu
  31.  
  32. There are several ways of doing this, but the most straightforward that
  33. I can think of is using a DAC and a binary "up" counter to generate a
  34. voltage sweep (very accurate sawtooth wave) covering the range of voltages
  35. you are interested in and with a period equal to the desired PWM frequency.
  36.  
  37. Use a simple comparator to compare the sweep signal to the variable voltage
  38. and use the output to drive the MOSFETs.  If you find that the motor speed
  39. isn't as linear over the control range as you like, you can play around
  40. with modifying the top and bottom voltages of the DAC (this effectively
  41. changes the minimum and maximum duty cycle of the PWM)
  42.  
  43. I know Radio shack used to sell a real low cost 7 bit (I think) ADC which
  44. was really an 8 pin chip with a DAC, a 7 bit counter, and a comparator
  45. (Just what you want!).  All you gave it was the Voltage to be measured,
  46. a clock reset signal, a clock signal, and power.  As an output, it gave
  47. you the comparator output.  I don't have the exact part number, but it
  48. was something like ADC080?.  So, this chip and a 555 should be all you
  49. need to do what you want.  If I can find the spec sheet for this ADC,
  50. I'll e-mail you (the original poster) the exact number.  Now that I
  51. think about it, it might have even included an ap note on using it as
  52. a PWM generator...  If so, I'll include that info.
  53.  
  54. Cheers,
  55.  Dean Reece (deanr@sco.COM)
  56.