Wednesday, June 29, 2011

Garage Door Opener Transmitter

This electronic circuit is the newer and revised version of the garage door opener transmitter. The transmitter is a PIC based on 40 MHz Microchip’s 16F630 microcontroller. A 10 switch DIP-switch is used for setting the code. To save space, we used a different HF output coil. Schematic , PCB files and hex code are available.
read more "Garage Door Opener Transmitter"

VHF/UHF TV Modulator

The electronic circuit is a TV modulator that is really no more than a transmitter. It is a very small transmitter, admittedly, but none the less that is what it is. What does a modulator actually do? In general -and this design is no exception to the rule - it is a simple oscillator that generates a frequency somewhere in the VHF or UHF region. The oscillator is modulated with the video signal and the modulated carrier wave thus generated is fed into the TV set's aerial input via a cable. Then all that remains to do is tune the TV to the correct frequency.


Circuit Schematic

The crystal oscillator is based on a very fast HF transistor, Tl (BFR91), which performs the amplitude modulation. Apart from this there is little to be said about the oscillator except, perhaps, that it is essential to use the correct values for the components surrounding Tl. This is, of course, simply common sense in this sort of HF circuit.

The harmonics generator is formed by two Schottky diodes, Dl and D2. These diodes must switch very quickly in time with the 27 MHz signal so they provide strong harmonics up into the gigahertz range. The modulation depth can be set with Pl, while the oscillator's d.c. value can be varied by means of P2. The combination of these two presets enables either positive or negative amplitude modulation to be selected.

This is essential as the harmonics produced vary in this respect. We will discuss the calibration of Pl and P2 later in this article. The power for the circuit can be provided by either an unstabilized 8...30 V or a stabilized 5 V. The latter could be taken from a computer's power supply and in this case ICI is not needed.


The printed circuit board for the modulator is only single-sided. The largecopper surface acts as a ground plain.


Parts list
Resistors:
R1, R2 = 4k7
R3, R4 = 56ohm
P1 = 100 ohm preset
P2 = 500 ohm preset
Capacitors:
C1 = 4mf7/16 V
C2= 10p
C3 = 220p
C4 = 47p
C5 = 47n, ceramic
C6 = 100n*
C7 = 330n*
Inductors:
L1, L2 = 3.5 turns of 0.2 mm (SWG 35 or 36) CuL on a ferrite bead of about 3.5 x 3.5 mm
L3 = 1 microH
L4 = 1 turn of 0.8. . .1 mm (SWG 19...21) CuL, air wound with a diameter of 8 mm
Semiconductors:
D1, D2 = 1N6263 (Ambit/Cirkit)
D3 = lN4148
T1 = BFR91 (Ambit/Cirkit)
IC1 = 7805*
Miscellaneous:
X1 = crystal, 27 MHzd(3rd overtone) or other 3rd overtone crystal between 25 and 30 MHz

*= not needed if the circuit is powered from a stabilised 5 V supply

Source
read more "VHF/UHF TV Modulator"

Stereo FM Transmitter Based BA1404 Chips

This electronic circuit design is a stereo FM transmitter that improves sound quality, has very good frequency stability, maximizes transmitter's range, and is fairly simple for everyone to build. We are happy to announce that this goal and expectations have been met and even exceeded.


The transmitter can work from a single 1.5V cell battery and provide excellent crystal clear stereo sound. It can also be supplied from two 1.5V battery cells to provide the maximum range.

Sound Quality and Frequency Stability
One of the qualities of BA1404 FM transmitter is excellent frequency stability. This is mainly due to a use of high quality 3.5 turn variable coil. Tunable RF coils are ideal for precise frequency tuning because their magnet wire is halfway embedded within the plastic, which minimizes frequency drifts. Regular air coils are not preferred for professional broadcasting because the coil expands and contracts with temperature changes. That's the very reason why variable coil was chosen as a substitution for an air coil and a variable capacitor.


Another quality of the presented BA1404 transmitter is a crystal clear stereo sound and improved sound separation. There are several factors that account for improved sound quality and a separation. First reason is the use of 38 KHz crystal which provides rock solid frequency for stereo encoder. Another reason is the use of two 1nF decoupling capacitors one for BA1404 chip and another for 3.5 variable coil. These capacitors have to be as close as possible to a BA1404 chip and a variable coil because this will GREATLY improve the sound quality, sound separation and even frequency stability as well. What they do is filter out the noise in the incoming DC voltage. If the noise enters BA1404 chip stereo generator will include it in a transmitted sound affecting both the sound and multiplex signal that is responsible for generation of the clear stereo signal. If that noise enters it will also be included in a generation of subcarrier frequency affecting the frequency stability. Most people are not aware of how important this is and might place them in a wrong location, away from the target components which provides no use, or worse decide not to use these capacitors at all.

Another factor that is extremely important and which improves overall quality of the whole BA1404 transmitter including frequency stability, sound quality and sound separation is the use of the ground plane on the transmitter’s PCB. It is recommended that ground plane should always be used in circuits that deal with higher frequencies.

Printed Circuit Board
This a suggested high-resolution PCB layout for BA1404 Transmitter. It is ready for printing and no further adjustments are necessary. Dimensions of the PCB should be 57 mm x 35 mm (W x H).


Source
read more "Stereo FM Transmitter Based BA1404 Chips"

Stereo FM Transmitter Based BH1417 Chips

This electronic circuit is a latest BH1417 FM Transmitter design from RHOM that includes a lot of features in one small package. It comes with pre-emphasis, limiter so that the music can be transmitted at the same audio level, stereo encoder for stereo transmission, low pass filter that blocks any audio signals above 15KHz to prevent any RF interference, PLL circuit that provides rock solid frequency transmission (no more frequency drift), FM oscillator and RF output buffer.

There are 14 possible transmission frequencies with 200KHz increments that users can select with a 4-DIP switch. Lower band frequencies start from 88.7 up to 89.9 MHz, and upper band frequencies start from 107.7 up to 108.9 MHz.


BH1417 can be supplied with 4 - 6 voltage and consumes only around 30mA, providing 20mW output RF power. BH1417 provides 40dB channel separation which is pretty good, although older BA1404 FM Transmitter chip provides slightly better 45dB channel separation.


BH1417 is only available in SOP22 IC case so this may be an inconvenience for some folks. On the other hand, because the chip is smaller than regular DIP-based ICs it is possible to fit the entire transmitter on a small PCB.

The bad news is that BH1417 requires 7.6MHz crystal oscillator, which is very hard to find. The good news is that you can use 7.68 MHz crystal instead, which is easier to find. In fact our BH1417 transmitter prototype (schematic shown above) uses 7.68 MHz crystal. This has absolutely no effect on stereo encoding process, we have tested it and stereo sound is crystal clear. The transmitted frequency on the other hand will be shifted up by exactly 1MHz (example: 88.1 MHz to 89.1 MHz) which is perfectly fine. The frequencies that are used in this project have been adjusted by 1MHz already so no additional conversion is necessary.

BH1417 chip may also be used a stand alone stereo encoder. The advantage of that is that you have full freedom of using a transmitter & amplifier of your choice. You will still have a pre-emphasis, limiter, stereo encoder and low pass filter in one small package because very few external components are required for these blocks. PIN 5 is MPX output that can be directly connected to an external FM transmitter through a 10uF cap.


Parts List:
1x BH1417 - Stereo PLL Transmitter IC (Case SOP22) (datasheet)
1x 7.68 MHz Crystal
1x MPSA13 - NPN Darlington Transistor
1x 2.5 Turns Variable Coil
1x MV2109 - Varicap Diode
1x 4-DIP Switch
ANT - 30 cm of copper wire

1x 22K Resistor
7x 10K Resistor
1x 5.1K Resistor
2x 3.3K Resistor
1x 100 Ohm Resistor 1x 100uF Capacitor
3x 10uF Capacitor
2x 1uF Capacitor

1x 47nF Capacitor
3x 2.2nF Capacitor
1x 1nF Capacitor
1x 330pF Capacitor
2x 150pF Capacitor
1x 33pF Capacitor
2x 27pF Capacitor
1x 22pF Capacitor
2x 10pF Capacitor

Specifications:
Supply Voltage: 4 - 6V
Transmission Frequency: 87.7 - 88.9MHz, 106.7 - 107.9MHz (200kHz steps)
Output RF Power: 20mW
Audio Frequency: 20 - 15KHz
Separation: 40dB
Power Consumption: 30mA

Frequency Selection / Calibration
Frequency selection is very straight forward. Simply select transmission frequency at which you would like to transmit, set the combination for 4-DIP switch and BH1417 will immediately tune to that frequency. If you can't hear the transmitted audio signal on your FM receiver then re-adjust 2.5 turn variable coil until you can hear the signal. If you have a laboratory power supply you may try to vary the voltage supply from 4 to 6V. While doing that BH1417 will automatically vary the voltage for MV2109 varicap diode making sure that there's no frequency drift.


Source
read more "Stereo FM Transmitter Based BH1417 Chips"

Transistor Schmitt Trigger Oscillator

The Schmitt Trigger oscillator below employs 3 transistors, 6 resistors and a capacitor to generate a square waveform. Pulse waveforms can be generated with an additional diode and resistor (R6). Q1 and Q2 are connected with a common emitter resistor (R1) so that the conduction of one transistor causes the other to turn off. Q3 is controlled by Q2 and provides the squarewave output from the collector.


In operation, the timing capacitor charges and discharges through the feedback resistor (Rf) toward the output voltage. When the capacitor voltage rises above the base voltage at Q2, Q1 begins to conduct, causing Q2 and Q3 to turn off, and the output voltage to fall to 0. This in turn produces a lower voltage at the base of Q2 and causes the capacitor to begin discharging toward 0. When the capacitor voltages falls below the base voltage at Q2, Q1 will turn off causing Q2 and Q3 to turn on and the output to rise to near the supply voltage and the capacitor to begin charging and repeating the cycle. The switching levels are established by R2,R4 and R5. When the output is high, the voltage at the base of Q2 is determined by R4 in parallel with R5 and the combination in series with R2. When the output is low, the base voltage is set by R4 in parallel with R2 and the combination in series with R5. This assumes R3 is a small value compared to R2. The switching levels will be about 1/3 and 2/3 of the supply voltage if the three resistors are equal (R2,R4,R5).

There are many different combinations of resistor values that can be used. R3 should low enough to pull the output signal down as far as needed when the circuit is connected to a load. So if the load draws 1mA and the low voltage needed is 0.5 volts, R3 would be 0.5/.001 = 500 ohms (510 standard). When the output is high, Q3 will supply current to the load and also current through R3. If 10 mA is needed for the load and the supply voltage is 12, the transistor current will be 24 mA for R3 plus 10 mA to the load = 34 mA total. Assuming a minimum transistor gain of 20, the collector current for Q2 and base current for Q3 will be 34/20 = 1.7 mA. If the switching levels are 1/3 and 2/3 of the supply (12 volts) then the high level emitter voltage for Q1 and Q2 will be about 7 volts, so the emitter resistor (R1) will be 7/0.0017 = 3.9K standard. A lower value (1 or 2K) would also work and provide a little more base drive to Q3 than needed. The remaining resistors R2, R4, R5 can be about 10 times the value of R1, or something around 39K.

The combination of the capacitor and the feedback resistor (Rf) determines the frequency. If the switching levels are 1/3 and 2/3 of the supply, the half cycle time interval will be about 0.693*Rf*C which is similar to the 555 timer formula. The unit I assembled uses a 56K and 0.1 uF cap for a positive time interval of about 3.5 mS. An additional 22K resistor and diode were used in parallel with the 56K to reduce the negative time interval to about 1 mS.

In the diagram, T1 represents the time at which the capacitor voltage has fallen to the lower trigger potential (4 volts at the base of Q2) and caused Q1 to switch off and Q2 and Q3 to switch on. T2 represents the next event when the capacitor voltage has risen to 8 volts causing Q2 an Q3 to turn off and Q1 to conduct. T3 represents the same condition as T1 where the cycle begins to repeat. Now, if you look close on a scope, you will notice the duty cycle is not exactly 50% This is due to the small base current of Q1 which is supplied by the capacitor. As the capacitor charges, the E/B of Q1 is reverse biased and the base does not draw any current from the capacitor so the charge time is slightly longer than the discharge. This problem can be compensated for with an additional diode and resistor as shown (R6) with the diode turned around the other way.

Source
read more "Transistor Schmitt Trigger Oscillator"

FM Transmitter with 2 Transistor

This FM ransmitter circuits may be tuned to operated over the range 88-108 MHz. Although only low power this circuit can be transmitted with a range of 20 or 30 metres. It's suitable for use as wireless microphone.


This circuit used a pair of BC548 transistors. Although not strictly RF transistors, they still give good results. Use an ECM Mic with a two terminal ECM, but ordinary dynamic mic inserts can also be used, simply omit the front 10k resistor. The coil L1 was again from Maplin, part no. UF68Y and consists of 7 turns on a quarter inch plastic former with a tuning slug.

The tuning slug is adjusted to tune the transmitter. Actual range on my prototype tuned from 70MHz to around 120MHz. The aerial is a few inches of wire. Lengths of wire greater than 2 feet may damp oscillations and not allow the circuit to work. Although RF circuits are best constructed on a PCB, you can get away with veroboard, keep all leads short, and break tracks at appropriate points.

One final point, don't hold the circuit in your hand and try to speak. Body capacitance is equivalent to a 200pF capacitor shunted to earth, damping all oscillations.

Source
read more "FM Transmitter with 2 Transistor"

Tuesday, June 28, 2011

Arduino + Laser Pointer + Servos = Homemade Laser Cannon

After discovering how ridiculously easy it was to control a servo motor from the Arduino, I wondered what 2 servos and a laser pointer could do...



Long story short, I now have a computer controlled laser cannon muhahha!

The whole thing is controlled via serial commands, which let me:
  • Control pitch (Y) and yaw (X)
  • Turn the laser on and off
  • Make the laser flash or not
  • Follow a pre-programmed "sweep" pattern
  • Control whether or not the laser turned off while moving and on again

I started by sending the commands by hand from the Arduino IDE, but then I wrote a Java app that let me control all the options using a GUI, which made things a lot easier. It can also record the position of the laser at given times, and play these back, allowing the laser to follow a path:



Finally, I added some physical aiming controls (two variable resistors to control X and Y). This makes it a lot easier to point it at objects, and I can use it along side the Java interface.

If you want to build your own, the Arduino PDE file is here. There's not much actual "building" required - if you have two servos, Blu Tac them together and sticky tape a laser pointer on the side. I'm using a heavy shot glass as a frim base for mine ;)

The laser pointer and servos drew too much power for my Arduino to handle on its own, so I have them hooked up to an external 4.5V supply. The servos have a separate +V and signal wire so they were easy enough to wire up, but I had to use a transistor to switch the laser pointer.

I'm not quite finished the Java app yet, but if you're interested leave a comment and I'll post what I have so far.
read more "Arduino + Laser Pointer + Servos = Homemade Laser Cannon"