Friday, March 29, 2013

H-Bridge Motor Driver using MOSFET's and Transistors

In this post, we shall be covering on how to construct a H-Bridge Motor Driver circuit using simple MOSFET's and Transistors. The main feature of this H-Bridge is that the motor can be driven in both directions.  

An H-bridge is a circuit that allows a voltage to be applied across any load, like a motor in our experiment, in dual directions. The 'H' here just represents the formation of the circuit and has no reference to anyone.

 The H-Bridge can be realized using simple switches first:-

The H-bridge arrangement is generally used to reverse the polarity of the motor and to let the motor 'free run' to a stop, as the motor is effectively disconnected from the circuit. The following table summarizes operation, with S1-S4 corresponding to the diagram above.

S1S2S3S4Result
1001Motor moves right
0110Motor moves left
0000Motor free runs





 Now let us realize the actual circuit using MOSFET and Transistors:

 To download Schematic: Click Here (JPEG) & Click Here (PDF) 

We have used IRF9540 for P-Channel MOSFET and IRF510 for N-Channel MOSFET. Respective NPN and PNP Transistors are used to drive the MOSFET's which can be seen in the circuit diagram. We have used Arduino to give the logic signals to the pins to turn on and off the MOSFET's. The diodes are provided to prevent back EMF generated by the motor

Direction 1:
Pin1: Logic 1
Pin2: Logic 1
Pin3: Logic 0
Pin4: Logic 0

Direction 2:
Pin1: Logic 0
Pin2: Logic 0
Pin3: Logic 1
Pin4: Logic 1

After reading the above, you  might be wondering why not short the respective PIN's with the same logic. Well you can, that's what we have implemented and its easier to drive the motor in both directions with using only two I/O pins from the Arduino.



 This is the implemented circuit tested in our RnD lab. Below you can see the Working video.
   

Now you can view the motor in slow motion:



Monday, March 25, 2013

LPF (LOW PASS FILTER) FOR 20METER


Greeting's Everyone!!!!!

We built a Low Pass Filter for 20-meter H.F. band which is used in BITX designed by our good friend Farhan (VU2ESE). The inductor coil is made by using 9-turns of 22-S.W.G. on a Teflon former. This L.P.F. worked beautifully and was tested with R.C.T. HP 8920A. We fed only  -7db to take care of mismatch.

Below we have included the picture of the circuit we constructed in the RnD Lab. Also we have included the schematic for home-brewing purpose.













Saturday, March 23, 2013

Communication between two PC’s through the Serial Port:


                                         
Hello Everyone,

We set up a half duplex communication between two PC’s through the serial port. The CPU needs a serial port for communicating with each other . To connect these serial ports we need:

  1. Two DSUBSCF female jacks and
  2. Three equal length wires.


DSUBSCF1 Txd (3rd pin) is soldered with a wire to the DSUBSCF2 Rx (2nd pin). Similarly the DSUBSCF1 Rx (2nd pin) is soldered  with a wire to the DSUBSCF1 Txd (3rd pin) and the 5th pin is grounded. Join these two pins with a wire or don't use the pin.  Make sure that all the three wires are of same length. Now your cable is ready, and you can connect the two female jacks to the respective PC’s.Hence they can communicate with each other.

To transmit or receive the data we need to follow few  simple steps which are given below:

  1. Open the Hyper Terminal as shown in the below picture.

     2.  Give any icon name (E.g.:- test).



     3.  Select the communication port as COM1.



     4.  Select the Baud rate or Bits per second as 19200 or 19.2K, Data bits ­­­- 8, Parity - None, 
           Stop bits – 1, Flow control – None. Then click APPLY and later OK.
       
           

     5.  Finally you will see the blank screen.



     6.  Follow the same steps from (1 to 5) for the other PC also.


NOTE:For sending the data click on send button, For transmitting click on the BROWSE button and also select any one of the protocol..


For receiving the data follow the same protocol as in transmitting one.



Thursday, March 21, 2013

L.P.F. (Low Pass Filter) for 40 Meter R.F. Systems

Greeting Everyone!!!!!!!!!!!!!

We built a L.P.F. (Low Pass Filter) design published in 1987 ARRL  hand-book in chapter 2 (2-44).
The circuit performs very well in 7Mhz freqency. The ARRL Hand-book has given the test chart as below:

Filter No.
Fco
3 dB
20 dB
40 dB
Max. SWR
C1, C5 (pF)
L2, L4 (uH)
C3
(pF)
87
7.54MHz
8.61
11.5
17.0
1.327
470
1.45
820

This filter works as it is with out any changes and modifications.

Below we have show the tested circuit without any modifications from the original circuit which is also show below.







Wednesday, March 20, 2013

Hyper Terminal using MAX 485


Good evening,

If you want to learn how to run a keyboard and PC with a microcontroller by using the MAX 485. I did a small project (Hyper Terminal using MAX 485). In which the data can be transmitted to the PC through the serial port.

The block diagram of hyper terminal using MAX 485 is given below.


For this we are using a PIC 16F877A with a 4 MHz crystal for oscillating and MAX 485, Since the MAX 485 is to be communicating with the PC, The serial port operates at 12 V, which will fry our MAX 485. To fix this problem we are using MAX 232 as a level convertor. The input of the RS 232 must be TTL or C MOS, so we are using two MAX 485’s. Output Of first MAX 485 is differential output, which is converted to TTL output by using another MAX 485. The signal is feed to PC through the RS 232

The schematic of the Hyper Terminal using MAX 485 is shown below:


The full part list of above circuit is given below:
  •  PIC16F877A                                              
  •  4Mhz crystal                              
  • DB9 connector(female)          
  • DB Hood                               
  • MAX232                              
  • MAX485                                   2                               
  • Capacitor(.01uf)                         2               
  • Capacitor (22pf)                         2
  • Capacitor   (1uf)                         4
  • Capacitor (10uf)                         2
  • Resistors (4.7K)                         7 




UART:

Pic 16F877A has UART (Universal Asynchronous Receiver Transmitter) is one of the basic interfaces which provide a simple and reliable communication between one controller to another controller or between a controller and PC.

Interfacing UART with PIC16F877A

Now we want to display a text in PC from PIC16F877A by using UART module. In PIC16F877A contains a single serial interface that is UART. The Transmitter pins send the data into PC and the receiver pin receives the data from PC. The PC and microcontroller speed are denoted by using baud rate. When the baud rates of both PC and Microcontroller are same, then only the data transmit and receive correctly otherwise not. The TXD (Pin 25) & RXD (pin 26) pins are used for data transmission and receive operation. The UART is initialized and set to 19200 Baud rate, 8 bit, no parity and 1 stop bit. Make sure that the PC settings is also the same

processor pic16f877a
include <p16f877a.inc>
__config _LVP_OFF & _XT_OSC & _WDT_OFF & _PWRTE_ON & _CP_OFF &           _DEBUG_OFF


org 0x00
nop
nop
nop
nop

org 0x05
movlw 0x07         ;turn off the comparators
movwf CMCON

bcf STATUS,RP1
bsf STATUS,RP0
movlw 0x06         ;make all pins as digital i/o ports
movwf ADCON1

bcf TRISC,6 ;enable the Tx pin by clearing it

movlw 0x0c
movwf SPBRG   ;set the baud rate as 19200

movlw B'00100100'
movwf TXSTA ;

bcf STATUS,RP0
movlw B'10010000'
movwf RCSTA
main
movf PORTA,0         ;read the port A pins
movwf TXREG ;transfer the data into the register
bsf STATUS, RP0
here
btfss TXSTA, TRMT ;check whether data is transmitted to Tx pin
    goto here                         ;if no goto here
    bcf STATUS, RP0
clrf TXREG                 ;clear the register
goto main                 ;repeat the loop
end


Here initializing the PIC is very important. For UART turn OFF the comparator and make all analog ports as digital port by the using the register ADCON1.make sure that the PORTC TX pin is low and Rx pin to high for data transmission and receive. The baud rate is selected by SPBRG resister.
The TSR plays a major role in data transmission. The read data from the PORT A is send to the TXREG by using the software. Once the data was send to MAX 485 the TRMT bit will be set. Unless the data is not sent the TRMT bit is zero.
The input is given through the switches, the binary value is given as input which is displayed in the PC as a ASCII value
For example
When the input is: 00111101
The output is:         9
Similarly to get the different output varies the input binary value by switching ON & OFF of Port A input pins.   







Wednesday, March 13, 2013

250 WATTS PUSHPULL RF AMPLIFIER




    Dear all,

               We are very happy to share this experimental result. That is we tested a 250watts rf amplifier in     our R&D lab.This amplifier is made with 10nos of  irf 510 mosfets. .Due to insufficient
power supply we got 150 watts only at 29volt 9ampere DC.  The rf input is 5Watts at 13.56MHz ISM band. We need 33volts at 15amperes and we are awaiting this power supply. Final result  and brief about this we shall publish after testing with  high voltage and high current power supply.

Regards
R&D team.

Saturday, March 2, 2013

160 WATTS RF DUMMY LOAD

A 160 Watt RF Dummy Load was assembled and tested in our RnD Lab.
The Dummy Load consists of 80 No.s of 1K Ohm, 2 Watt Resistor's in Parallel and Series combination  to get a total of 50 Ohms.


The total resistance was 49.1 Ohms. After 40 minutes with 30 V, 600 mA with resistance measured was 48.7 Ohms.