About Me

My photo
Electrical Engineer . My interests include reading and philosophy.

Sunday, April 24, 2011

LM1830 based liquid level indicator circuit

LM1830 is a monolithic integrated circuit that can be used in liquid level indicator / control systems. Manufactured by National Semiconductors, the LM1830 can detect the presence or absence of polar fluids . Circuits based on this IC requires minimum number of external components and AC signal is passed through the sensing probe immersed in the fluid. Usage of AC signal for detection prevents electrolysis and this makes the probes long lasting. The IC is capable of driving a LED, high impedance tweeter or a low power relay at its output.
liquid level sensor
Low liquid level indicator (LED)
The circuit of a low liquid level indicator with LED is shown above. Capacitor Ct sets the frequency of the internal oscillator. With the give value of C1 the frequency will be around 6KHz. Capacitor Cb couples the oscillator output to the probe and it ensures that no DC signal is applied to the probe. The circuit detects the fluid level by comparing the probe to ground resistance with the internal reference resistor Rref.
When the probe to ground resistance goes above the Rref the oscillator output is coupled to the base of the internal output transistor making it conducting. The LED connected to the collector (between pin 12 and Vcc) is driven. Since the base of the transistor is driven using the oscillator, actually the transistor is being switched at the oscillator’s output frequency @50% duty cycle. There is no problem in driving the LED using AC signal and this method is very useful when it comes to use a loud speaker as the indicator. Loud speakers can be driven only by using AC signals and a DC signal will not produce any sound out of the speaker. The circuit diagram of a liquid level indicator using loud speaker at its output is shown below. The circuit is similar to the first circuit except that the LED is replaced by a loud speaker and the load current limiting resistor is changed from 1.2K to 1.5K.
low liquid level alarm
Low liquid level warning (audio)
Notes.
  • The circuit can be assembled on a Perf board.
  • I used 12V DC for powering the circuit.
  • Maximum supply voltage LM1830 can handle is 28V.
  • The tweeter I used was of a 16 ohm type.
  • The relay I used is a 200 ohm/12V type.
  • Maximum load current Q1 (2N2222) can handle is 800mA.
  • The switching current/voltage ratings of the relay must be according to the load you want to drive using it.
  • It is recommended to mount the IC on a holder.

Read more: circuitstoday.com/liquid-level-indicator#ixzz1H1t0SpU7

AMPLIFIER

THE DESIGN PRINCIPLES OF SMALL SIGNAL AMPLIFIER

Let's look at one example of a small signal amplifier, perhaps of the type to follow the previous buffer amplifier. We will assume we are buffering and amplifying our signal from thevoltage controlled oscillator tutorial. In those examples we were generating and buffering 1.8 to 2.0 Mhz signals for the 160M band.

A PRACTICAL EXAMPLE


This image is copyrighted © by Ian C. Purdie VK2TIP - small signal amplifier
Fig 1.

Here I've used a pretty standard and cheap transistor for our small signal amplifier. This transistor has some pretty impressive characteristics though.
The configuration is much the same as other class "A" amplifier designs covered in previous tutorials.
The output circuit consists of a low pass filter network which also converts the desired output impedance we want Q1 to see to our standard 50 ohms output.
The 100 ohm resistor, RFC XL2 and the 0.01 uF capacitors are purely for decoupling purposes i.e., to keep RF out of the small signal amplifier power supply as well as other stages. Let's consider firstly the input circuit of our small signal amplifier.
Q1 is biased for DC conditions by R1, R2 and the emitter resistor of 270 ohms in this instance. Alert readers will be aware I like to bias the base voltage of my transistors to about 25% of Vcc (.25 * 12V) or 3V. It follows then that R1 will be about 3 times the value of R2 - think about it!. If the base voltage is around 3V then the emitter voltage is going to be 3v - 0.65V = 2.35V. Don't follow that? Go back to class "A" amplifier designs covered in previous tutorials.
If the emitter voltage is 2.35V approx. then the emitter current Ie through the emitter resistor of 270 ohms must be (from ohms law) 2.35 / 270 = 0.0087 or 8.7 mA. I've also said elsewhere I like base current to be about 1/7th of emitter current - alright these are my foibles and others would disagree. They're welcome to write their own papers.
So base current is going to be about 1 mA and seeing R1 + R2 are connected across 12V it follows that (from ohms law) R1 + R2 = 12V / .001 = 12,000 ohms or 12K. For biasing R1 is 3 times R2 so using simple maths R2 is 25% or 3K and R1 would be 9K which are not necessarily readily available standard values. We will make R2 = 3K3 and R1 = 10K which if you do all your sums is near enough and probably about a third of the values others might use.
So we have our DC conditions satisfied and the 0.01 capacitor in parallel with the emitter resistor means for RF purposes the emitter is at ground potential. This then leaves the output circuit to be discussed. The 22 ohms resistor in the collector circuit is there to discourage parasitic oscillations. RFC XL2 as I said before is only to decouple the power supply and I'd look for a reactance of around 20,000 ohms or at 2 Mhz something like 1 to 2.5 mH.
All this leaves is our low pass filter matching network. First question?? How much output power do we want? Huh? Yep that's how it all works.
Let's say we wanted +17 dBm for a mixer circuit. To the uninformed +17 dBm is a power relationship in milli-watts. Power is always (10 * log of power) so in this case in reverse we divide the 17 by 10 to get 1.7 which is the log of 50 so it follows that +17 dBm is in fact 50 mW of power. Learnt something?
Incidentally a power level of 50 mW into 50 ohms also equates to Erms = SQRT ( 0.05 * 50 ) or 1.58V RMS or 2.828 times that value to get pk-to-pk, which is 4.47V PK-PK.
Alright how do we design to get 50 mW out of our amplifier? By using the formula R = Vcc2 / (2 * Po) or in our case [ (12V * 12V) / (2 * 0.05) ] = 1440 ohms. Want more power? Change the numbers! Obviously there are limits but you get the idea.
From the above the collector needs to see a load of about 1440 ohms which in turn has to be transformed into our 50 ohm load. By the way, if the amplifier doesn't see a 50 ohm load then all these calculations go right out the window. At the end I show my method of ensuring something like a 50 ohm load and more important the method helps the succeeding stage see a 50 ohm source.
If you have done previous tutorials on filters this is easy. If not then you need to do more work. This is a simple "L" network low pass filter designed in this case to transform 1440 ohms to 50 ohms. Follow these steps where SQRT signifies square-root-of:
1. XL = the SQRT of [(R1 * R2) - (R1 * R1)] = SQRT [(50 * 1440) - (50 * 50)] = SQRT [ 72,000 - 2,500] = SQRT of 69500 = 263.6 ohms
2. Xc = [(R1 * R2) / XL] = 72,000 / 263.6 = 273 ohms
Therefore the reactance of our inductor is about 264 ohms at our frequency of interest and the reactance of our capacitor is about 273 ohms at that same frequency. In the beginning I mentioned a requirement for a 1.8 to 2 Mhz small signal amplifier so we will nominally use 2 Mhz as our cut off frequency i.e. we want to pass all signals below about 2 Mhz but not above (filter out harmonics!).
Here I always see what capacitor has a reactance of 273 ohms at 2 Mhz using the standard capacitive reactance formula Xc = 1 / (2 * pi * Fo * C). Which when algebraically rearranged for our purposes becomes C = 1 / (2 * pi * Fo * Xc ). Slipping 273 ohms for Xc into that formula and 2 Mhz (2,000,000) should get you on your calculator 2.91.. -10 which should then be multiplied by exp 12 to arrive at an answer in pF. Doing that we get an answer of 291 pF which doesn't exist in the real world.
Now you have several choices here. (a) just plonk nearest standard components in for XL and Xc and don't worry about tuning - not recommended. (b) make part of Xc variable e.g. Xc comprises a fixed 270 pF capacitor with a 5 - 50 pF trimmer in parallel or (c) make Xc fixed and XL variable. You can only use the latter option if you have suitable slug tuned inductors available (they ain't cheap but could possibly be salvaged if you know what you are doing).
In the event you chose option (b) the required fixed inductor would be determined from the inductive reactance formula XL = (2 * pi * Fo * L). In ALL examples I use 6.2832 for 2 * pi. For our example we can again rearrange the formula as L = XL / (2 * pi * Fo) and plugging in this case 263.6 ohms XL from above and 2 for 2 Mhz we get L = 263.6 / (6.2832 * 2) = 20.98 uH. That is the inductance you would use, possibly with 60 turns of #26 wire on a T68-2 toroid as only one example.
If you elected method (c) - and this is really cool - I would look back at the capacitor required i.e. 291 pf, use the next lower value which is 270 pF and slot in a variable inductor which will tune through 20.98 uH. Feed a suitable signal to the amplifier, ensure the amplifier is terminated in a suitable fixed 50 ohm load (two 1/2 watt 100 ohm resistor in parallel = 50 ohms) and watch the output on a scope as the slug is adjusted. Wow! In fact you should get a similar effect with the variable capacitor method in (b). Certainly you will then understand why method (a) sucks.
I mentioned earlier how I ensure a 50 ohms load and succeeding stages see a 50 ohms source. I use a 50 ohm 3 dB attenuator. This is a resistive pi network attenuator which consumes 3 dB of power but represents a constant load. You put it in circuit after the last 0.01 uF coupling capacitor after the output.

This image is copyrighted © by Ian C. Purdie VK2TIP - resistive 3 dB 50 ohm attenuator
Fig 2.

Now the downside. It consumes power. At - 3 dB that's half the power!!! What the hell just do your sums all over again to produce 100 mW from the amplifier. I would!
In this event your collector load is now 720 ohms, Xc = 197 ohms and XL = 183 ohms. At around 2 Mhz they translate into 403 pF (use 390 pF) and about 14.6 uH.
See - dead easy!

Ref: http://my.integritynet.com.au/purdic/small-signal-amplifier.htm

Small Electronic Projects

This Post is about small electronics projects, which may be implemented as semester projects for Engineering students.

Monday, February 28, 2011

song

Apni Si Lagti Hai
RadioReloaded.com | Download thousands of MP3s




Friday, January 21, 2011

Saturday, January 15, 2011

Bring happiness...

css subjects....

Compulsory Subjects
1.
100
2.
100
3.
100
  General Knowledge
4.
100
5.
100
6.
100
Total Marks:
600

Optional Subjects:

(subjects carrying a total of 600 marks to be selected) 
Group A
Subjects carrying not more than 200 marks can be opted.
Note: Business Administration cannot be opted in combination with Public Administration 
1.
200
2.
200
3.
100
4.
100

Group B
Subject/s carrying not more than 200 marks can be opted.
1.
200
2.
100
3.
100
4.
100
5.
100

Group C
Subjects carrying not more than 200 marks can be opted. 
1.
200
2.
200
3.
100
4.
100

Group D (Science Subjects)
Subjects carrying not more than 200 marks can be opted. 
1.
200
2.
200
3.
200
4.
200
5.
200
6.
200

Group E (History Subjects)
Subjects carrying not more than 200 marks can be opted.
1.
200
2.
200
3.
200
4.
200
5.
100

Group F
Subjects carrying not more than 200 marks can be opted.
Note: International Law CANNOT BE opted in combination with International Relations
1.
200
2.
100
3.
100
4.
100
5.
100
6.
100

Group G
Subjects carrying not more than 200 marks can be opted. 
1.
200
2.
200

Group H (Regional Languages)
Subjects carrying not more than 200 marks can be opted.
Regional Languages: Not more than one of the 4 subjects can be opted. 
1.
100
2.
100
3.
100
4.
100

Group I:- (National and Foreign Languages)
Subjects carrying not more than 200 marks can be opted.
National/Foreign/Classical Languages: Not more than one of 4 subjects can be opted.
Note: Urdu can not be combined with Regional Languages. 
1.
Arabic
200

focus.....

Beginners Guide to CSS Competitive Examination

Please follow in order as directed.
  1. To check your eligibility you need to have a look at CSS Rules
  2. To know syllabi you need to browse CSS Syllabus
Once you browse the above links certain problems or questions would crop out in your mind. These are those certain problems, which we confront when we aspire to take CSS exams. These are:
  1. What optional subjects should I opt?
  2. Am I competent enough to take CSS exams?
  3. What is sufficient time span for preparation?
  4. How much should I study?
First we deal question 1:
There are two perspectives:
  • Optional subjects about which we learn that they are high scoring subjects.
  • Optional subjects about which we learn that they are not that high scoring subjects.
Perspective A:
No denying the fact that there are certain subjects, which are really marks yielding these subjects include all science subjects such as pure math, applied math, physics, computer sciences… and other subjects such as mercantile law, accountings etc. To analyze this perspective one should consider these points:
  • One's aptitude concerning the subject.
  • One's skill concerning the subject.
  • One's capacity concerning enhancement one's capability in the subject.
Who should opt these subjects?
Anybody who says ‘yes' to all above questions should go for these subjects.
It is reality that there is no surety that one earns a bachelor's or master degree in any of the these disciplines with enthusiasm or keen interest. Most of us earned our degrees without reckoning our aptitude. Or we go for a discipline, which is in “fashion”. Or sometimes we are left with no choice-a Hobson's choice. In CSS mater is quite different here we do not have to earn a degree rather we have to grab excellent marks. If these subjects are marks yielding; it is realty too that these are one of those subjects, which can't be solved with general knowledge. General knowledge is a tool or open seism for success in subjects fall in category of humanities. One of the best ways to analyze one's capabilities in natural sciences subjects is to review past 10 years papers in this way one can easily understand the prospective problems and rate of success. By reviewing past 10 years papers one can easily calculate how much diligent efforts are required to get excellent marks in the subject. Please neither underestimates nor overestimates your competence. In case of overestimation none would endure loss but only you. Underestimation is somewhat good because it would work as impetus for hardworking. Most important thing in opting these subjects is your aptitude. Higher the aptitude higher would be the rate of success.
Remember in old days only physical strength was a tool to get success; physical strength was replaced by intelligence; intelligence was replaced by hardworking; hardworking was replaced by power of self-administration.
So only criterion of success is to administer yourself; administer your aptitude, administer your intelligence and ultimately administer your power to endure tough times.
Perspective B:
This perspective does not hold water because of the fallowing facts:
  • No subject is low scoring if one is well prepared.
  • Only requirement to get high score is to know how to deal that subject.
  • Your aptitude is your strength; higher the aptitude higher would be success rate.
For instance, it is said that constitutional law is too easy subject but as low score as 2 has been recorded in this subject. Intriguingly in the same subject numbers of aspirant have scored more than 80%.
As said before your aptitude is your strength and next step to get excellent marks is to administer your aptitude. Only advice that could be given is to evaluate your aptitude precisely. Point is to put effort. Remember any subject either belongs to natural science or social science would be of no use if you have no aptitude or interest. Lower the aptitude higher would be boredom; higher would be boredom higher the difficulty in dealing the subject and ultimately higher stamina would be required to borne that subject. So please do not waste your vitality just in digesting perceived monotony a subject.
Last but not least point in opting optional subjects is to evaluate scope of subjects. Go for that subject where you have adequate interest coupled with relatively shorter syllabus instead of that subject where you feel too aptitude coupled with too much syllabus. Here the most important constraint is of time constraint if you have a year for preparation you could choose latter option but if you do not have enough time formal option would be better.
Now time to deal second question.
Am I competent enough to take CSS exams?
There are indeed some apprehensions such as:
  • I have never enjoyed creditable academic record.
  • My English is not that high.
  • I am not confident.
Can I offer what this endeavor demands?
You can cope any kind of apprehension if you have high will compound with logic. If there is a will there is a way! What you have to do is to draw a strategy or a plan with different milestones you job is to cross milestones within time. For instance your milestones (which could be interpreted in term of prerequisite of success) could be these:
  • Milestone 1: I have to get English proficiency (say first 3 moths).
  • Millstone 2: I have to develop analytical characteristics (say within 2 months).
First you have to draw your strategy; strategy is how you define you ‘problem statement' that is you define what you have to do in order to achieve you objective the second part which is most important is to execution of strategy that is your work on “how” part of your problem. Remember do not render strategy making “a brown study” or building castle in air. You strategy should be feasible and must be realistic or workable. Again please do not overestimate yourself.
You can do any thing what any other single human being can do. If you feel that you take more time as compare to any other person or just simple that you can't grab things fast do not bother yourself remember the essence that ‘YOU CAN DO WHAT OTHER CAN DO!' instead of taking time span a predicament. But time span should be realistic such as if one can do a piece of work in 1 day you must be able to do that work in 3 days anyhow that different must keeps dwindle as time passes and you should be able to do that work in 1 and half day.
Beside aforementioned stuff following are other imperatives that are of equally importance:
  • English language proficiency
  • Grasp on current affair
  • Analytical capabilities
What role English language proficiency plays is as obvious as one's existence.
About grasp on current affairs I would like to quote Yahya's statement that if one has no grasp over current affair one no need to bother oneself to take exams. Yahya scored 37 th position in 2003 CSS exams. Yahya statement holds water in very circumstances and one can easily validate his statement if one has gone through paper pattern of 2005 CSS exams; even Islamyat paper was not devoid of current affairs.
Analytical mind plays decisive role in one's success FPSC has too changed her course from encouraging rot learning to appreciate analytical mind. If you do not have analytic skill it would be very difficult to attempt paper with reason and logic. If your paper has no show of mind you cant expect any bright success. Anyhow to develop analytical skill is not too difficult you just need to read what one says and put argument accordingly. First you would face difficulty to pen argument but you can learn from editorials or opinions of newspaper where writer always support her option only on bases of logic. You can easily judge that different writers support their points on different ground and they often vary from each other if endorse one policy other endorse any other policy you can judge that on what points one endorse a specific policy and on what points one oppose that policy. Another way is to develop these skill is to discuss contemporary affairs with your friends, go to chat room try to get opinions of different people who belong to different regions argue with them on specific points through this way you can easily gather different viewpoints such as American view, Iraqi, Indian view on specific issues. Remember learn how to acknowledge true reason; do not dare stick to your point if one provides enough logic to support her point instead of your insistence on your viewpoint, which is averse of logic.
Now to deal question: What is sufficient time span for preparation?
No one can predict accurate time span it could be from 6 month to 3 years. All is what academic background you have what kind of skills you have what is your rate to grasp concept.
  • If one has to start from scratch but possessing good metal capabilities rough estimation is of 1 year.
  • If one has to start from scratch with not too good metal capabilities rough estimation is of 1½ to 1 year.
  • If one need not to start from scratch and possessing good metal capabilities rough estimation is of 6 months.
Thing is this is you who has to gauge your skills precisely on one can better predicate time span for preparation but only you. Another thing is this time span is estimated with viewing of getting good positions. There could be no time span if one claims oneself a fatalist and insist to enjoy the aftermaths of one's adventure based on “high stars” rather than on deliberation.
How much should I study?
Answer of this question strictly depends on your choice of time span coupled with your metal capabilities. Whatsoever time span you chose as suggested above (in second last question) you need to study from 6 to 8 hours on daily basis.