Monday, September 21, 2009

Important things to know about REF ( Restricted Earth Fault Relays)

Why REF required?????
REF protection applied on transformer in order to detect ground faults on a given winding more sensitively than overall differential protection able to do.

On which principle they based ?????
The principle of comparison of measured variables by comparing the residual current of the phase CT of the given winding with the current associated with ground star point.

Why residual current occur????? or why CT saturated???
Saturation Saturation is the sudden variation of material permeability from high value to low value at the point known as the saturation bend.

In case of saturation induction then increases only slowly and Ie ( excitation current ) deforms to form peak.

Why stabilizing resistor inserted in the differential path for REF relay ???
If any CT ( phase CT or neutral CT ) get saturation (due to DC component of current during trafo energization (Inrush current)) .
So CT 's high magnetizing inductance breaks down to low value determined by permeability of air.
Differential current or residual current caused by CT saturation does not flow completely through differential path (due to high Impedance in path) but flows through low magnetizing inductance of saturated CT.
Hence insertion of resistance has a restraining effect.
Voltage across stabilizing resistance at Max. through fault = Max. through fault current ( CT resistance + 2 * Cable resistance )

BTW we are never allow to saturate our CT's by selecting proper knee point voltage.

High and Low Impedance Relays

Both low impedance & high impedance are working in merz.-prize circulating current principle (i.e) under normal operating condition, incoming and out going current remains the same and hence no current flows through the relay operating coil.

Basic difference lies in how we are achieving the stability for external faults.

In low impedance relays, we have bias characteristics.Based on the external fault magnitude, bias increases.(in our
static relays, bias current is the average of incoming and outgoing currents) Operating current of the relay should exceed the setting current and the bias current.During internal fault condition all the current converges and hence operating current increases more than the bias and the relay operates.

In high impedance relays, stability is achieved by the external resistors connected in series with the relay operating coils and making it as voltage dependent.(this is why we call it as high impedance relays).Resistance should be calculated in such a way that the relay will not operate for the external fault (with one CT becoming completely saturated).

Monday, September 14, 2009

Electrical Interview Questions

  1. Tell us about your background.
  2. Your short term goals
  3. Your long term goals
  4. How can we trust if you stay with our organisation.
  5. GIS: Was there separate LCC and relay panels.
  6. What projects you have worked before?
  7. Why you want to work for us?
  8. What did you do in your particular job profile.
  9. How were you placed in that job profile
  10. Were you assisting or were you leading the team?
  11. Which group you would like to join - Relay, Automation, Electromechanical or Civil. and Why?

Electrical Interview Questions for Relay Protection Engineering III

  1. Have you also worked on Motor or generator protection or it is only transmission and distribution?
  2. What different kind of relaying you have worked with?
  3. Did you also work with Electromechanical relays?
  4. 78% of relaying is still electromechanical.
  5. Can you explain how do you order the relay from the Step 1 to commissioning?
  6. What type of relay you have used for SEL?
  7. What kind of protection is there for Line?
  8. Ok, it is distance.
  9. what is the distance protection philosophy?
  10. How many zones are there?
  11. Can you discuss the characteristic of the zone?
  12. How can you plot it on the paper?
  13. Where will be the protected line on the characteristic?
  14. What angle you can see the protected line?
  15. Can you discuss where will be the Remote line in this cureve?
  16. Where can you see the other lines on the R-X characteristic?
  17. Are you aware of line differential?
  18. What is the principle for the line differential?
  19. How does the differential takes place?
  20. Are you aware of POTT or DUB?
  21. Have you used them in your project?
  22. Which software you have used for ABB, simens for relay setting.
  23. What is REF?
  24. Why is it necessary?
  25. Why the differential relay cannot protect it?
  26. What is the philosophy of REF?
  27. Does it depend on the grounding?
  28. Are you aware of symmetrical components?
  29. Why are they used?
  30. What is the purpose of using symmetrical components?
  31. How you can measure fault using hte symmetrical components?
  32. What is unbalanced and balanced fault?
  33. Is 3Ph a balanced fault?
  34. Then what can be the unbalanced fault?
  35. How do you read the Voltage and current?
  36. How can you say that they are balanced?
  37. How can you make a graph of it?
  38. How is a displaced wrt b and wrt c?
  39. At what angle?
  40. what shall be the order of the abc?
  41. Can you give the example where you do phase chagne?
  42. What about the motor?
  43. How do you revrerse the direction?
  44. What did you study in your undergrad?
  45. What all things you learnt as a course work there?
  46. What are your goals 5-10 years down the line?
  47. can you explain the gap in your service?
  48. Have you worked on Aspen, Mathcad, before?
  49. We only work with SEl relays.
  50. What all books you have read for the relays?
  51. How did you learn the relay setting?
  52. How did you cross check the relay setting.
  53. Do you do hand calculation for hte relay setting?
  54. How was you site experience?
  55. Did you assist somebody or helped somebody for relay commissioning.
  56. How exactly you have worked on site?
  57. I am kind of surprised, how can you commission so many relays in 5 years.
  58. What kind of projects do you have?
  59. Have you read the papers from SEL ?
  60. How good are you with making presentations?
  61. Have you made presentation before?
  62. How good are you writing technical papers?
  63. How did you learn all this?
  64. What motivates you to work for us?
  65. What kind of load shedding knowledge do you have?
  66. How much familiar are you with Mark VI and load shedding at generation end?
  67. What application you have seen?
  68. Mainly you can focus on doing relay setting from the HMI?
  69. Can you explain your recent relay setting, how did you do it exactly?
  70. Did you make all calculations by yourself?
  71. Somebody else did for you?

Saturday, September 5, 2009

Load Flow Models are based on Static Network Model.

Utilities use real-time on-line models in SCADA for the optimization of generation, VAR control, losses, and tie-line control.

A load-flow study is carried out to determine the steady-state bus voltages, active
and reactive power flows, transformer tap settings, component or circuit loading,
generator exciter regulator voltage set points, system performance under contingency or emergency operations, and system losses.

Load flow can also be used to determine voltage profile at the time of starting a large motor. The starting motor is modeled as a constant-impedance shunt with the X/R ratio based on a locked rotor or starting power factor. The load-flow case is run with the starting motor disconnected, and the voltage at the relevant buses is recorded. The starting-motor locked-rotor impedance
is connected as a shunt, and the new case is run. The difference in voltage at any bus
is the voltage drop at the instant of starting the motor.

Two algorithms, Gauss-Siedel and Newton-Raphson, are used to solve the loadflow
equations.

The Gauss-Siedel method gives a simple and stable solution and works well up to 100 buses. The
solution iterates one bus at a time, corrects that bus voltage to the specified value, and continues until an error is detected.

The solution may not converge for the following reasons:
1. Error in the input data
2. System is too weak to carry the load
3. Insufficient VAR in the system to support the voltage

In the Newton-Raphson method, the n quadratic equations are first linearized by forming a Jacobian matrix. The present value of the bus voltage is then calculated, and then n linear equations are solved in steps. The number of iterations is small, between five and ten.

Friday, September 4, 2009

Electrical Interview Questions for Relay Protection Engineering

  1. There will be always a lot of questions based on your resume. You should know your resume and what all things you have done in your project in a nice manner.
  2. There will be also a lot of cross questioning about the profile you are looking for.
  3. But apart from that, few basic questions might be asked to you:
  4. What factors decide the pick up value of the current, considering distributed system.
  5. What are the time margin for the overcurrent relay.
  6. How are CT's connected on Delta-Star trafo considering you are not using any phase correcting CTs or any interposing CTs.
  7. What are the inputs needed for Breaker Failure relay.
  8. What is Zone 1 setting?
  9. Why it is set to that percentage?
  10. Say, PTR = 1000/1 and CTR = 200/1; what shall be Secondary Impedance.
  11. What sequence current flows through P-G faults?
  12. How does they flow?

Monday, August 31, 2009

IInd Technical Interview with Power Company, US

  1. I have your resume with me, is that correct you have worked in Siemens, ABB and Areva Relays before?
  2. What kind of work you have done with relays?
  3. Which project you have worked on?
  4. Have you done commissioning of relays yourself or just witnessed the relay commissioning?
  5. Have you done relay setting calculations yourself?
  6. Have you worked with GE and SEL relays before?
  7. Yes, I understand that if you have worked on prior relay knowledge, you can learn other relays too.
  8. You also have Control experience?
  9. what type of control experience do you have?
  10. I mean, Automation Contorl.
  11. Have you also worked on Schematics before?
  12. What type of schematics you have worked before - Single Line, 3 line, can you tell me all of them?
  13. How soon can you join us?
  14. How about your studies? When will you completing it?
  15. Are you ready to relocate?
This was all. It lasted 9 minutes.

Sunday, August 30, 2009

Series and Shunt Reactors in Power system

Shunt Reactor are used for reactive compensation:
During normal operation of an electrical power system, the transmission and distribution voltages must be maintained within a small range, typically, from 0.95 to 1.05 pu of rated value. Due to the load variations, shunt reactors and capacitors have been applied in
power systems to compensate excess reactive power (inductive for heavy load conditions, and capacitive for light load conditions). Shunt reactors are commonly
used to compensate the capacitive reactive power of transmission and distribution systems and thereby to keep the operating voltages within admissible levels.

Series Reactor for limiting the fault current.


Reference:
http://www.ritzusa.com/pdf/TECH%20NEWS_SHUNT_71665.PDF

Saturday, August 29, 2009

PC Based SCADA software

ABB PC based automation system: MicroSCADA
Software tool used: Substation Monitoring System (SMS)
----------------------------------------------------------------
Siemens PC based automation system: SIMATIC PAS
----------------------------------------------------------------
Areva PC based automation system: PACiS

Relay Protection Setting Software

ABB relay setting software: CAP540
Siemens relay setting software: DIGSI 4.0
Areva/Micom relay setting software: S1

Wednesday, August 26, 2009

Electrical Automation Interviews

  1. Tell us about your background.
  2. What SCADA systems are you aware of?
  3. Have you worked on ODC server before?
  4. Describe your experience in Automation Control?
  5. Have you worked on Embedded System before?
  6. Describe your experience on that?
  7. Tell us how you did Relay coordination?
  8. Say for e.g. there are two feeders, one incoming and other outgoing, how do you achieve relay coordination on them.
  9. Have you done Short Circuit studies?
  10. What tools have you used before?
  11. Tell us how will you calculate busbar earthing? What values of Earthing / Leakage current is fine for Bus bar earthing in panel.
  12. How is HMI prepared?
  13. What ethernet switch did you use for connecting IEDs?
  14. Which make of ethernet switch did you use?
  15. How was the architecture / communication topology.

Interview for Relay Protection Engineer

  1. How are you today?
  2. How do you think that you are suitable for the job?
  3. So, you are saying that you have experience with Siemens Relays, Relaying software, Communication topology and you have worked before on the projects, how confident are you to work for this work profile? Can you elaborate or explain in detail.
  4. How all these things will help you better perform the job?
  5. Can you tell me how many relays you have worked for? i.e. how many protection relays from Siemens, ABB, GE, SEL you have actually used in the projects?
  6. Can you tell me if you have commissioned all of them by yourself?
  7. Can you quantify the numbers you have used in the projects?
  8. How did you configure these relays?
  9. What software is used to configure ABB, Areva relays?
  10. Were there different engineers to configure ABB, Siemens relays?
  11. Have you worked on Automation ?
  12. How do you do relay settings?
  13. How does two relay communicate with each other?
  14. What protocols are you familiar?
  15. Have you worked on Profibus or IEC-103 before?
  16. What parameters does IEC-61850 transfer? Is it just protection only? Or non protection parameters are also transferred?
  17. Have you worked on HMI before?
  18. Have you used software to build HMI?
  19. How does trigger, alarm or trip or event logs are configured on HMI?
  20. How many IEDs connect to the Ethernet Switch?
  21. What is the limitation of connecting the IEDs to the switches?
  22. What other communication protocols are you familiar?
  23. How will the relay communicate with the other relay? Say, there are two relays , say trafo, one on HV side and other on LV side, how will they communicate with each other?
  24. Tell me how good are you with travelling?
  25. Can you travel all the time?
  26. If not, give me the % you can travel?
  27. What traits you are looking in for a manager you will be working with ?
  28. What personal traits you will not like your manager to have?
  29. Do you have any personal limitations, what you cannot do?
  30. How long can you work? I mean how long will be the working hours you can put up?
  31. How much comfortable are you with night travelling?
  32. Can you describe any challenges in the work before, which you can describe or give details?
  33. These are the technical challenges. What abou the personal challenges you have faced in work?
  34. What if you dont like any thing particular with your boss? how will you cope up with that?
  35. How soon can you join us?
  36. What are your aspirations?
  37. Why did you choose your masters in Computer Science?
  38. Can you elaborate on your work experience?
  39. Have you commissioned the relays before?
  40. How do you trouble shoot the relays?
  41. Has your experience only upto protection or you have with automation too?
  42. Are you familiar with preparing drawings in Autocad / Elcad /Microstation?
  43. How good are you with them?
  44. Do you know how to exactly draw drawings?
  45. What kind of drawings are you familiar with?
  46. One, Three line, SLD, Logic diagrams, relay, cut outs, which ones?
  47. For how long do you have experience in them?
  48. What causes trigger in the HMI?
  49. What causes alarm in the HMI?

Tuesday, August 18, 2009

Current Transformer Requirement

1. Typically the c.t. is specified by means of an accuracy factor and an overcurrent factor up to which the c.t. remains accurate with the maximum specified burden connected to its secondary, eg:
5P10 : 5VA (Accuracy Limit, Overcurrent Factor : Maximum Burden(at c.t. secondary level))

In the example of a 5P10, 5VA c.t., this will transform primary current within the accuracy limit of 5% when a burden of 5VA (at rated current) is connected to the c.t. secondary, for a primary current up to 10 times its rating.

2. Knee Point Voltage: The Knee point voltage of the current transformers should be at least twice the relay setting voltage. The knee point voltage is expressed as the voltage at fundamental frequency applied to the secondary circuit of the current transformer which when increased in magnitude by 10% causes the magnetising current to increase by 50%.

Pole discrepancy protection

This function ensures that any one or two poles of a circuit-breaker do not remain open for longer than an independently settable time (i.e. unsymmetrical conditions). This time stage is initiated when current (above the set value) is flowing in any 1 or 2 phases, but not in all 3 phases. Additionally, the circuit-breaker auxiliary contacts (if connected) are interrogated and must show the same condition as the current measurement. Should this time delay expire, then a three-pole trip command is issued. This function is normally used when single-pole auto-reclosing is applied.

Reference:
1. www.siemens.com/easy-line

Interview Questions on Relay and its fundamentals

  1. What is the objective of relaying system?
  2. What are the functional requirements of the relays?
  3. Can you draw the healthy trip circuit?
  4. What are switchgears?
  5. What are the different types of switchgear?
  6. What are the operating mechanisms of the switchgear?
  7. What are through faults?
  8. What is relay burden?
  9. Why stabilizing resistor are used?
  10. How do you calculate the value of the stabilizing resistor?

Anti pumping relay and its operational concept

The anti-pumping relay allows the breaker to close only once for each press of the 'close' pushbutton (or rotation of the handle) or Anti-pumping relay cancels the persistent closing
signal after successful completion of the closing operation.

If a fault exists on the circuit before the breaker is closed, the breaker will close and immediately trip before the operator has a chance to release the close button (or handle). The anti-pumping relay prevents the still-active close signal from trying to reclose the breaker.

Many breakers are not rated for multiple successive reclose operations. If an anti-pumping relay is not used, the rapid close-open-close-open... series can result in destruction of the breaker and harm to the operator.

Trip Cirucit Supervision Relay

The supervision relay type TCS is intended for a continuous supervision of circuit breaker trip
circuit and to give an alarm for loss of auxiliary supply, faults on the trip-coil or its wires independent of the breaker position, faults on the breaker auxiliary contacts and faults in the
supervision relay itself.

The following diagarm explains how the trip circuit supervision relay works:

There are 3 scenarios:
1. Supervision in preclose condition.
2. Supervision in postclose condition.
3. Supervision with latched trip or protection relay.


Reference: http://www02.abb.com/global/inabb/inabb509.nsf/0/51663da1af2c5e9f652571bc00388c76/$file/TCS+Brochure.pdf

Electrical Interview Questions on Protection ( Busbar, Buscoupler, Bussection, Feeder, Trafo)

  1. Explain Busbar protection?
  2. Explain Bus Coupler protection?
  3. Explain Bus Section protection?
  4. Explain Feeder protection?
  5. Explain Line protection?
  6. Explain Transformer protection?
  7. Explain Motor Protection?
  8. Explain Shunt reactor protection?
  9. What is trip circuit supervision relay?
  10. What is post and pre condition for trip circuit supervision relay?
  11. What are lock out relays?
  12. What is isolator replica. How it is used?
  13. What is dead zone?
  14. How faults are detected in dead zone?
    - Case 1: Consider one CT
  15. - Case 2: Consider two CT
  16. - Case 3: Consider CTs not covering Breaker and CT zone.
  17. How many bay units can be configured to Central unit in Busbar protection?
  18. What is the need of duplicating lock out relays?
  19. How groups are formed for each protection to lock out relays?
  20. Why DC is duplicated?
  21. Why relays are duplicated to achieve similar protection?
  22. How is signal list prepared?
  23. How synchronization takes place?
  24. What is check zone?
  25. What is discrimination zone?
  26. Which type of cable used for connecting IEDs?
  27. Which type of cable used for PC to IED?
  28. Which type of connector used for FO cable to connect to IED?
  29. What information Bay unit have?
  30. What is self monitoring of relays?
  31. what are high impedance schemes?
  32. What are low impedance schemes?
  33. Where are 31. and 32. used?
  34. For differential protection, what tripping conditions must be fulfilled?
  35. Explain the Breaker failure logic?
  36. Explain intertrip?
  37. Explain, how or logic for intertrip during Busbar operation?
  38. What type of relay senses closing onto fault?
  39. How are disconnector monitored?
  40. How is breaker fail monitored from maloperating?
  41. How are settings of busbar protection achieved?
  42. What do you do to distance protection, when Voltage transformer's MCB (miniature circuit breaker trips)?
  43. What are the annunciation in Feeder protection?
  44. What is the switching order to close earth switch?
  45. What is the switching order to close circuit breaker?
  46. What is automatic switching?
  47. What is on load transfer?
  48. What is to be taken care of while closing disconnector?
  49. What is pole discrepancy relay?
  50. What is anti pumping?
  51. What can be problems with Circuit breaker?
  52. What are SF6 Stages for alarm and trip for circuit breaker?
  53. When does Circuit breaker lock out?

Monday, August 17, 2009

“Equipment intended to interrupt current at fault levels shall have an interrupting rating sufficient for the nominal circuit voltage and the current that is available at the line terminals of the equipment. Equipment intended to interrupt current at other than fault levels shall have an interrupting rating at nominal circuit voltage sufficient for the current that must be interrupted.”

  1. Q: Why is making capacity of circuit breaker higher than making capacity of Circuit breaker?
  2. Q: What are the values of making capacity of circuit breaker?
  3. Q: What are the values of breaking capacity of circuit breaker?
  4. Q: Define the terms ? Breaking capacity, making capacity.
  5. Q: Distribution equipment, such as circuit breakers, fuses, switchgear, and MCCs, have interrupting or withstand ratings defined as the maximum rms values of symmetrical current.
  6. Q: What is Circuit breakers breaking capacity ? Answer: A circuit breaker can't interrupt a circuit at the instant of inception of a short. Instead, due to the relay time delay and breaker contact parting time, it will interrupt the current after a period of five to eight cycles, by which time the DC component will have decayed to nearly zero and the fault will be virtually symmetrical.
  7. Q: What is Circuit breaker's making capacity? Answer:Closing a breaker against an existing fault makes it possible to intercept the peak of the asymmetrical short-circuit current, which is greater than the rms value of the symmetrical current. For this reason, equipment is also tested at a particular test X/R ratio value typical to a particular electrical apparatus, such as switchgear, switchboards, or circuit breakers, and is designed and rated to withstand and/or close and latch the peak asymmetrical current described above.
  8. Q: Why fault analysis is required? Answer: Fault analysis is required to calculate and compare symmetrical and asymmetrical current values in order to select a protective device to adequately protect a piece of electrical distribution equipment.


Reference:

  1. This site has 5 sections - Substation, High Voltage, Transformers, Protection, Commissioning. It is good for having an overview and going in detail in few areas. http://www.sayedsaad.com/Protection/index.htm
  2. This site has lot of material and books on electrical. http://www.blogger.com/2.%20http://www.filecrop.com/search.php?w=Practical%20Power%20System%20Protection&opt_t=1&opt_d=0&c=30&m=&size_i=&size_f=&engine_r=&engine_m=&pos=1&order=score&mod=dec
  3. http://ecmweb.com/training/electrical_basics/


Friday, August 14, 2009

Loading Sample Projects from Eclipse to Emulator

Assuming that Android SDK, Eclipse SDK and Android Development Tools are updated.
  1. Open Eclipse.
  2. File->New->Android Project
  3. New Android Project window comes up. Select: Create project from existing source; Provide-> Location: (Browse to the current folder having sample examples. In case of Android 1.5, samples are located in Platforms\android-1.5\samples).

  4. Choose Build Target -> Android 1.5
  5. Right click on the project -> Snake -> Run as -> Android Application
  6. Check the log window below. It will show the status of the Snake, getting installed on the android emulator.
  7. The application gets loaded on the emulator and the screenshot is as follows:
  8. When you hit 'Up' tab,the game will run.

Rotating Emulator Screen as per the application need.

  1. Run android emulator.
  2. It comes up with vertical orientation.
  3. Now there are some applications which only run on horizontal layout. Like the one below:

  4. Press Control + F12 (function key F12). It will rotate the screen to horizontal layout.
  5. This is how it will work.

Installing API Demos/Samples on Android Emulator and features on APIDemo.

  1. If you are running android-1.5, then, you can run samples from both android 1.1 or android 1.5 or both. However to load API demos on emulator I used android 1.1 version.
  2. Hence go to - C:\android-sdk-windows-1.5_r3\platforms\android-1.1\samples
  3. The following samples codes are provided:
  4. ApiDemos, HelloActivity, Home, LunarLander, Notepad, SkeletonApp, Snake.
  5. To load ApiDemos, follow the instruction on Loading Sample Projects from Eclipse to Emulator .
  6. To Run the project go to Run Configurations and
  7. Choose Build Target - Android 1.1.
  8. And then continue exactly as mentioned in the above article.
  9. You can see that lot of applications are provided by APIDemos. Such as App, Content, Graphics, Media, OS, Text, Views.
  10. Following are the views provided: Animation, Auto Complete, Buttons, Chronometer, Controls, Custom, Date Widgets, Expandable Lists, Focus, Gallery, Grid, ImageButton, ImageSwitcher, ImageView, Layout Animation, Layouts, Lists, MapView, MapView and Compass, Progress Bar, Radio Group, Rating Bar, ScrollBars, Seek Bar, Spinner, Tabs, TextSwitcher, Visibility, WebView.

  11. Animations further can have 3D Transition, Push, Shake and they have further categorized. Please click the slide show to see all the views of Animations.

  12. Slideshow of all the Views.

  13. It also have media Player and you can run Media Player or VideoPlayer on it.
  14. Similarly Graphics has a lot of features. Features available on ApiDemo are: AlphaBitmap, AnimateDrawables, Arcs, BitmapDecode, BitmapMesh, CameraPreview, Clipping, ColorMatrix, Compass, CreateBitmap, Drawable, FingerPaint, Layers, MeasureText, OpenGL ES, PathEffects, PathFillTypes, Patterns, Pictures, Points, PolyToPoly, Regions, RoundRects, Scale to Fit, SensorTest, SurfaceViewOverlay, Sweep, TextAlign, Touch Paint, Typefaces, UnicodeChart, Vertices and Xfermodes.
  15. To view some of the features on Graphics, please click the slide show.

Monday, August 10, 2009

Most asked non technical questions

  1. Have you worked on *** before? (*** is not in your resume or probably you never worked on it before).
  2. What do you want to do?
  3. What is your favorite *** (programming language, tool or product) ?
  4. What is your work style ?
  5. Tell me about your experience.
  6. What are your career goals?
  7. Why are you looking to change jobs?
  8. How much money do you want to make?
  9. What is your salary history?
  10. Why should we hire you?
  11. Do you have any questions for me?
  12. Why are you suitable for this job?
  13. What are your relevant skills and experience?
  14. What makes you a good candidate?
  15. What are your strengths and weaknesses?
  16. Why are you interested in this vacancy?
  17. What are you looking for in your next job?
  18. Why are you looking?

Thursday, August 6, 2009

User Interface Links for Android

  1. User Interface (UI) designer/editor for programming the Android Cell Phone Platform. This has the tool for auto generating code for the basic Widgets. http://www.droiddraw.org/
  2. This site explains have good material for basic learning. http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html

Android Views

  1. SurfaceView
  2. View
  3. ViewStub
  4. AnalogClock
  5. AutoCompleteTextView
  6. Button
  7. CheckBox
  8. Chronometer
  9. DatePicker
  10. DigitalClock
  11. EditText
  12. Gallery
  13. ImageButton
  14. ImageView
  15. MultiAutoCompleteTextView
  16. ProgressBar
  17. RadioButton
  18. RatingBar
  19. SeekBar
  20. Spinner
  21. TextView
  22. TimePicker
  23. ToggleButton
  24. TwoLineListItem
  25. VideoView
  26. ZoomButton
  27. ZoomControls
  28. include

Wednesday, August 5, 2009

Android Layouts

  1. AbsoluteLayout
  2. DialerFilter
  3. ExpandableListView
  4. FrameLayout
  5. GridView
  6. HorizontalScrollView
  7. ImageSwitcher
  8. LinearLayout
  9. ListView
  10. MediaController
  11. RadioGroup
  12. RelativeLayout
  13. ScrollView
  14. SlidingDrawer
  15. TabHost
  16. TabWidget
  17. TableLayout
  18. TableRow
  19. TextSwitcher
  20. ViewAnimator
  21. ViewFlipper
  22. ViewSwitcher
  23. merge

Android Widgets

Graphical display

Code 

AbsoluteLayout

 		


Analog Clock



id="@+id/clock1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>


Button


CheckBox



android:text="Plain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>

android:text="Serif"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:typeface="serif"
/>

android:text="Bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
/>

android:text="Italic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="italic"
/>

Chronometer

 		

DatePicker



android:layout_width="wrap_content"
android:layout_height="wrap_content" >

...
// Required Java init code:
DatePicker dp =
(DatePicker)this.findViewById(R.id.widget27);

// for example init to 1/27/2008, no callback
dp.init(2008, 0, 27, Calendar.SUNDAY, null);
...


DigitalClock



android:layout_width="wrap_content"
android:layout_height="wrap_content"/>


EditText



android:text="EditText 1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>

android:text="(206)555-1212"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:typeface="serif"
android:phoneNumber="true"
/>

android:text="SuperSecret"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold_italic"
android:password="true"
/>

FrameLayout

 		

Gallery



id="@+id/gallery"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

ImageButton



android:src="@drawable/brush"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

ImageView



android:src="@drawable/brush"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

LinearLayout

 		


ProgressBar



android:layout_width="wrap_content"
android:layout_height="wrap_content"/>


RadioButton



id="@+id/widget1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
>

id="@+id/widget2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Plain"
android:checked="false"
android:layout_gravity="left"
android:layout_weight="0"
>


id="@+id/widget3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Serif"
android:checked="true"
android:layout_gravity="left"
android:layout_weight="0"
android:typeface="serif"
>


id="@+id/widget25"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bold"
android:checked="false"
android:layout_weight="0"
android:layout_gravity="left"
android:textStyle="bold"
>


id="@+id/widget24"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bold & Italic"
android:checked="false"
android:layout_weight="0"
android:layout_gravity="left"
android:textStyle="bold_italic"
>

RelativeLayout

 		


Spinner



id="@+id/widget1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:drawSelectorOnTop="false"/>


TextView



android:text="Plain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>

android:text="Serif"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:typeface="serif"
/>

android:text="Bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
/>

android:text="Italic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="italic"
/>

TimePicker



id="@+id/widget3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

----------------------------------------------------------------------------------------------------------------------
Reference:
1. A Visual Guide to Android GUI widgets http://www.droiddraw.org/widgetguide.html
2. Android Developers on widgets supported by android 1.5 SDK.
http://groups.google.com/group/android-developers/msg/a5247467151f5e3a

Tuesday, August 4, 2009

Interview Questions on Transformer Protection

  • Q. What parameters or technical particulars are important to be considered while designing protection scheme of the transformer? Answer:
  1. Network Diagram showing the position of the transformer in the system
  2. kVA or MVA rating of the transformer
  3. Fault Level at the transformer
  4. Voltage Ratio
  5. Winding Connections
  6. Per Unit Impedance
  7. Neutral Point Earthing Resistance
  8. Value of the System Earthing Resistance
  9. Whether Indoor or Outdoor
  10. Dry or Oil Filled
  11. Length and area of cross section of the connecting leads between CTs and Relay Panel
  • Q. What can be the reasons for the failure of the transformer? Answer: Transformer is one of the most expensive equipments in the Power System. Failure of the transformer can cause outage of power supply for even days. However, multiple things can go wrong with the transformer: There can be two types of failure - Internal Faults and External Faults.
  • Internal Faults (the faults within the transformer):
  1. Core Failure
  2. Winding Failure
  3. Lamination Failure
  4. Bushing Failure
  5. Terminal Board Failure
  6. Tap Changer Failure (OLTC failures)
  7. Transformer Oil
  8. Oil level low
  9. Moisture absorption
  10. Transformer cooling system
  11. Failure of insulation between Lamination and Core Bolt
  12. Badly made joints and connections.
  13. Frequent exposure to Lightning strokes
  • External Faults (the faults outside the transformer):
  1. OverLoad ... increases copper losses and consequence temperature rise.
  2. Through Faults or System Faults ... not detected by differential protection of transformer, however, if through faults persist for longer duration, transformer gets damaged by thermal and electromagnetic mechanical stress ... detected by overcurrent relays.
  3. Short Circuits
  4. Open Circuits
  5. Earth Faults
  6. Over Voltage
  7. Reduced system frequency
  • Q. How Transformer Protection provided for internal faults? Answer:
  1. Bucholz Relay (1st Stage Alarm and 2nd Stage Trip)
  2. Sudden Pressure Relay (1st Stage Alarm and 2nd Stage Trip)
  3. Pressure Relief Valve (1st Stage Alarm and 2nd Stage Trip)
  4. Pressure Switch (1st Stage Alarm and 2nd Stage Trip)
  5. Oil level Gauge Indicator (Alarm)
  6. Vacuum Level Indicator (Alarm)
  7. Oil Temperature Indicator (Alarm)
  8. Gas Temperature Indicator (Alarm)
  9. Silicon Breather (Passive - no alarm)
  10. Smoke Detector (Alarm)
  • Q. How Transformer Protection provided for external faults? Answer:
  1. Differential Protection
  2. Restriced EarthFault Protection
  3. Over Current Protection
  4. Over Fluxing Protection
  5. Over current relays with under voltage blocking
  6. Zero sequence protection.
  7. Negative phase sequence protection
  • Q. What are the tests done to minimize internal faults? Answer:
  1. Dissolved Gas Analysis (DGA): Faults due to arcing, high current breakdown of oil, localized sparking, partial discharge of oil, localized overheating or hot spots, etc. causes thermal degradation of oil and used for analysis.
  2. Thermography of Transformer: Hot Spots on the transformer bushing, circulation of oil in radiator tubes, distribution of heat on transformer body, etc.
  3. Capacitance Tan Delta: to detect oil degradation.
  4. Oil Sample Test: to check the oil quality.
  • Q. What are the reasons for Oil degradation? Answer:
  1. Degradation
  2. Oxidation
  3. Contamination
  4. a) Dielectric breakdown voltage indicates the presence of electrically conductive contaminants in oil.

    b) Interfacial tension and acid number (sometimes called neutralization number or acidity) are affected by oxidation and contamination.

    c) Water content is temperature dependent.

    d) Power factor is also temperature dependent.
  • Q. What protection are provided to transformer depending on their kVA or MVA ratings?
  • Protection

    Transformer Rated below 500 kVA


    Transformer Rated between 500 kVA - 5MVA


    Transformer Rated above 500 kVA

    Differential

    No

    No

    Yes

    Restricted Earth Fault

    No

    No

    Yes

    Back Up Over Current

    No

    Yes

    Yes

    Back Up Earth Fault

    No

    Yes

    Yes

    Over Fluxing

    No

    No

    Yes

    Fuses

    Yes

    No

    No

    Bucholz, PRV, OSR

    No

    Yes

    Yes

    Oil and Winding Temperature Indicator

    No

    Yes

    Yes

    Oil level monitoring equipment

    No

    Yes

    Yes

  • References:
  1. Basler: Transformer Protection Application Guide http://www.basler.com/html/html/transformer.htm
  2. IEEE Guide for Protective Relay Applications to Power Transformers (IEEE Std C37.91-2000)
  3. Dissolved Gas Analysis Wiki http://en.wikipedia.org/wiki/Dissolved_gas_analysis
  4. Thermography of transformer. http://us.fluke.com/usen/Solutions/TI/Thermal-Imaging-Electrical-Systems.htm
  5. Implementation of Thermography in Power utilities www.ndt.net/article/afndt2008/papers/tahir.pdf (good material on what is thermography and its basic concept).
  6. Capacitance Tan Delta test http://cr4.globalspec.com/thread/32684#comment341158

Monday, August 3, 2009

More commands on -AVD to create, delete, move, update...

Usage:

=====================================================
android [global options] action [action options]
=====================================================
Global options:
-h --help This help.
-s --silent Silent mode: only errors are printed out.
-v --verbose Verbose mode: errors, warnings and informational messages are printed. =====================================================
Valid actions are composed of a verb and an optional direct object:
================================================

- list : Lists existing targets or virtual devices.
Action "list ":
Lists existing targets or virtual devices.
Options:
No options

=====================================================
- list avd : Lists existing Android Virtual Devices.
Action "list avd":
Lists existing Android Virtual Devices.
Options:
No options

=====================================================
- list target : Lists existing targets.
Action "list target":
Lists existing targets.
Options:
No options

=====================================================
- create avd : Creates a new Android Virtual Device.
Action "create avd":
Creates a new Android Virtual Device.
Options:
-t --target Target id of the new AVD [required]
-c --sdcard Path to a shared SD card image, or size of a new sdcard for the
new AVD
-p --path Location path of the directory where the new AVD will be created

-n --name Name of the new AVD [required]
-f --force Force creation (override an existing AVD)
-s --skin Skin of the new AVD
====================================================
- move avd : Moves or renames an Android Virtual Device.

Action "move avd":
Moves or renames an Android Virtual Device.
Options:
-p --path New location path of the directory where to move the AVD
-n --name Name of the AVD to move or rename [required]
-r --rename New name of the AVD to rename

====================================================
- delete avd : Deletes an Android Virtual Device.
Action "delete avd":
Deletes an Android Virtual Device.
Options:
-n --name Name of the AVD to delete [required]

for eg.

D:\android-sdk_1.5_windows_16july\tools>android delete avd -n avd51
AVD 'avd51' deleted.

====================================================
- update avd : Updates an Android Virtual Device to match the folders of a new SDK.
Action "update avd":
Updates an Android Virtual Device to match the folders of a new SDK.
Options:
-n --name Name of the AVD to update [required]
====================================================
- create project: Creates a new Android Project.
Action "create project":
Creates a new Android Project.
Options:
-k --package Package name [required]
-n --name Project name
-a --activity Activity name [required]
-t --target Target id of the new project [required]
-p --path Location path of new project [required]
=====================================================
- update adb : Updates adb to support the USB devices declared in the SDK add -ons.
Action "update adb":
Updates adb to support the USB devices declared in the SDK add-ons.
Options:
No options

=====================================================

Saturday, August 1, 2009

How to capture Screen of the Android Phone or emulator?

  1. Run emulator either using cmd or eclipse.
  2. If device i.e. Android Phone, connect it with the PC using specific cable use to load Apps.
  3. Go to Eclipse.
  4. Go to Devices as shown in A.
  5. Check for Circle B, it is Screen Capture,it will get the current instance of the emulator or Android Phone (device).
  6. Go to Save.
  7. It will save the screen as a .png file as shown below.

Friday, July 31, 2009

How to Install Games/Applications on Your Android Phone or Emulator

  1. This is how you can directly install any applications or Games and check the working of the Touch Screen on Android Phone.
  2. Make sure that Phone is powered up and on. If using Emulator, create the Emulator Instance and it is running.
  3. However, if emulator and Phone both are running, the command will run only on emulator. So, you have to quit the emulator instance, when loading the app on the Phone.
  4. This shows that the Phone is being detected by the PC.
  5. D:\android-sdk_1.5_windows\tools>adb devices
  6. List of devices attached
    ? device
  7. This shows how to load the games on the actual phone or emulator.
  8. D:\android-sdk_1.5_windows\tools>adb install Puzzles.apk
    1300 KB/s (1352247 bytes in 1.015s)
  9. D:\android-sdk_1.5_windows\tools>adb install Snake.apk
    244 KB/s (19545 bytes in 0.078s)
  10. D:\android-sdk_1.5_windows\tools>adb install Android_Sudoku.apk
    601 KB/s (741288 bytes in 1.203s)

    You can download few Game Apps from the below site for free.
    http://www.androidfreeware.org/download

Thursday, July 30, 2009

How to Create Two or multiple instances of Emulator

  1. cmd1 ... D:\android-sdk_1.5_windows\tools>android create avd -n avd1 -t 1
    Android 1.5 is a basic Android platform. Do you wish to create a custom hardware profile [no] Created AVD 'avd1' based on Android 1.5
  2. cmd1 ... D:\android-sdk_1.5_windows\tools>android create avd -n avd2 -t 1
    Android 1.5 is a basic Android platform. Do you wish to create a custom hardware profile [no] Created AVD 'avd2' based on Android 1.5
  3. cmd1 ... D:\android-sdk_1.5_windows\tools>D:\android-sdk_1.5_windows\tools>emulator –avd adv1
  4. cmd2 ... D:\android-sdk_1.5_windows\tools>emulator –avd adv2
  5. Two emulator instances are created. One with Port 1 = 5554 and other with Port 2 = 5556.
  6. Similarly multiple instances of the emulator can be created by creating multiple AVDs and running emulator deploying those AVDs.
  7. AVD can be easily created using ECLIPSE too.
  8. Go to Eclipse -> Run Configurations -> Target tab
  9. You can see the list of all the existing AVDs.
  10. Now go to AVD Manager (Android Virtual Devices Manager) and choose the option of Create AVD as in the next window.
  11. You can also Delete AVD ... go back to AVD Manager and select the particular AVD.
  12. You can create emulator instance directly from the ECLIPSE.
  13. Eclipse -> Run Configurations -> Target -> Select a preferred AVD for deployment and then RUN.

How to Create SD Card?


The following commands will create, mount the SD card and finally push the songs to the SD card and emulator playing those songs/pictures.
  1. C:\android-sdk-windows-1.5_r3\tools>mksdcard -l sd500m 500M C:\android-sdk-windows-1.5_r3\tools\mysdcard.img ...... mksdcard: create a blank FAT32 image to be used with the Android emulator
    usage: mksdcard [-l label]

    if is a simple integer, it specifies a size in bytes
    if is an integer followed by 'K', it specifies a size in KiB
    if is an integer followed by 'M', it specifies a size in MiBto create sdcard

  2. The following size file will be created in tools directory of android-SDK. You can also create SD card with any memory size - say, 256M, 512M, 1024M, 2048M.

  3. To mount on emulator without specifying -avd C:\android-sdk-windows-1.5_r3\tools>emulator -sdcard mysdcard.img
    emulator: ERROR: You did not provide the name of an Android Virtual Device
    with the '-avd ' option. Read -help-avd for more information.

    If you *really* want to *NOT* run an AVD, consider using '-data 'to specify a data partition image file (I hope you know what you're doing). However, this command will work fine with android-sdk-windows-1.0_r1 (as in my previous post).
  4. The correct command to mount SD card is on latest android version is ..... C:\android-sdk-windows-1.5_r3\tools>emulator -sdcard mysdcard.img -avd opus29

  5. However, if, the emulator instance is already running, it gives the following error: emulator: ERROR: the user data image is used by another emulator. Aborting (so close the running emulator and then type again the following command).
  6. C:\android-sdk-windows-1.5_r3\tools>emulator -sdcard mysdcard.img -avd opus29 (this will run the new emulator instance with the SD card on it).
  7. To push songs on the emulator using Eclipse->Window->Open Perspective->Other->DDMS

  8. Choosing DDMS.

  9. the DDMS dialog box opens up ... on right side, we have tabs like @File Explorer ... there is sdcard folder with d--rxrwx permissions.
  10. Drag and Drop the audio / music files and picture files to this card with all the extensions like .wma, mp3, etc.

  11. This is how it looks finally in SDcard.

  12. Play files on the emulator. However if you have problems running any files on emulator, try to re-run the instance of the emulator after closing using the same command C:\android-sdk-windows-1.5_r3\tools>emulator -sdcard mysdcard.img -avd opus29.

  13. This is how the picture folder will look like.


  14. Follow the following steps have to be redone if you have changed the version of android SDK and not updated eclipse. http://developer.android.com/sdk/1.5_r3/upgrading.html



Wednesday, July 29, 2009

Embedded System Project

Distance Sensor & Motion Sensor to Fade/Turn ON LED:

Objective: To sense the object closer or farther from the Distance Sensor which in turn controls the intensity of the LED or if motion is detected should turn ON the LED.

Circuit Diagram:


Flowchart for Distance Sensor:

Flowchart for Motion Sensor:

Material Used:

1. FreeScale Motorola M52233demo board.

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=M52233DEMO&fsrch=1

2. Sensors from Parallax.

Ping))) Ultrasonic Sensor(for object detection) and PIR sensor (for motion detection)

http://www.parallax.com/tabid/176/List/0/CategoryID/51/Level/a/Default.aspx?SortField=ProductName,ProductName

3. Breadboard

http://www.radioshack.com/search/index.jsp?kwCatId=&kw=breadboard&origkw=breadboard&sr=1

4. Tools and Equipments

5. LED

http://www.globalsources.com/manufacturers/Square-LED.html

6. CodeWarrior Software

Related links:

  1. Ping Ultrasonic Range Finder, http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor
  2. Blink, http://www.arduino.cc/en/Tutorial/Blink
  3. http://www.arduino.cc/playground/Main/UltrasonicSensor
  4. The World Famous Index of Arduino & Freeduino Knowledge http://www.freeduino.org/