Showing posts with label pwm. Show all posts
Showing posts with label pwm. Show all posts

Thursday, November 13, 2014

PWM Generator Schematic

PWM waveforms are commonly used to control the speed of DC motors. The mark /space ratio of the digital wave-form can be defined either by using an adjustable analogue voltage level (in the case of a NE555 based PWM generator) or digitally using binary values. Digitally derived PWM waveforms are most often produced by the timer/counter modules in microcontrollers but if you do not want to include amicrocontroller in your circuit it’s also quite simple to generate the signals using discrete logic components. An extension of the circuit shown can pro-duce two PWM waveforms from an 8-bit digital input word. Each signal has 15 val-ues. The 8-bit word can be produced for example from an expansion board fitted in a PC or from an 8-bit port of a processor which does not have built-in PWM capability or from a laptop’s printer port.
Discrete PWM Generator Circuit Diagram
The mark/space ratio is only programmable up to 15/16 rather than 16/16; a binary input of 0000 produces a continuous low on both outputs turning both motors off. Similar circuits often employ a dedicated ‘enable’ input to turn the motors off but it is not necessary in this design.

The diagram shows the circuitry required to produce just one waveform. For the full two channel circuit it is necessary to use an additional 74HC193. The clock signal produced by the HCF4060 generator can be used to drive both channels and the free flip flop in the 74HC74 package can be used for the second channel (the corresponding pin numbers are shown in brackets). Alto-gether the entire two channel circuit can be built using just four ICs.
Read More..

Saturday, September 6, 2014

Digital DC Power supply using PWM with PIC microcontroller

IMG_20131205_123620In our lab I saw many DC power supply which have a variable knob to regulate the output. I was dreaming to make such a project where I can regulate the voltage using push button.As I am not an industrial level expert so this project is just about a digital DC power supply of small range(5V-12V). You can press push buttons to increase or decrease output voltage.Here we use LM317 to regulate the output voltage. Output voltage is controlled by the PWM output of a pic microcontroller.An OP-AMP is required to amplify the PWM output level. The idea is simple and easy to implement in schema.

Necessary Software:

1. Proteus 7.8 Professional
2. MicroC Pro
3. PICKIT 2.61 Boot Loader

Necessary Equipment:

1. PIC 16F73
2. LCD 16x2
3. 20 MHz Oscillator
4. Variable resistor (5k Ώ, 1k Ώ, 50k Ώ)
5. 7805 Voltage Regulator
6. 7818 Voltage Regulator
7. LM317T Voltage Regulator
8. LM741 Op Amp
9. Push Button Switch
10. Resistor (1k Ώ, 220Ώ)
11. Capacitor (47, 10, 1, 0.1 uF)
12. Vero board
13. Heat Sink

Methodology:


clip_image001

Figure1: Block Diagram of whole system

Schematic Diagram:


clip_image003
Figure 2: Schematic Diagram of the schema


Description:

· LM317 can give output of 3-37V . It can change its output voltage according to the adjust pin voltage.
· PWM signal is generated from microcontroller. The signal is applied to RC low pass filter which makes a DC voltage level.
· This voltage is applied to Op Amp to get required gain.
· This amplified voltage is applied to LM317 adjust pin.
· From microcontroller we adjust the width of PWM signal. More width gives higher DC level.
· It also changes the adjust pin voltage which controls the output of LM317.

Final Output:

IMG_20131205_123620

Possible Application:

· Smooth speed control of DC motor

· Valve control of liquid and gas flow.
· Supply for different Electronic Circuit etc.

Downloads:

Download the full project file here.































Read More..