Agricultural Engineering · Foundations · also Basic Electrical Gadgets and Instruments, Basic Electronics
Circuits, power, transformers, electronic devices and safe wiring: what a farm engineer needs before motors and sensors.
In the exams: NCEES FE Basic Electrical Engineering 6–9 questions; NCEES PE electrical circuits
Basic electrical and electronics engineering is the study of how electric charge is moved, controlled and measured: circuits fed by batteries and by the mains, the transformers that bring power to a farm, the meters that tell you what is happening, and the semiconductor devices, amplifiers and logic circuits inside every controller, sensor and solar inverter. For an agricultural engineer it is not a side subject. Electric motors drive pumps, dryers, milking machines, mills and cold stores, and almost every modern machine carries electronics.
This manual is written for the first-year course that agricultural engineering degrees run under names such as Basic Electrical Engineering, Basic Electrical Gadgets and Instruments, or Basic Electronics. It runs from DC circuits through AC, three-phase supply, transformers, instruments, semiconductors, op-amps and digital logic to wiring, earthing and safety. Each chapter uses a pump, motor, dryer or farm-wiring example, and every number in the worked examples was computed, not estimated.
The subject is examined in many places. In the United States the NCEES Fundamentals of Engineering (FE) Other Disciplines exam gives 6–9 questions to basic electrical engineering, and the PE Agricultural and Biological Engineering exam includes electrical circuits and electric motors under Common System Applications. India's ICAR AIEEA-PG has a unit on motors, instruments and power distribution, entrance examinations test circuits and semiconductors as physics, and the Philippine licensure examination includes rural electrification. The physics is the same everywhere; supply voltage, frequency, wiring colours and codes differ by country, and the manual says so where it matters.
Electricity on farms kills people and animals every year. Read the final chapters, on wiring and safety, as carefully as the theory.
Electric current is the rate of flow of charge, measured in amperes (A); one ampere is one coulomb per second. Voltage, or potential difference, is the energy given to each coulomb of charge, measured in volts (V); one volt is one joule per coulomb. Resistance is the opposition to steady current, measured in ohms (Ω). Ohm's law states that for a linear resistor the voltage across it is proportional to the current through it: V = IR. Power is the rate of energy transfer, P = VI, which for a resistor can also be written P = I²R or P = V²/R. Energy is power multiplied by time, and the practical unit is the kilowatt-hour (kWh), the energy used by a 1 kW load running for one hour.
The resistance of a conductor is R = ρL/A, where ρ is the resistivity of the material, L its length and A its cross-sectional area. Copper has a resistivity of about 1.72 × 10⁻⁸ Ω·m at 20 °C; aluminium's is higher, so aluminium conductors must be larger. Resistance of metals rises with temperature: R₂ = R₁[1 + α(T₂ − T₁)], with α for copper about 0.00393 per °C referred to 20 °C. This is used to measure motor winding temperature. If a pump motor winding reads 2.0 Ω cold at 20 °C and 2.4 Ω immediately after a run, the rise is (2.4/2.0 − 1)/0.00393 = 50.9 °C, so the average winding temperature was about 70.9 °C.
A source has an electromotive force (EMF) and some internal resistance. Battery capacity is stated in ampere-hours (Ah). A 100 Ah, 12 V battery holds about 1.2 kWh, but lead-acid batteries are normally discharged only partly to protect their life; at 50 % usable depth of discharge it will run a 60 W load for 100 × 12 × 0.5/60 = 10 hours. The permitted depth of discharge depends on the battery chemistry and the maker's data.
In a series circuit the same current flows through every element and the resistances add: R = R₁ + R₂ + …. The supply voltage divides in proportion to resistance, which is the voltage-divider rule. In a parallel circuit every element has the same voltage across it and the conductances (1/R) add: 1/R = 1/R₁ + 1/R₂ + …. Two resistors in parallel give R₁R₂/(R₁ + R₂), and n equal resistors give R/n. The current divides in inverse proportion to resistance.
Kirchhoff's current law (KCL) says the algebraic sum of currents at a node is zero; it follows from conservation of charge. Kirchhoff's voltage law (KVL) says the algebraic sum of voltages round any closed loop is zero; it follows from conservation of energy. Nodal analysis (KCL with node voltages as unknowns) and mesh analysis (KVL with loop currents as unknowns) turn any circuit into linear equations.
A practical farm example is a 12 V DC lighting circuit fed from a solar-charged battery. A 48 W lamp draws about 48/12 = 4 A. If the cable out and back has a total (loop) resistance of 0.15 Ω, the cable drops 4 × 0.15 = 0.6 V, which is 5 % of the supply. At 230 V the same power needs about one-nineteenth of the current, which is why low-voltage DC systems need short, heavy cables.
Three resistors joined in a triangle (delta) can be replaced by three in a star (wye) and vice versa. For equal resistors the star value is one third of the delta value. This transformation solves bridge networks that are neither series nor parallel.
Network theorems turn a complicated linear circuit into a simple one. They apply to linear, bilateral networks.
Superposition: in a linear network with several sources, the current in any branch is the sum of the currents produced by each source acting alone, with the other voltage sources replaced by short circuits and current sources by open circuits. It does not apply directly to power, which depends on current squared.
Thevenin's theorem: any linear two-terminal network can be replaced by a single voltage source V_Th in series with a resistance R_Th. V_Th is the open-circuit voltage at the terminals; R_Th is the resistance seen at the terminals with all independent sources set to zero. Norton's theorem gives the dual: a current source I_N equal to the short-circuit current, in parallel with R_N = R_Th. The two are related by V_Th = I_N R_Th.
Worked example. A 24 V source feeds a 4 Ω resistor in series, followed by a 12 Ω resistor across the output terminals. The open-circuit voltage is 24 × 12/(4 + 12) = 18 V. With the source shorted, the terminals see 4 Ω in parallel with 12 Ω, which is 3 Ω. A 6 Ω load therefore draws 18/(3 + 6) = 2 A. The Norton current is 18/3 = 6 A.
Maximum power transfer theorem: a load receives the greatest power from a source when its resistance equals the Thevenin resistance of the source, R_L = R_Th. The maximum power is V_Th²/(4R_Th), which for the example is 27 W. At that point the efficiency is only 50 %, because as much power is lost in R_Th as reaches the load. Power systems never operate there; it matters in electronics and signal matching.
A capacitor stores energy in an electric field: Q = CV and the energy is ½CV². Capacitors in parallel add; in series they combine like resistors in parallel. An inductor stores energy in a magnetic field: V = L di/dt and the energy is ½LI². The current in an inductor cannot change instantly and the voltage on a capacitor cannot change instantly.
When a DC source is switched onto a resistor and capacitor in series, the capacitor voltage rises as V(1 − e^(−t/τ)), where the time constant τ = RC. After one time constant the capacitor reaches about 63 % of the final voltage; after five it is practically fully charged. For a resistor and inductor the time constant is L/R. A 100 kΩ resistor with a 47 µF capacitor has τ = 4.7 s, which is how simple timers and switch-debounce circuits work.
Inductive energy matters in practice. When a relay coil, solenoid valve or contactor coil is switched off, the collapsing field tries to keep the current flowing and produces a high voltage spike that can destroy the transistor or contact that switched it. A freewheeling diode across a DC coil, or a resistor–capacitor snubber across an AC one, gives that energy a safe path.
Mains electricity is alternating: the voltage follows v = V_m sin(ωt), where V_m is the peak value and ω = 2πf is the angular frequency. The supply frequency is 50 Hz in most of Europe, Africa, South and Southeast Asia and Australia, and 60 Hz in North America and some other countries; Japan uses both, depending on region. An induction motor runs about 20 % faster on 60 Hz than on 50 Hz.
The root-mean-square (RMS) value of an alternating quantity is the steady DC value that would produce the same heating in a resistor. For a sine wave V_rms = V_m/√2 ≈ 0.707V_m. The average over a half cycle is 2V_m/π ≈ 0.637V_m. The form factor (RMS/average) of a sine wave is 1.11 and the peak or crest factor (peak/RMS) is √2 ≈ 1.414. When a supply is called 230 V, that is the RMS value; its peak is about 325 V, and insulation must withstand the peak.
A phasor is a rotating vector whose length is the RMS value and whose angle is the phase. In complex notation a resistor has impedance R, an inductor jX_L with X_L = ωL, and a capacitor −jX_C with X_C = 1/(ωC). In a resistor current and voltage are in phase; in an inductor current lags voltage by 90°; in a capacitor current leads voltage by 90°. A 0.1 H inductor has X_L = 2π × 50 × 0.1 = 31.4 Ω at 50 Hz, and a 100 µF capacitor has X_C = 31.8 Ω.
In a series R–L circuit the impedance is Z = √(R² + X_L²) and the current lags the voltage by φ = tan⁻¹(X_L/R). With R = 30 Ω and X_L = 40 Ω on 230 V, Z = 50 Ω, the current is 230/50 = 4.6 A, the power factor is R/Z = 0.6 and the real power is I²R = 635 W. An induction motor behaves broadly like this.
In a series R–L–C circuit the reactances oppose each other: Z = √(R² + (X_L − X_C)²). When X_L = X_C the circuit is at series resonance, at the frequency f₀ = 1/(2π√(LC)). At resonance the impedance is a minimum and equal to R, the current is a maximum and in phase with the voltage, and the voltage across L or C can be many times the supply voltage. The quality factor is Q = X_L/R at resonance. In a parallel resonant circuit the opposite happens: the impedance is a maximum and the line current a minimum. In power systems resonance between correction capacitors and supply inductance at a harmonic frequency is a hazard.
In an AC circuit the product of RMS voltage and RMS current is the apparent power S = VI, in volt-amperes (VA). Only part of it does work. The real or active power is P = VI cos φ, in watts, and the reactive power is Q = VI sin φ, in volt-amperes reactive (var). They form the power triangle: S² = P² + Q². The power factor is cos φ = P/S. It is lagging when current lags voltage (inductive loads such as motors, transformers and older fluorescent ballasts) and leading when current leads (capacitive loads).
Reactive power is not wasted energy, but it is not free either. The current needed to carry it heats every cable and transformer between the supply and the load. For the same real power, the line current is inversely proportional to power factor, and the copper loss is proportional to the square of the current. Raising the power factor of a load from 0.7 to 0.95 cuts its current by 1 − 0.7/0.95 = 26 % and the cable loss by about 46 %. This is why many electricity suppliers penalise low power factor in agricultural and industrial tariffs, or bill in kVA; the rules and thresholds vary by country and supplier.
Power factor is corrected by connecting capacitors in parallel with the inductive load, so that the capacitors supply the reactive power locally instead of drawing it through the supply. The capacitor rating needed is Q_c = P(tan φ₁ − tan φ₂), where φ₁ is the original angle and φ₂ the target. For a single-phase capacitor, C = Q_c/(ωV²).
Worked example. A 230 V, 50 Hz single-phase pump motor draws 10 A at 0.8 power factor lagging. Its apparent power is 2,300 VA, real power 1,840 W and reactive power 1,380 var. To raise the power factor to 0.95, tan φ₁ = 0.75 and tan φ₂ = 0.329, so Q_c = 1,840 × (0.75 − 0.329) = 775 var. The capacitance is 775/(2π × 50 × 230²) = 46.6 µF. After correction the motor still uses 1,840 W, but the supply current falls to 1,840/(230 × 0.95) = 8.42 A.
Two cautions. First, correct to slightly lagging, not to unity or leading: over-correction raises the voltage and can cause self-excitation of a motor that is switched off while the capacitor stays connected. Second, capacitors hold charge after disconnection; check them discharged before touching the terminals.
A single-phase supply has one live (phase or line) conductor and a neutral, plus a protective earth conductor. It is used for houses, small workshops, lighting and motors up to a few kilowatts. Nominal low-voltage values differ by country: 230 V at 50 Hz is the IEC standard value used across Europe, India, much of Africa and Asia, and Australia, while North American farms receive a 120/240 V split-phase supply at 60 Hz, in which a centre-tapped transformer gives 120 V from either line to neutral and 240 V between the two lines. Older designations such as 220 V or 240 V remain common in some countries. Always design to the nominal voltage and tolerance stated by the local supplier.
Single-phase power pulsates at twice the supply frequency, because instantaneous power is the product of two sinusoids. A single-phase induction motor therefore produces no starting torque on its own and needs an auxiliary winding, usually with a capacitor, to create a rotating field for starting. Single-phase motors are larger per kilowatt, and suppliers often limit their size.
A three-phase supply has three voltages of equal magnitude displaced by 120° in time, produced by three windings spaced 120° apart in a generator. The phase sequence (R-Y-B, L1-L2-L3 or A-B-C, depending on the convention) is the order in which they reach their peaks. Reversing any two lines reverses the sequence, and a three-phase induction motor then runs backwards. A reversed borehole pump delivers little water, so check rotation whenever connections change.
The three windings or loads can be connected in star (wye, Y) or in delta (mesh, Δ). In star, one end of each phase is joined to a neutral point; the line current equals the phase current and the line voltage is √3 times the phase voltage. A 230 V phase voltage gives 230√3 = 398 V, usually stated as 400 V; the older 240/415 V system gives 415 V. In delta, the phases are joined end to end; the line voltage equals the phase voltage and the line current is √3 times the phase current.
In a balanced system the three phase currents are equal in magnitude and 120° apart, so their phasor sum is zero and no current flows in the neutral. Unbalanced single-phase loads cause neutral current and unequal voltages.
The total power in a balanced three-phase load is P = √3 V_L I_L cos φ, where V_L and I_L are line values and φ is the angle between phase voltage and phase current. The same formula applies to star and to delta. Apparent power is √3 V_L I_L and reactive power √3 V_L I_L sin φ. Unlike single-phase power, total three-phase power is constant through the cycle, so three-phase motors run smoothly and start by themselves, because three windings 120° apart carrying three-phase currents produce a magnetic field of constant strength rotating at synchronous speed.
Connecting the same load in delta instead of star triples its power, because each resistor then sees √3 times the voltage. Three 50 Ω heating elements in a grain dryer take 3,200 W in star on a 400 V supply and 9,600 W in delta. The same principle is behind star-delta starting: a motor designed to run in delta is started in star, which reduces starting line current and starting torque to one third.
Electrical sizing starts from the mechanical duty. The hydraulic (water) power of a pump is P_w = ρgQH, where ρ is water density, g gravitational acceleration, Q flow rate and H total head. The shaft power is P_w divided by pump efficiency, and the electrical input is the shaft power divided by motor efficiency.
Worked example. A submersible pump must deliver 20 L/s against a total head of 30 m. Water power = 1000 × 9.81 × 0.020 × 30 = 5.89 kW. With a pump efficiency of 0.70 the shaft power is 8.41 kW, so a motor of the next standard size above this would be chosen. With a motor efficiency of 0.88 the electrical input is 9.56 kW. On a 400 V three-phase supply at power factor 0.82, the line current is 9,555/(√3 × 400 × 0.82) = 16.8 A. Run for 6 hours a day for a 120-day season, the pump uses 9.56 × 6 × 120 = 6,880 kWh. That energy figure, multiplied by the local tariff, is the running cost; it is often larger over the life of the pump than the purchase price.
The efficiencies used here are illustrative; real values come from the pump curve and motor data at the actual operating point.
A transformer transfers AC power from one circuit to another through a shared magnetic field, usually changing the voltage. It has a primary winding connected to the supply and a secondary winding connected to the load, both on a closed core of laminated silicon steel. An alternating primary current sets up an alternating flux in the core; the changing flux links the secondary and induces an EMF in it by Faraday's law. A transformer does not work on steady DC: a constant flux induces no EMF, and with no back-EMF to limit it the primary current would rise until the winding burned.
The RMS induced EMF is E = 4.44 f N Φ_m, where f is the frequency, N the number of turns and Φ_m the peak flux. A winding of 200 turns on a core carrying a peak flux of 0.02 Wb at 50 Hz induces 4.44 × 50 × 200 × 0.02 = 888 V. Because both windings carry the same flux, the voltage ratio equals the turns ratio: V₁/V₂ = N₁/N₂. In an ideal transformer input power equals output power, so the current ratio is the inverse: I₁/I₂ = N₂/N₁. An impedance on the secondary appears on the primary multiplied by (N₁/N₂)².
Cores are core type or shell type. The core is laminated, with thin insulated sheets, to cut eddy currents, and made of silicon steel to reduce hysteresis loss.
A real transformer has two kinds of loss. Core or iron loss — hysteresis plus eddy current — depends on voltage and frequency and is practically constant whenever the transformer is energised, whatever the load. Copper loss is I²R in the windings and varies with the square of the load. Efficiency is output/(output + iron loss + copper loss), and it is greatest at the load where copper loss equals iron loss. That load is the fraction x = √(P_i/P_cu,FL) of full load.
Worked example. A 100 kVA transformer has an iron loss of 0.3 kW and a full-load copper loss of 1.8 kW. At full load and 0.8 power factor it delivers 80 kW, so efficiency = 80/(80 + 0.3 + 1.8) = 97.44 %. Maximum efficiency occurs at √(0.3/1.8) = 0.408 of full load, about 41 %, where the efficiency at 0.8 power factor is 98.20 %. A lightly loaded rural transformer should therefore have low iron loss, which runs day and night.
The open-circuit test, done on the low-voltage side at rated voltage with the other side open, measures iron loss, because the current is small and copper loss negligible. The short-circuit test, done with the low-voltage side shorted and a reduced voltage applied to the high-voltage side to circulate rated current, measures full-load copper loss, because the flux and therefore the iron loss are small.
Voltage regulation is the change in secondary voltage from no load to full load, expressed as a percentage. Textbooks differ on whether it is referred to the no-load or the full-load voltage, so state the basis. Regulation depends on winding resistance, leakage reactance and load power factor; it is worse at lagging power factor.
Rural electrification usually brings medium-voltage lines (commonly 11 kV, 22 kV or 33 kV in IEC countries, and other values elsewhere) to a pole- or pad-mounted distribution transformer that steps down to the low-voltage supply. Distribution transformers are usually connected delta on the high-voltage side and star on the low-voltage side, with the star point earthed, which provides a neutral for single-phase loads.
The full-load currents of a three-phase transformer are I = S/(√3 V). For a 100 kVA, 11 kV/433 V unit that is 5.25 A on the high-voltage side and 133.3 A on the low-voltage side. Connecting more irrigation pumps than a transformer was planned for overheats it and shortens insulation life.
Small transformers appear throughout farm equipment. Control transformers give a lower voltage for contactor coils and controls. Current transformers (CTs) reduce a large current to a small standard value for metering and relays; a CT secondary must never be left open-circuit while the primary carries current, because a dangerous voltage develops. Autotransformers have one tapped winding; they save copper but do not isolate the load.
Analogue indicating instruments need a deflecting torque, a controlling torque (springs) and a damping torque. The permanent-magnet moving-coil (PMMC) instrument has a coil in the field of a permanent magnet; its torque is proportional to current, so the scale is uniform, but it reads only DC — on AC the average torque is zero. The moving-iron instrument uses the attraction or repulsion of soft-iron pieces; torque is proportional to current squared, so it reads AC and DC (RMS) but has a crowded, non-uniform scale. The electrodynamometer is the basis of the analogue wattmeter.
A PMMC movement is a small-current device and is extended in range with resistors. An ammeter uses a low-resistance shunt in parallel: R_sh = I_m R_m/(I − I_m). A movement with 1 mA full scale and 100 Ω resistance becomes a 1 A ammeter with a shunt of 0.1001 Ω. A voltmeter uses a high-resistance multiplier in series: R_s = V/I_m − R_m, so the same movement reads 250 V full scale with 249.9 kΩ in series.
Every instrument disturbs what it measures. An ammeter adds resistance to the circuit and a voltmeter draws current. Measuring the 5 V midpoint of a divider made of two 100 kΩ resistors across 10 V with a voltmeter of 1 MΩ resistance gives about 4.76 V, because the meter in parallel lowers the lower resistor to 90.9 kΩ. This loading effect is why electronic meters with input resistances of 10 MΩ or more are used on sensor circuits.
A wattmeter has a current coil in series with the load and a pressure (voltage) coil across it; it reads VI cos φ. Three-phase power can be measured with three wattmeters, or, in a three-wire system, with two. In the two-wattmeter method the total power is P = W₁ + W₂ for any load, balanced or not. For a balanced load the power factor angle comes from tan φ = √3(W₁ − W₂)/(W₁ + W₂). With readings of 5 kW and 2 kW, P = 7 kW and tan φ = √3 × 3/7, so φ = 36.6° and the power factor is 0.803. At unity power factor the two readings are equal; at 0.5 one reads zero; below 0.5 one reads negative and its connections must be reversed to read it.
Energy is measured in kWh. Electronic (static) meters have largely replaced rotating-disc induction meters. Electronic meters flash an LED at a rate given by the meter constant in impulses per kWh. Counting pulses is a quick way to find the load on a farm supply: with a constant of 1600 imp/kWh, 40 pulses in 60 s mean 40/1600 kWh in one minute, a power of 1.50 kW.
The digital multimeter measures voltage, current, resistance and often continuity, capacitance and frequency. First, many cheaper meters calculate AC values assuming a pure sine wave; on the distorted waveforms produced by variable-frequency drives, electronic ballasts and inverters, only a true-RMS meter reads correctly. Second, a meter's measurement category (CAT II, III or IV under IEC 61010) must suit the point of use; a main switchboard needs a higher category than a socket.
A clamp meter measures current by clamping its jaws round a single conductor, without breaking the circuit. Clamping round both phase and neutral of a single-phase cable reads close to zero, because the two currents are equal and opposite; any reading that remains is current leaking to earth, which is how earth-leakage clamps find faults.
An insulation resistance tester applies a high DC test voltage — commonly 500 V or 1000 V for low-voltage equipment — between conductors and earth and reads resistance in megohms. It is the routine test on motor windings, pump cables and installations before energising them. The minimum acceptable values are set by national codes and manufacturers; a falling trend over successive tests matters as much as any single reading. Earth electrode resistance needs a separate earth tester with auxiliary spikes.
Semiconductors such as silicon and germanium have a conductivity between that of conductors and insulators, and it rises with temperature. Adding a small amount of a pentavalent impurity such as phosphorus, arsenic or antimony gives extra electrons and makes n-type material; adding a trivalent impurity such as boron, aluminium, gallium or indium gives holes and makes p-type material. In n-type material electrons are the majority carriers; in p-type, holes are.
Where p-type and n-type regions meet, carriers diffuse across and recombine, leaving a depletion region with a built-in potential barrier. Forward bias (p positive) narrows the barrier and current rises steeply once the applied voltage passes about 0.6–0.7 V for silicon or 0.2–0.3 V for germanium. Reverse bias widens the depletion region and only a tiny leakage current flows, until breakdown. A Zener diode is designed to work in reverse breakdown at a precise voltage and is used as a voltage reference.
The photodiode and the solar cell generate current when light falls on the junction; a photovoltaic module is many cells in series. Thyristors (silicon-controlled rectifiers), and power transistors such as the MOSFET and the IGBT, are the switches inside soft starters, variable-frequency drives and solar pump inverters.
A rectifier converts AC to DC. The half-wave rectifier uses one diode and passes only one half of each cycle: the average output is V_m/π, the ripple factor 1.21 and the maximum rectification efficiency 40.6 %. The full-wave rectifier passes both halves, giving an average of 2V_m/π, ripple factor 0.482 and efficiency 81.2 %. The centre-tapped full-wave rectifier uses two diodes and a centre-tapped transformer; each diode must withstand a peak inverse voltage (PIV) of 2V_m. The bridge rectifier uses four diodes, needs no centre tap, and each diode sees a PIV of only V_m, but the current passes through two diodes in series, so two diode drops are lost.
Worked example. A transformer gives 12 V RMS to a bridge rectifier. The peak is 12√2 = 16.97 V. With ideal diodes the average output is 2V_m/π = 10.80 V; allowing two silicon diode drops of 0.7 V the peak available is 15.57 V.
Raw rectified output pulsates. A reservoir capacitor across the output charges to the peak and supplies the load between peaks. For a full-wave rectifier the peak-to-peak ripple is approximately V_r = I_dc/(2fC), because the capacitor is recharged twice per supply cycle. A 0.5 A load on a 2200 µF capacitor at 50 Hz gives a ripple of 0.5/(100 × 0.0022) = 2.27 V. A larger capacitor or a lighter load reduces ripple.
A simple shunt regulator puts a Zener diode across the load and a series resistor between it and the unregulated supply. The resistor must pass the load current plus a minimum Zener current, at the lowest input voltage: R = (V_in − V_Z)/(I_L + I_Z). For a 12 V input, a 5.1 V Zener, a 20 mA load and 5 mA minimum Zener current, R = 6.9/0.025 = 276 Ω.
The bipolar junction transistor (BJT) has three regions — emitter, base and collector — in either n-p-n or p-n-p order. A small base current controls a much larger collector current. The emitter current is the sum: I_E = I_B + I_C. The common-emitter current gain is β = I_C/I_B and the common-base gain α = I_C/I_E, related by β = α/(1 − α). A transistor has three regions of operation: cut-off (off), active (used for amplification) and saturation (fully on, used for switching). The MOSFET is controlled by gate voltage and draws almost no gate current.
A common farm application is a transistor switching a relay or a solenoid valve from a 5 V controller. A 12 V relay coil of 120 Ω draws 100 mA. If the transistor's minimum β is 50 and the designer drives the base with twice the minimum current to ensure saturation, the base current is 4 mA and the base resistor is (5 − 0.7)/0.004 ≈ 1,075 Ω. A freewheeling diode across the coil protects the transistor when it switches off.
An operational amplifier (op-amp) is an integrated high-gain differential amplifier with two inputs, inverting (−) and non-inverting (+), and one output. The ideal op-amp has infinite open-loop gain, infinite input impedance, zero output impedance, infinite bandwidth and zero offset.
With negative feedback — part of the output returned to the inverting input — two rules let you analyse almost any op-amp circuit. First, no current flows into either input. Second, the output adjusts itself so that the voltage difference between the inputs is practically zero. When the non-inverting input is at ground, the inverting input is held at ground potential without being connected to it; this is called a virtual ground.
The output can never exceed the supply rails. An amplifier with a gain of −10, fed with 2 V from ±12 V supplies, does not give −20 V: it saturates near the negative rail. Design the gain so that the largest expected input stays inside the output range.
Inverting amplifier: the input goes through R_i to the inverting input and R_f returns from output to the same input. Gain = −R_f/R_i; the input impedance is R_i. With R_f = 100 kΩ and R_i = 10 kΩ, a 0.2 V input gives −2 V. Non-inverting amplifier: the input goes to the non-inverting input and the divider R_f, R_i sets the feedback. Gain = 1 + R_f/R_i, and the input impedance is very high. Voltage follower (buffer): the output is tied directly to the inverting input, giving a gain of exactly 1 with very high input impedance and low output impedance. A follower lets a high-impedance source such as a pH electrode drive a meter or an analogue-to-digital converter without being loaded.
Summing amplifier: several inputs, each through its own resistor, meet at the virtual ground; V_out = −R_f(V₁/R₁ + V₂/R₂ + …). Differential (difference) amplifier: amplifies V₂ − V₁ and rejects any voltage common to both inputs. Its quality in this respect is the common-mode rejection ratio (CMRR). The instrumentation amplifier, built from three op-amps or bought as one chip, gives a high, precisely set differential gain with very high input impedance and high CMRR. Integrator: a capacitor in the feedback path; for a constant input the output is a ramp. Comparator: an op-amp without negative feedback, whose output swings to one rail or the other depending on which input is higher; adding positive feedback (a Schmitt trigger) gives hysteresis so that the output does not chatter when the input is near the threshold.
Most agricultural sensors produce small signals. A strain-gauge load cell under a weighing hopper or a bin, or on a drawbar dynamometer, changes resistance by a fraction of a percent. Strain gauges are wired in a Wheatstone bridge, which is balanced when R₁/R₂ = R₃/R₄; strain unbalances it. For a quarter bridge with one active gauge, the output is approximately V_ex × GF × ε/4, where GF is the gauge factor and ε the strain. With 10 V excitation, a gauge factor of 2 and a strain of 500 microstrain, the output is 2.5 mV. To present this as 2.5 V to a converter needs a gain of about 1,000, which is the job of an instrumentation amplifier: its high CMRR rejects the hum that long cables pick up in sheds and fields.
A thermocouple gives tens of microvolts per degree and needs amplification and cold-junction compensation. A capacitive soil-moisture probe or a pressure transmitter often gives 0–5 V or a 4–20 mA current loop; the current loop is preferred over long distances because cable resistance does not change the current, and a reading of 0 mA reveals a broken wire. A comparator with hysteresis turns a level sensor into a pump start–stop signal.
Digital circuits represent information with two states, 0 and 1. A binary number's digits (bits) have place values 1, 2, 4, 8 and so on: 10110110 in binary is 128 + 32 + 16 + 4 + 2 = 182 in decimal. Hexadecimal (base 16) groups four bits per digit using 0–9 and A–F, so 10110110 is B6 in hexadecimal; octal groups three bits. Gray code changes one bit between successive values and is used in shaft encoders.
Negative numbers are stored in two's complement: invert every bit of the positive value and add one. In eight bits, +5 is 00000101 and −5 is 11111011. An n-bit two's-complement number covers −2ⁿ⁻¹ to 2ⁿ⁻¹ − 1.
Analogue signals reach digital controllers through an analogue-to-digital converter (ADC). An n-bit ADC divides its reference range into 2ⁿ steps; its resolution is V_ref/2ⁿ. A 10-bit ADC with a 5 V reference resolves 4.88 mV; an 8-bit one, 19.5 mV. Resolution is not accuracy.
The basic gates are AND (output 1 only if all inputs are 1), OR (1 if any input is 1) and NOT (inverts). The derived gates are NAND (NOT-AND), NOR (NOT-OR), XOR (1 when the inputs differ) and XNOR (1 when they are the same). NAND and NOR are universal gates: any logic function can be built from NAND gates alone, or from NOR gates alone.
Boolean algebra manipulates logic expressions. Its laws include A + 0 = A, A·1 = A, A + A = A, A·A' = 0, A + A' = 1, the distributive law A(B + C) = AB + AC and its dual A + BC = (A + B)(A + C), and the absorption rules A + AB = A and A + A'B = A + B. De Morgan's theorems state (A·B)' = A' + B' and (A + B)' = A'·B'; they are how NAND and NOR circuits are converted to AND–OR form.
The Karnaugh map simplifies expressions of up to four or five variables graphically by grouping adjacent 1s in blocks of 1, 2, 4 or 8. A sum-of-products expression simplified in this way needs fewer gates and is easier to check.
Control example. A borehole pump should run when the storage tank is low (L = 1) and there is no dry-run fault (D = 0), and either the automatic timer calls for water (A = 1) or the operator presses manual run (M = 1). The logic is Y = L·D'·(A + M). Writing the expression first catches errors such as a manual override that defeats dry-run protection.
Combinational circuits have outputs that depend only on present inputs. The half adder adds two bits: its sum is A XOR B and its carry A AND B. The full adder adds two bits and a carry-in, and full adders chained together add multi-bit numbers. Multiplexers select one of several inputs; decoders turn a binary code into one active line.
Sequential circuits have memory: their outputs depend on present inputs and past history. The basic memory element is the latch or flip-flop. The SR flip-flop has set and reset inputs, with S = R = 1 forbidden in the NOR form. The D flip-flop copies its D input to the output at the clock edge and is the basic storage cell of registers. The JK flip-flop removes the forbidden state — J = K = 1 makes it toggle. The T flip-flop toggles on every clock when T = 1. Flip-flops chained together make counters and shift registers. n flip-flops give up to 2ⁿ states, so a mod-10 counter needs four.
On farm machines these ideas live inside microcontrollers and PLCs: counting wheel or seed-meter pulses, latching alarms, sequencing irrigation cycles.
A building installation starts at the supplier's service point and meter, then passes to a main switch and a distribution board (consumer unit) that divides the supply into final circuits — lighting, socket outlets, water heater, pump, workshop. Each final circuit has its own protective device sized to protect its cable. Single-pole switches and fuses must be in the phase (line) conductor, never only in the neutral; otherwise a switched-off appliance remains live and can still give a shock.
Cables are run in conduit (metal or plastic), trunking, cable trays, or as sheathed cable clipped to surfaces. Farm buildings are hard on wiring — damp, dust, livestock ammonia, rodents and machines — so use sheathed or armoured cable, corrosion-resistant fittings, suitable IP-rated enclosures and routes out of reach of animals and vehicles. Buried cables need armour or ducting at the depth the local code sets.
Conductor colours differ by country and by date of installation. The IEC harmonised colours are brown for line, blue for neutral and green-and-yellow for the protective earth conductor; in three-phase systems the lines are brown, black and grey. North American practice uses black or red for hot conductors, white for neutral and green or bare copper for ground. Older installations in many countries use red and black, so never identify a conductor by colour alone: test it.
Two-way switching (a staircase or barn-aisle light controlled from either end) uses two two-way switches joined by two strapper wires; adding intermediate switches allows control from more points.
A fuse is a deliberately weak link that melts when the current is too high for too long. A miniature circuit breaker (MCB) does the same job and can be reset: a bimetallic thermal element trips it on sustained overload, and a magnetic coil trips it instantly on short circuit. MCBs come in trip curves (such as B, C and D in IEC practice) that set how many times rated current trips the magnetic element; motor and transformer circuits with high inrush need a curve that will not trip during starting. Motors also get a thermal overload relay set to full-load current, which guards against single-phasing.
A cable is sized on three tests: its current-carrying capacity under the installation conditions (grouping, ambient temperature and insulation type reduce it); the voltage drop at the far end; and its ability to carry the fault current until the protective device operates. Voltage drop is often the limiting test for long farm runs. Codes limit it to a few percent; the figure varies by code, so check yours.
Worked example. A workshop 80 m from the farmhouse board is fed at 230 V single-phase by 4 mm² copper cable carrying 16 A. The loop length is 160 m, so the resistance is 1.72 × 10⁻⁸ × 160/(4 × 10⁻⁶) = 0.688 Ω and the drop is 16 × 0.688 = 11.0 V, or 4.8 %. If the design limit were 3 %, the minimum area for a 20 A load 60 m away would be ρ × 2L × I/ΔV = 1.72 × 10⁻⁸ × 120 × 20/6.9 = 5.98 mm², so the next standard size, 6 mm², is chosen. (Resistance at operating temperature is higher than at 20 °C; codes give tabulated millivolt-per-ampere-per-metre values that include this and the cable's reactance.)
Earthing (grounding) has two purposes. System earthing connects a point of the supply, usually the transformer star point, to earth, fixing the system's voltage relative to the ground. Protective earthing connects exposed metal parts of equipment — motor frames, pump casings, switchboards — to earth so that if a live conductor touches them, a fault current flows and the protective device disconnects the supply before the metal reaches a dangerous voltage for long.
IEC 60364 names the systems by two letters. In TN systems the supply neutral is earthed at the source and the equipment metalwork is connected to it by a protective conductor: TN-S keeps protective earth and neutral separate throughout; TN-C combines them in one PEN conductor; TN-C-S combines them in the supply network and separates them at the installation. In TT systems the equipment metalwork is connected to the consumer's own earth electrode, independent of the supply earth; this is common on rural overhead supplies. TT earth-fault current returns through the soil and is too small to trip a fuse or MCB reliably, so a residual current device (RCD) is essential. The classic IEC condition for TT protection is R_A × I_Δn ≤ 50 V, where R_A is the resistance of the earth electrode and protective conductor and I_Δn the RCD's rated residual operating current; with a 30 mA RCD this allows R_A up to 1,667 Ω, but national codes often set much lower practical limits because soil resistance varies with season. In IT systems the supply is isolated from earth or earthed through a high impedance.
An earth electrode is a rod, plate, strip or mesh in contact with the soil. Its resistance depends mainly on soil resistivity, which rises sharply in dry, sandy, rocky or frozen ground; it falls with longer rods, several rods spaced apart in parallel, and moist soil. Main protective bonding joins metal pipes and structural steel to the main earthing terminal so that accessible metal stays at one potential during a fault.
Electric shock happens when current passes through the body. Harm depends on the current, its path, its duration and its frequency, not on the voltage alone; the voltage matters because, with the body's resistance, it decides the current. IEC 60479 describes the effects of current on people. In broad terms, a fraction of a milliampere of mains-frequency AC can be felt; at around 10 mA many people cannot let go of a gripped conductor because their muscles contract; and currents of a few tens of milliamperes passing through the chest for about a second can cause ventricular fibrillation, in which the heart stops pumping. Thresholds vary between people and current paths; treat these as orders of magnitude.
Body resistance falls sharply when skin is wet, broken or in contact over a large area, and when the voltage is high enough to break down the skin. Farms combine the worst conditions: wet hands, conductive ground and metal structures. If a person's body resistance on a wet floor is taken as 1000 Ω, contact with 230 V drives about 230 mA — many times the fibrillation range.
Animals are more vulnerable than people. Cattle and pigs stand on wet concrete with four hooves widely spaced, and voltages of a few volts between a metal water bowl and the floor can change their behaviour, which is the stray-voltage problem on dairy farms. ASABE EP473 covers equipotential planes in livestock facilities: a mesh of reinforcing steel in the floor bonded to the equipment so that floor and metalwork stay at the same potential.
A residual current device (RCD, also called RCCB, or ELCB for the current-operated type; in North America a ground-fault circuit interrupter, GFCI) compares the current in the line and neutral conductors with a core-balance transformer. If they differ — because some current is leaking to earth, perhaps through a person — it trips. Devices rated at 30 mA or less are used for additional protection of people; higher ratings such as 100 mA or 300 mA protect against fire from earth leakage. Many codes require 30 mA RCDs on sockets, outdoor circuits and agricultural premises; requirements differ, so follow the local code. An RCD cannot detect a shock between line and neutral with no current to earth, and it does not limit overload current, so it complements fuses, MCBs and earthing rather than replacing them. Test its trip button regularly.
Other measures: class II (double-insulated) equipment, marked with a square within a square, needs no protective earth because two independent layers of insulation separate live parts from the user. Extra-low voltage (for example a separated 12 V or 24 V supply from a safety isolating transformer) is used for hand lamps and controls in wet places. Enclosures are graded by the IP code of IEC 60529: the first digit is protection against solids and dust (5 = dust-protected, 6 = dust-tight), the second against water (4 = splashing, 5 = water jets, 6 = powerful jets, 7 = temporary immersion). Wash-down areas in dairies and packhouses need high second digits.
Isolate before you work. Before maintaining a pump, auger, mill or conveyor, switch off and lock off its isolator, attach a tag, and prove the circuit dead with a tested voltage detector — tested on a known live source before and after. Discharge capacitors, and remember that a solar pumping array produces dangerous DC voltage whenever light falls on it, even with the inverter switched off.
Overhead power lines are among the biggest electrical killers on farms. Tipping trailers, sprayer booms, irrigation pipes, grain augers and ladders can touch or come close enough to a line for current to arc across. Minimum safe distances are set by national regulations and depend on the line voltage; find them and mark lines on the farm. If a vehicle touches a line, the occupant should stay inside unless there is fire; if forced to leave, jump clear without touching vehicle and ground together and move away with short shuffling steps, because the ground around the contact point carries a voltage gradient. That gradient creates step potential (between the feet) and touch potential (between hand and feet), and it is also why animals near a fallen line die while a person nearby may survive.
Portable generators must never be plugged into a building's wiring without a transfer (changeover) switch; backfeed can energise the supply line and kill line workers. Electric fence energisers must be types made to the relevant standard (for example IEC 60335-2-76), which deliver short, limited-energy pulses; never connect a fence to the mains. If someone receives a shock, switch off the supply before touching them, or move them with dry non-conducting material; then call for help and begin resuscitation if trained.
A first-year student uses this subject to make sense of every later course that involves a motor, a pump or a sensor. In the laboratory you will verify Kirchhoff's laws and Thevenin's theorem, measure three-phase power with two wattmeters, run open- and short-circuit tests on a small transformer, build rectifier and op-amp circuits, and wire a two-way switching board and an earthed socket circuit. The habits that matter are drawing the circuit before connecting it, checking units at each step, asking which value is RMS and which peak, and never energising a circuit until a supervisor has checked it.
Five years into practice as an irrigation, machinery or processing engineer, you size motors and cables for pumps and dryers, read utility bills for kVA demand and power-factor penalties, specify capacitor banks, and decide whether a long run to a remote borehole needs a larger cable or a local transformer. You commission installations: you check phase rotation before a submersible pump runs, insulation resistance on the cable and motor, RCD operation and earth electrode resistance. You also read sensor wiring diagrams on machines and controllers, and can tell whether a fault is in the sensor, the 4–20 mA loop or the controller input.
With 25 years of experience you plan electrification for whole schemes: feeder and transformer capacity for a district of irrigation pumps, segregation of agricultural feeders, the choice between grid, solar and hybrid supply, and staggered pump scheduling to keep transformers inside their rating. You write specifications and inspect contractors' work against national codes, investigate electrocutions of people and livestock, and set maintenance programmes — insulation testing, thermography and RCD testing — for cooperatives and estates. Your judgement on earthing in high-resistivity soils and on power quality from many variable-speed drives prevents failures that cost far more than the equipment.
At research level the subject underpins instrumentation and energy work: designing low-noise signal chains for load cells, soil sensors and plant-physiology measurements; assessing the energy efficiency of pumping and drying systems against measured electrical data; studying harmonics and power quality when large numbers of variable-frequency drives and solar pump inverters connect to weak rural networks; and investigating stray voltage and livestock response. A researcher must state measurement uncertainty, instrument loading and sampling resolution honestly, because a 10-bit converter or a non-true-RMS meter can bias a whole dataset.
This manual stops at the basics. Electrical machines in depth — DC machines, induction-motor torque–speed curves, starters, variable-frequency drives and motor selection — belong to the separate Electrical Machines & Power Utilisation subject. National wiring codes (IEC 60364 adoptions, the US National Electrical Code, Indian IS 732 and the Indian Electricity Rules/CEA regulations, the Philippine Electrical Code and others) differ in cable ratings, voltage-drop limits, earth-electrode limits, RCD requirements and overhead-line clearances; the manual names the principles but gives no country's tabulated values, and practitioners must use their own code. Microcontrollers, PLC programming, machine networks and power electronics beyond the device level are not covered. Shock thresholds are given only as orders of magnitude from IEC 60479 because exact values vary between individuals and current paths.
Original practice questions written to the syllabus and pattern of the exams named in each question's examTags. They are not past papers and do not reproduce any board's questions.
These notes are free to read here, with no account.
What the Laisha app adds:
Free for ten days, then a subscription. We would rather write that here than have you find it later.