Description: The small 8-pin PIC12C508 is pre-programmed to generate our 38KHz carrier frequency by simply pulsing I/O-pin GP1. The PIC will generate either 38KHz or 40KHz, depending on the state of GP3 when power is first applied. If you connect GP3 to ground, then apply power to the circuit, the frequency will be 40KHz. This was implemented for people using the older 40KHz style infrared detector modules. The default is 38KHz with pin #4 (GP3) left floating or not connected to anything. Pin #7 (GP0) is to inhibit the carrier output. When GP0 is connected to ground, the PIC will halt generation of the carrier frequency. This is an optional control feature for power saving, and in most cases, unnecessary, but it's there if you need to use it. Ground pin #7 to inhibit the carrier frequency. Release this pin from ground to start the carrier frequency again. Connect GP1 (pin #6) of the PIC12C508 to pin #1 of the two-input NAND Schmitt trigger. The data signal pin can be any I/O-pin from the BASIC Stamp or other microcontroller. By referring to the NAND truth table, you can see how the PNP transistor is held OFF by the logic "1" output of the NAND on pin #3 until both inputs #1 & #2 are logic "1". The 38KHz carrier generated by the tiny 8-pin PIC pulses from logic "1" to logic "0" at a rate of approximately 38,000 cycles per second, hence 38KHz. The serial data signal is 1200 or 2400 bps (bits per second), and considerably slower than the 38KHz carrier frequency. You'll need a power supply that can deliver 5-volts @500mA for the circuit configuration. The Lumex OED-EL-8L, High-Power 180mW, 940nm Infrared LEDs will drop approximately 1.6V each. To figure total peak pulsed current: 5V - (1.6V + 1.6V) / 5.1-ohms = 352mA peak pulsed current.
The circuit utilizes the PIC12C508 microcontroller, which is programmed to generate a modulated carrier frequency suitable for infrared communication. The choice between 38KHz and 40KHz operation is determined by the state of GP3 during power-up, allowing compatibility with various infrared detector modules. The configuration allows for efficient control of the carrier frequency, with GP0 serving as an inhibit pin, providing an option for power-saving during idle periods.
The output frequency modulation is achieved by connecting GP1 to the input of a two-input NAND Schmitt trigger, which is critical for shaping the output signal. The use of a PNP transistor in conjunction with the NAND gate output ensures that the carrier is only active when the conditions for both inputs are met, providing a reliable method for controlling the modulation based on the data signal received from other microcontrollers.
The design specifies the use of Lumex OED-EL-8L infrared LEDs, which are suitable for applications requiring high power and efficiency in the 940nm wavelength range. The calculation for peak pulsed current is crucial for ensuring that the power supply can adequately support the demands of the circuit, particularly when multiple LEDs are used in parallel. The total current draw is calculated considering the forward voltage drop across the LEDs and the resistance in the circuit, ensuring that the design operates within safe parameters while delivering the necessary performance for infrared transmission applications.The small 8-pin PIC12C508 is pre-programmed to generate our 38KHz carrier frequency by simply pulsing I/O-pin GP1 (shown above). The PIC will generate either 38KHz or 40KHz, depending on the state of GP3 when power is first applied.
If you connect GP3 to ground, then apply power to the circuit, the frequency will be 40KHz. This was implemented for people using the older 40KHz style infrared detector modules. The default is 38KHz with pin #4 (GP3) left floating or (not connected to anything), Pin #7 (GP0) is to inhibit (stop) the carrier output. When GP0 is connected to ground, the PIC will halt generation of the carrier frequency. This is an optional control feature for power saving, and in most cases, un-necessary, but it's there if you need to use it. Ground pin #7 to inhibit the carrier frequency. Release this pin from ground to start the carrier frequency again. Connect GP1 (pin #6) of the PIC12C508 to pin #1 of the two-input NAND schmitt trigger as shown in figure 2.
The data signal pin can be any I/O-pin from the BASIC Stamp or other microcontroller. By referring to the NAND truth table below, and the schematic above, you can see how the PNP transistor is held OFF by the logic "1" output of the NAND on pin #3 until both inputs #1 & #2 are logic "1". The 38KHz carrier generated by the tiny 8-pin PIC pulses from logic "1" to logic "0" at a rate of approximately 38,000 cycles per second, hence 38KHz.
The serial data signal is 1200 or 2400 bps (bits per second), and considerably slower than the 38KHz carrier frequency (as shown below). You'll need a power supply that can deliver 5-volts @500mA for the circuit configuration shown in Figure 2.
The Lumex OED-EL-8L, High-Power 180mW, 940nm Infrared LEDs will drop approximately 1.6V each. To figure total (peak pulsed current): 5V - ( 1.6V + 1.6V ) / 5.1-ohms = 352mA peak pulsed current.
The difference between these two ICs. A microcontroller is a specialized type of microprocessor designed to be self-sufficient and cost-effective, while a microprocessor is typically intended for general-purpose use, such as in personal computers (PCs). The microcontroller integrates several useful...
The infrared transmitter and receiver circuit depicted in the schematic diagram can function as a remote control system. The transmitter operates as an oscillator circuit, with the frequency adjustable through the R1 potentiometer (or trimmer pot). This oscillation ensures that...
This circuit enables the control of any equipment operating at 115 volts AC. It utilizes the Radio Shack infrared receiver module (MOD), part number 276-137, which can also be sourced from other suppliers listed on the Links page. The MOD...
The infrared transmitter circuit, as depicted in Figure 18-la, utilizes transistors VT1 and VT2 along with RC components to create an astable multivibrator. The circuit operates with VT1 and VT2 receiving base bias from resistors, and closing switch SA applies...
The driving circuit depicted in Figure 18-12 consists of a connection between the driving portion, the microcontroller, and the air conditioning operation components of the bridge. The microcontroller's digital signal levels from ports P4.0 to P4.3 (approximately 12 feet) and...
The circuit operates based on the interaction between an infrared light-emitting diode (VD1) and an infrared receiver diode (VD2). When VD1 emits infrared radiation, it is detected by VD2, which causes a decrease in its internal resistance. This change results...
The human eye is highly sensitive to visible light but cannot detect infrared (IR) radiation. This limitation can make it challenging to test or verify equipment that emits infrared radiation. An IR detector circuit has been developed to address this...
This project was designed to introduce a friend to microcontrollers and circuits using various functionalities and spare parts. A PS2 numpad was utilized as the key entry mechanism, which was found at a thrift store and included the necessary connector....
The following circuit illustrates the sensor circuit of an analog line follower robot. Features include control by a microcontroller and a sensor circuit.
The sensor circuit for an analog line follower robot is designed to detect the presence of a line...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more