Showing posts with label circuit. Show all posts
Showing posts with label circuit. Show all posts

Thursday, September 24, 2009

Decibel Meter




The circuit below responds to sound pressure levels from about 60 to 70 dB. The sound is picked up by an 8 ohm speaker, amplified by a transistor stage and one LM324 op-amp section. You can also use a dynamic microphone but I found the speaker was more sensitive. The remaining 3 sections of the LM324 quad op-amp are used as voltage comparators and drive 3 indicator LEDs or incandescents which are spaced about 3dB apart. An additional transistor is needed for incandescent lights as shown with the lower lamp. I used 12 volt, 50mA lamps. Each light represents about a 3dB change in sound level so that when all 3 lights are on, the sound level is about 4 times greater than the level needed to light one lamp. The sensitivity can be adjusted with the 500K pot so that one lamp comes on with a reference sound level. The other two lamps will then indicate about a 2X and 4X increase in volume.
In operation, with no input, the DC voltage at pins 1,2 and 3 of the op-amp will be about 4 volts, and the voltage on the (+) inputs to the 3 comparators (pins 5,10,12) will be about a half volt less due to the 1N914 diode drop. The voltage on the (-) comparator inputs will be around 5.1 and 6.5 which is set by the 560 and 750 ohm resistors.
When an audio signal is present, the 10uF capacitor connected to the diode will charge toward the peak audio level at the op-amp output at pin 1. As the volume increases, the DC voltage on the capacitor and also (+) comparator inputs will increase and the lamp will turn on when the (+) input goes above the (-) input. As the volume decreases, the capacitor discharges through the parallel 100K resistor and the lamps go out. You can change the response time with a larger or smaller capacitor.
This circuit requires a well filtered power source, it will respond to very small changes in supply voltage, so you probably will need a large filter capacitor connected directly to the 330 ohm resistor. I managed to get it to work with an unregulated wall transformer power source, but I had to use 4700uF. It worked well on a regulated supply with only 1000uF.

ref: bowdenshobbycircuits.info/page8.htm#db.gif

Saturday, September 12, 2009

Rain Detector


This rain detector will give you a heads-up the instant it starts to rain, hopefully giving you time to close windows and bring in possessions. The battery-powered circuit draws virtually no current when the sensor is dry and the current consumption is low when the buzzer is activated so a couple of AA cells will last a long time. Alternately, a molded power supply with a simple voltage regulator to drop the voltage to 3 volts could be used. The circuit is basically a handy flasher circuit that operates well on only 3 volts using ordinary silicon transistors. When the circuit is triggered, the buzzer is pulsed about once per second for a very short time, giving it a "dripping water" sound which seems appropriate. A slower, longer beep may be had by increasing the 1 uF capacitor. The 10 k resistor may be increased for a longer beep time without decreasing the beep rate but at some point the circuit will cease to function properly, depending on the gain of the transistors.
schematic
I
Parts Considerations:

  • Just about any transistors will work but if you choose to use older, low gain transistors in metal cans just because they are so good looking (like I did), it might be best to try a 4.7 k and 2.2 uF in place of the 10 k and 1 uF. (I had no trouble with a 2N2222 and 2N2906 with the values shown but those are modern types.)


  • The resistors are not critical at all and any type or size should work fine and reasonable close values are OK although the values shown are quite common.


  • The 1uF capacitor may be just about any type, with a 16 volt aluminum electrolytic being the most likely choice. The capacitor will see about 1/2 volt reverse bias at times so a 10 volt or higher tantalum capacitor is a better choice; they can handle about 10% of their rating in reverse. A non-polar ceramic capacitor is also a good choice but don't hesitate to use a cheap electrolytic since there is a large resistor in series limiting the reverse current and this isn't exactly a deep space probe!


  • The 0.1uF is not critical at all and my circuit works just fine without it. It is there in case the buzzer's noise tended to retrigger the circuit.


  • The switch is any single-pole, single-throw type. My switch, grabbed from the surplus bin, has an unnecessary spring-loaded momentary position, too. I wired it to supply power to the circuit in both positions with the idea that the "test" position is for determining if the sensor has dried sufficiently to turn the circuit back on. Just an excuse to use the switch!


  • The batteries are just AA alkaline cells with wires directly soldered to the ends for connections. Directly soldering to a battery is a delicate process and I recommend a battery holder for the less experienced solderer. You must make the joint very quickly or the battery will be damaged! Don't dwell on it!


  • The buzzer is a 1.5 to 3 volt, 15 mA "mini buzzer" purchased at Radio Shack.


  • The copper-plated nails are available at most hardware stores. Mine are 1.4 mm x 19 mm (3/4").

The circuit is built on perforated circuit board and mounted in a little plastic box:

Neither the construction or the components are critical but I do recommend a connector for the sensor to make it easy to work on the box. I used an ordinary 1/8" earphone style connector.
The rain sensor may be built any number of ways and is simply two conductors that are bridged by the rain water. A simple sensor is shown below. Two conductors of bare copper wire are woven through the holes so that the conductors are near each other but do not come into contact. Notice the holes each conductor uses are staggered so the loops underneath miss each other. Ordinary phone cable is used to connect to the electronics.

The sensor above will last a reasonable length of time but a more permanent design is shown below:


Here it is after 18 months or so:

It's still working fine but showing some
signs of age.

This probe will cost at least 6 cents! It consists of a penny and nickel sandwiched together with a plastic insulator in the middle. Rain drops bridge the gap between the coins, triggering the circuit. The unit is quite weatherproof and should last for years. Here's how to make it:
First, drill a small hole in the center of a penny just big enough for a copper plated nail to pass through. Solder the head of the nail to the penny with a complete fillet to seal out the rain. Now find a fairly thin sheet of plastic slightly bigger than the penny. Possible sources include the lid from a drink bottle or a lid from a peanut jar. I used a flat section of plastic from a bubble packaged product. (My particular choice was quite thin and the sensor takes a long time to dry out. ) Coat the plastic with spray adhesive and push the nail through, gluing the plastic to the underside of the penny. Once the glue has dried, use scissors to carefully trim the plastic flush with the penny. The goal is to form an insulating washer the exact size of the penny. Now drill a larger hole in the center of a nickel, perhaps 1/4". Wrap the nail with tape to mask it and spray the exposed face of the plastic washer with glue. Stick the nail through the nickel to make a penny, washer, nickel sandwich. Position the penny right in the center of the nickel and let the glue dry.

Once the glue has dried, remove the masking tape from the nail and fill the gap between the nail and the nickel with epoxy. Cut the nail short with a pair of old cutters or the cutter on a pair of pliers (not your best electronic wire cutters) since the core of the nail is steel. To avoid stress on the epoxy, don't hold the nickel as you cut the nail; hold your hand below and catch it as it falls. Solder one conductors of a length of phone wire to the nail and the other to the nickel as shown in the photo. Do not solder the wire to the nickel close to the edge as I did in the photo; that wire had to be moved in toward the center to prevent interference with the housing. Cut an arbitrary length of 1/2" PVC electrical conduit to form the housing; three or four inches is fine. Make sure one end is perfectly flat and straight. Coat that end of the pipe with epoxy and feed the wire through to glue the nickel in position. Once that has cured, turn the assembly over and pour a tablespoon or two of epoxy into the tube to get a really good seal. I decided to shove a few shipping peanuts into the hole to form a plug and poured in more epoxy to get a flush seal so that insects can't build a nest inside and surprise me later. Lead the wire inside the house to the electronics, leaving a hanging loop near the entry point to prevent water from following the wire inside, add a connector and that's it. This probe should be quite weatherproof but it may need an occasional cleaning if debris collects between the edges of the coins.

For historical purposes, I include my old design below. The circuit will run the batteries dead if it rains while you are away so a molded power supply is a better choice. For connection to a computer, I recommend replacing the beeper with an optoisolator to protect the computer. The LED in the optoisolator would be connected in series with an appropriate resistor, perhaps 470 ohms and the output transistor of the optoisolator would be connected to a suitable input port with a pull-up resistor to the computer's 5 volt supply. The simple serial port interface might be an interesting starting point. With a similar basic program one pin could be set to provide the voltage for the optoisolator and another pin could read the status.
It may sound silly at first. After all, how hard is it to look outside to see if it is raining. But if you start to pay attention, you will be surprised how often you miss the start of a rain storm. With this simple rain detector, the first few drops of rain will sound the alarm allowing you a few precious seconds to roll up windows and bring in possessions. When used as part of a computer weather data collection system, the exact time of a shower may be recorded. Fig.1 shows a simple rain detector consisting of two strips of aluminum foil glued to a piece of plastic. A single square of foil is glued to the plastic with two lead wires underneath as shown in the figure. The lead wires are striped back so that the foil makes good electrical contact with the conductors but the bare wire should not protrude so that the foil will protect the wire from corrosion.

A narrow zig-zag gap is cut in the foil to electrically separate the two lead wires. The rain drops bridge the gap causing conduction which is sensed by the circuit shown in fig. 2.


ref: http://www.techlib.com/electronics/raindetectors.htm

Telephone In-Use Indicator


Phoneuse.gif (8699 bytes)

When a new computer modem enters the household, the demands on the home phone line skyrockets. The Internet surfer can use phone time on a par with the most talkative teenager. And the computer modem user can be quite sensitive about his privacy: simply lifting another receiver can knock him off-line causing emotional stress. The phone wiring may be modified so that the modem is always in control by connecting the phone line directly to the modem and connecting the rest of the phones to the modem's "phone" jack. But this solution gives the computer user too much power over the phone line and it doesn't solve the problem if two computers share a single line. Here is a simple blinking LED circuit which will alert users when the line is in use before the receiver is lifted. The circuit loads the phone line so lightly that it meets the on-hook telephone equipment leakage specification and the short lamp flashes draw very little current from the nine-volt battery. One of these devices may be placed at each extension without significantly loading the phone line. The circuit is connected to the red and green wires for a single-line system or the yellow and black wires for the second line in a two-line system. Polarity doesn't matter, thanks to the full-wave rectifier. In order to preserve your phone line balance, do not power this device from a line-powered power supply. Only use a battery as shown and insulate the battery and circuitry by building the device into a plastic case. Do not ground the circuitry. The circuit will work with other batteries and battery voltage. Four AA, C, or even D cells (6 volts) will last considerably longer if you have teenagers burning up your batteries. A small 9-volt rectangular battery will be fine for most users.

Notes:


The diode bridge eliminates polarity concerns. It may be left out but the wires to the phone line may need to be reversed if the circuit doesn't work properly.

The 22 megohm resistors are sufficiently high to meet phone circuit leakage specifications.

A 2N4401 will usually work in place of the MPSA-18 but if the transistor gain is too low the flashing will not stop.

ref: techlib.com/electronics/telephone.html

Tuesday, September 8, 2009

MCU Control Motor Speed and Direction

This the DC motor controls circuit with a signal MCU. By can control DC Motor 24V can fine the speed of motor with pulse and timer (MCU). This circuit composes transistor and power mosfet (MBR1045). Then motor driver has been verying and still have the circuit changes the direction of motor Reverse Rotation get Relay 24V 20A get back to electricity pole has with. The detail is other , see in the circuit.

Source: aircraftdesigner

Electronic Time Constant Control


These circuits show methods of changing the operating frequency of astable LM555 timers electronically. Any source that can drive the base of transistor Q1 can control these circuits. The advantage of using this type of frequency control is that the duty cycle of the timer is not affected when the frequency is changed. [...] Read more Source: http://home.cogeco.ca/~rpaisley4/LM555.html

Monday, August 17, 2009

Sun-Up Alarm


The Sun-Up Alarm can be used to provide a audible alarm for when the sun comes up or it can be used in a dark area and detect when a light comes on. It can also be used to detect a light beam, headlights etc. The circuit works as follows. The phototransistor is very sensitive to light. (Any phototransistor will work fine) The sun shining on this device will provide a high to one of the NAND gates. This will cause another NAND gate to oscillate which will drive another gate to output a 100hz tone. The transistor provides drive for the speaker.

IR Remote Control Jammer

Description:
Don't like your little brother's TV channel selection? Hate the volume your wife sets the stereo at? Want to just annoy someone? This circuit does all that and more by jamming most IR remote signals. The circuit releases a flood of pulsing IR light that confuses the reciever by corrupting the data stream.
Notes:
You may need to adjust the value of R3 for the right frequency. A pot can be used.
You may only need one IR LED.
It goes without saying that this circuit should be used with descretion.
The value of R5 depends on your supply voltage and LED. For a standard 4.5V supply and standard IR LED, use 22 Ohm as specified on the parts list.

AM reciever

Description:
This is a compact three transistor, regenerative receiver with fixed feedback.
It is similar in principle to the ZN414 radio IC which is now no longer available. The design is simple and sensitivity and selectivity of the receiver are good.

Notes: All general purpose transistors should work in this circuit, I used three BC109C transistors in my prototype.The tuned circuit is designed for medium wave. I used a ferrite rod and tuning capacitor from an old radio which tuned from approximately 550 - 1600kHz. Q1 and Q2 form a compund transistor pair featuring high gain and very high input impedance. This is necessary so as not to unduly load the tank circuit.

The 120k resistor provides regenerative feedback,between Q2 output and the tank circuit input and its value affects the overall performance of the whole circuit. Too much feedback and the circuit will become unstable producing a "howling sound". Insufficient feedback and the receiver
becomes "deaf". If the circuit oscillates,then R1's value may be decreased; try 68k. If there is a lack of sensitivity, then try increasing R1 to around 150k. R1 could also be replaced by a fixed
resisor say 33k and a preset resistor of 100k. This will give adjustment of sensitivity and
selectivity of the receiver.

Transistor Q3 has a dual purpose; it performs demodulation of the RF carrier whilst at the same time, amplifying the audio signal. Audio level varies on the strength of the received station but I had typically 10-40 mV.
This will directly drive high impedance headphones or can be fed into a suitable amplifier.

Construction:
All connections should be short, a veroboard or tagstrip layout are suitable. The tuning capacitor has fixed and moving plates. The moving plates should be connected to the "cold" end of the
tank circuit, this is the base of Q1, and the fixed plates to the "hot end" of the coil, the juction of
R1 and C1. If connections on the capacitor are reversed, then moving your hand near the capacitor will cause unwanted stability and oscillation.

Finally here are some voltage checks from my breadboard prototype. This should help in determining a working circuit:-
All measurements made with a fresh 9volt battery and three BC109C transistors with respect to the battery negative terminal.
Q1 (b) 1.31V
Q2 (b) 0.71V
Q2 (c) 1.34V
Q3 (b) 0.62V
Q3 (c) 3.87V