How to use Holtek 12E/D .............??

Discussion in 'Electronics Resources' started by RRITESH KAKKAR, Jun 4, 2011.

  1. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hi,

    Yesterday, i was reading data sheet of HT 12E/D, i am confused how to use add. pin & data.

    In Encoder 1Mohm resistance is used & in decoder 51Kohms is used @ osc. pin.

    please let me know how to connect IR led & photo diode with respect to Vcc or GND. ??
     
  2. bhageria

    New Member

    Jun 3, 2011
    2
    1
    the address which you set in the encoder should also be set in the decoder..
    for example:- if you set 00000001 in the encoder, then the address of the decoder should also be 00000001.
    whenever you send a data, the decoder first checks the address..it checks the address three times and if the address matches then the decoder continues to decode the data.

    Thus you can have 2^8(2 to power 8)= 256 combinations of address which again means that with a single encoder you can control 256 decoders just by changing the address in the encoder chip.

    and sorry i got no idea how to connect IR LED and photodiode..
     
    RRITESH KAKKAR likes this.
  3. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    I am confused there is add. & data pin how to use??
    in above i think you are talking of add. pins.

    It will be nice if you post small fig. of it how to use it for basic.
     
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    You mention the value of resistors. Can you post or provide a link to the schematic to which you are referring?

    These devices are fairly straightfoward to use. As you may already recognize, the HT12E/D are a matched pair of devices. The encoder device transmits a serial bit stream that contains an address the value of which is determined by the address line that is active. The decoder is wired so that it is set to recognize the same address. With each message received by the detector, it checks the address in the message and then activates its data line if the address value in the message equals to the address it is wired to recognize.

    They need to both be programmed to the same oscillating frequency in order to operate correctly.

    hgmjr
     
    Last edited: Jun 5, 2011
    RRITESH KAKKAR likes this.
  5. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hi again,

    the supply voltage is 5V(7805)

    In ht 12E the osc pin are connected with 1Mohm resistance, the add. are left open and transmit enable is active low.

    In decoder the osc resistance is 51Kohm, valid transmission is active high, add are left open & led are connect (without resistance) to data pins.

    the main problem is that i am not getting how to connect IR led & photo Diode??
     
  6. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    In looking at the datasheets for the two devices, I see now what you were referring to as far as the resistor values are concerned. It turns out that the resistor value in the HT12E needed to set a given internal oscillator frequency is not the same as the resistor value needed to set that same frequency in the HT12D. You will need to select the design frequency that you intend to use and then refer to the graph in each of the two datasheets to determine what resistor value you need to use in each of the two devices to get them to oscillate at the frqeuency you have chosen. These two resistors will be different values. You may want to set up one of the HT12 devices with a resistor and a potentiometer in series so that you can tune the frequency in one to closely match the frequency in the other. That will give you the best performance.

    hgmjr
     
  7. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    I a using potentiometer, but how to connect ir led & phtodiode?
     
  8. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Perhaps you can describe for us what you are trying to accomplish with your circuitry?

    hgmjr
     
  9. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    i am using ir transmitter & receiver, but i am confused how to connect this as with respect to +or - how to connect....
     
  10. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    What are you sensing with your IR detector and IR emitter setup?

    hgmjr
     
  11. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    I am using it for transmitting signal/data from chip....
     
  12. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    I see. What is the nature of the signal that you are using the IR link to transmit?

    hgmjr
     
    RRITESH KAKKAR likes this.
  13. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    Hello, fr using holtek transmitter & receiver is used then where comes nature of s/g.?
     
  14. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    What I was asking for is information about the signal that you will be sending over the IR-link that you want to design? What is its frequency?

    hgmjr
     
    RRITESH KAKKAR likes this.
  15. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    sir, i don't know freq. of i o/p from ht 12E , iam connecting directly to ir led
    that all....
     
  16. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Have a look at this example of an IR link FROM the website www.rentron.com. There is a schematic on the last page that shows a typical application.

    hgmjr
     
    RRITESH KAKKAR likes this.
  17. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    I don't have this type of chip, please tell me how to connect Ir link to HT 12E??
     
  18. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    Transmit side
    Receiver side

    The two links above show the hookups for a transmitter and receiver circuit. The two 3-pin headers are where you connect the IR emitter in the transmitter case and the IR detector in the receiver case.

    You wire the address lines in both cases to be the same.

    Then when you press one of the buttons on the transmitter side the corresponding data line on the receiver will be activated.

    hgmjr
     
    RRITESH KAKKAR likes this.
  19. RRITESH KAKKAR

    Thread Starter Senior Member

    Jun 29, 2010
    2,831
    89
    IN above circuit you use an RF TX & Rx, but i want to connect IR led with photo diode.

    & in the receiver side why transistor is connected??
     
  20. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    The two circuits shown are actually equally suited to IR or RF as the means of transmitting and receiving data wirelessly. IR transmission is by its nature limited in its distance and must be carefully mechanically aligned to insure the optimum transmission.

    hgmjr
     
    RRITESH KAKKAR likes this.
Loading...