Showing posts with label to. Show all posts
Showing posts with label to. Show all posts

Monday, September 30, 2013

Serial To Parallel Converter

This converter may help if just the serial port on a personal computer is free, whereas the printer needs a parallel (Centronics) port. It converts a serial 2400 baud signal into a parallel signal. The TxD line, pin 3, CTS line, pin 8 and the DSR line, pin 6, of the serial port are used - see diagram. The CTS and DSR signals enable handshaking to be implemented. Since the computer needs real RS232 levels, an adaptation from TTL to RS232 is provided in the converter by a MAX232. This is an integrated level converter that transforms the single +5V supply into a symmetrical ±12V one.

Serial To Parallel Converter circuit diagramThe serial-to-parallel conversion is effected by IC1. This is essentially a programmed PIC controller that produces a Centronics compatible signal from a 2400 baud serial signal (eight data bits, no parity, one stop bit). The IC also generates the requisite control signals. If there is a delay on the Centronics port, the RS232 bitstream from the computer may be stopped via the Flow signal (pin 17). This ensures that no data is lost. The controller needs a 4 MHz ceramic resonator, X1.

Wednesday, September 4, 2013

00 To 99 Minute Timer Using PIC16F628A Microcontroller

his might be a good practice project for beginners who just started learning embedded electronics. It is about making a very basic programmable digital timer using a PIC16F628A microcontroller. The timer duration can be set from 0-99 minutes.

As I mentioned earlier, the microcontroller used in this project is PIC16F628A running at 4.0 MHz clock using an external crystal. An HD44780 based 16×2 character LCD is the main display unit of the project where you can watch and set the timer duration using tact switch inputs. There are three tact switches connected to RB0 (Start/Stop), RB1 (Unit), and RB2 (Ten) pins. You can select the timer interval from 0-99 min using Unit and Ten minute switches. The Start/Stop switch is for toggling the timer ON and OFF. When the timer gets ON, a logic high signal appears on the RA3 pin, which can be used to switch on a Relay. The circuit diagram of this project is described below.


When the device is powered ON, the microcontroller initializes the LCD display and shows the following message. The timer is initially OFF and so does the LED or relay, whichever is connected to RA3 pin. You can set time duration between 00-99 min (in step of 1 min) using the Unit and Ten tact switches. Each switch press will increment the corresponding time digit.

When the desired time is set, press the Start/Stop switch to turn ON the timer. The RA3 pin goes high (LED glows) and the count down begins. When the timer is ON, the remaining time is also shown on the LCD screen. When the time elapsed, the timer stops and the LED turns OFF. You can interrupt and stop the timer at anytime by pressing the Start/Stop switch once more. The firmware for PIC is developed using mikroC Pro for PIC compiler. The use of Timers are avoided for simplicity. The time delays are created using the Delay_ms() function of mikroC, which seems to give reasonably accurate timing delays.

Download Mikroc Source Code And HEX File



Wednesday, April 3, 2013

How to Build a Homemade Pure Sine Wave Inverter Using IC 555

How to Build a Homemade Pure Sine Wave Inverter, Using IC 555

The proposed circuit generates accurately spaced PWM pulses which imitates a sine wave very closely and thus can be considered as good as its sine wave counter part design. Here we use  two stages for creating the required  PWM pulses, the stage comprising the ICs 741 and the other comprising the IC 555. Let’s learn the whole concept in details.

How the Circuit Functions – The PWM Stage

The circuit diagram can be understood with the following points:
The two op amps are basically arranged to generate the required sample source voltages for the IC 555. 
The couple of outputs from this stage is responsible for the generation of square waves and triangular waves.


The second stage which is actually the heart of the circuit consists of the IC 555. Here the IC is wired in a monostable mode with the square waves from the op amp stage applied to its trigger pin #2 and the triangular waves applied to its control voltage pin # 5.
The square wave input triggers the monostable to generate a chain of pulses at the output where as the triangular signal modulates the width of this output square wave pulses.
The output from the IC 555 now follows the “instructions” from the op amp stage and optimizes its output in response to the two input signals, producing the sine equivalent PWM pulses.
Now it’s just a matter of appropriately feeding the PWM pulses to the output stages of an inverter consisting of the output devices, the transformer and the battery.
The Output Stage







The above PWM output is applied to the output stage as shown in the figure.
Transistors T1 and T2 receive the PWM pulses at their bases and switch the battery voltage into the transformer winding according to the duty cycles of the PWM optimized waveform.
The other two transistors make sure that the conduction of T1 and T2 takes place in tandem, that is alternately so tat the output o from the transformer generates one complete AC cycle with the two halves of the PWM pulses.



Parts List
R1, R2, R3, R8, R9, R10 = 10K,
R7 = 8K2,
R11, R14, R15, R16 = 1K,
R12, R13 = 33 Ohms 5 Watt,
R4 = 1M preset,
R5 = 150 K preset,
R6 = 1K5
C1 = 0.1 uF,
C2 = 100 pF,
IC1 = TL 072,
 IC2 = 555,
T1, T2 = BDY29,
T5, T6 = TIP 127,
T3, T4 = TIP122
Transformer = 12 – 0 – 12 V, 200 Watts,
Battery = 12 volts, 100 AH.