Skip to main content
Virtual Laboratory
Physics Simulations Free · No Account Free & source-available · CC BY-NC-SA 4.0

Applications of Sensors: Automatic Control Circuits

Sensor control circuits convert temperature or light changes into electrical switching signals. Semiconductor NTC thermistors and CdS photoresistors drop sharply in resistance as carrier concentration rises, shifting a series voltage divider output U_A = V_CC·R_lower/(R_upper + R_lower) across a Schmitt trigger's hysteresis thresholds to drive an isolated relay. Calibrate sensors, troubleshoot reversed wiring, and tune thresholds below.

Applications of Sensors: Automatic Control Circuits — 3D Bench Preview

Interactive 3D Lab Preview

Runs right on this page in fullscreen · No account required

  • Calibrate an NTC thermistor in a 15–85 °C water bath (lesson settings: R₂₅ = 10.00 kΩ, B = 3450 K) and a CdS photoresistor under a shading hood, explaining their sharp nonlinear resistance drop via semiconductor carrier excitation
  • Design series voltage-divider inputs for automatic dark-activated street lighting and a 65 °C over-temperature alarm, troubleshoot reversed upper/lower divider arms, and tune potentiometer R₁ to save energy
  • Explain how an inverting Schmitt trigger's dual-threshold hysteresis (lesson settings: V_T+ = 1.60 V / V_T- = 0.80 V) suppresses switching chatter and how an electromagnetic relay isolates a 5.0 V control circuit from a high-voltage load

Press Esc or your browser Back button anytime to return to the guide.

Principle, Mechanism & Key Concepts

Applications of Sensors: Automatic Control Circuits

What You Will Investigate
Goal 01

Calibrate an NTC thermistor in a 15–85 °C water bath (lesson settings: R₂₅ = 10.00 kΩ, B = 3450 K) and a CdS photoresistor under a shading hood, explaining their sharp nonlinear resistance drop via semiconductor carrier excitation

Goal 02

Design series voltage-divider inputs for automatic dark-activated street lighting and a 65 °C over-temperature alarm, troubleshoot reversed upper/lower divider arms, and tune potentiometer R₁ to save energy

Goal 03

Explain how an inverting Schmitt trigger's dual-threshold hysteresis (lesson settings: V_T+ = 1.60 V / V_T- = 0.80 V) suppresses switching chatter and how an electromagnetic relay isolates a 5.0 V control circuit from a high-voltage load

When evening clouds drift overhead or tree shadows sway, a crude light switch makes streetlights chatter on and off. How can one inverting Schmitt trigger and one transparent relay keep lamps rock-steady while letting a 5.0 V signal safely control a 220 V mains circuit?

Inside modern incubators, thermal fire alarms, and smart-city lighting cabinets, threshold-based automatic control systems rely on the same four-stage handoff: a sensing element translates temperature or light into resistance changes, a voltage divider maps resistance into a continuous voltage, a Schmitt trigger filters critical-zone noise with upper and lower thresholds to output a crisp digital command, and an electromagnetic relay pulls its armature across an air gap to switch a high-power load. Building and tuning this chain reveals the core logic of electronic sensor control.

A sensor converts a non-electrical quantity into resistance, a voltage divider maps it into voltage, Schmitt hysteresis blocks threshold chatter, and an electromagnetic relay isolates low-voltage control from high-voltage power.
Automatic Sensor Control Chain: Voltage Divider → Schmitt Hysteresis → Isolated Relay (Lesson Settings)1. Sensor Divider (+5.0 V)+5.0 VR₁ (1–50 kΩ)U_ALDR / NTCGND2. Inverting Schmitt TriggerU_Y driveUpper V_T+ = 1.60 V (dark U_A rises)Lower V_T- = 0.80 V (ΔV_H = 0.80 V)3. Transparent Relay (HV Isolation)5 V magnet coilArmature & NOInsulation barrierHV load (illustrative)Dark: R_LDR surges → U_A ≥ 1.60 V → lamp ON
2D Visual Guide & Diagram — Applications of Sensors: Automatic Control Circuits

Cause-and-Effect Chain

01
Condition: Warm the water bath (15–85 °C) or adjust illuminance with the shading hood

Thermal energy or incident photons excite semiconductor valence electrons across the band gap into the conduction band, multiplying free carrier concentration n far faster than lattice scattering grows

→ NTC resistance drops exponentially with temperature (lesson setting: 10.00 kΩ at 25.0 °C, B = 3450 K); CdS photoresistor dark resistance rises dozens of times above bright resistance
02
Condition: Connect upper potentiometer R₁ in series with lower LDR across +5.0 V

The series voltage divider splits supply voltage in proportion to resistance, U_A = 5.0 · R_LDR / (R₁ + R_LDR), mapping resistance swings monotonically into voltage

→ In 560 lx daylight, R_LDR ≈ 2.65 kΩ and R₁ = 26.0 kΩ give U_A = 0.46 V (low); in darkness, surging R_LDR lifts U_A past 1.60 V
03
Condition: Feed U_A into the inverting Schmitt trigger

Preset dual thresholds V_T+ = 1.60 V and V_T- = 0.80 V (0.80 V hysteresis, lesson setting) block repeated switching from small twilight cloud or shadow fluctuations

→ At U_A ≥ 1.60 V, output U_Y snaps to 0.10 V (low); as light returns, U_A must fall below 0.80 V before U_Y resets to 4.90 V (high)
04
Condition: Drive the 5.0 V electromagnetic relay coil from the logic output

Energizing the low-voltage coil magnetizes the iron core, overcoming the return spring to pull the armature and close the right-hand normally open contact while keeping control and load electrically isolated

→ Safely switches the separately powered streetlight pole or red over-temperature warning beacon in this simulation, preventing high voltage from entering the low-voltage control side

Core Formulas & Quantitative Relations

Series Sensor Voltage-Divider Equation
U_A = V_CC · R_lower / (R_upper + R_lower)

Standard dark-activated streetlamp wiring places potentiometer R₁ on top (R_upper = R₁) and the LDR on the bottom (R_lower = R_LDR). To wait until darker twilight before turning on (saving energy), increase R₁.

NTC Semiconductor Thermistor Exponential Law
R(T) = R_0 · exp[ B · (1 / T − 1 / T_0) ]

Here T is thermodynamic temperature in kelvin (K). This lesson sets R_0 = 10.00 kΩ (at T_0 = 298.15 K) and B = 3450 K; unlike a metal's positive temperature coefficient ρ = ρ_0(1 + αΔT), NTC resistance drops steeply as temperature rises.

Schmitt Trigger Hysteresis Width (Lesson Setting)
ΔV_H = V_T+ − V_T- = 1.60 V − 0.80 V = 0.80 V

This dual-threshold latch band is an illustrative lesson setting that suppresses rapid relay contact chatter when input voltage fluctuates near the switching boundary.

Divider Polarity, Energy-Saving R₁ Tuning, and Schmitt Hysteresis on the 3D Bench

The left bench station calibrates NTC and LDR resistance curves, while the right station displays the divider swap switch, blue potentiometer R₁, and transparent relay actuation in real time.

  • Standard top-R₁ / bottom-LDR wiring: darkness raises R_LDR → U_A climbs past 1.60 V (lesson setting) → lamp turns on. Flipping the swap switch reverses the arms and causes the lamp to stay on in bright daylight.
  • Raising R₁ delays turn-on to save energy: turning blue potentiometer R₁ up from 26.0 kΩ to 42–50 kΩ (for example, 46.0 kΩ) forces R_LDR to reach a higher dark resistance in deeper night before U_A hits 1.60 V.
  • Symmetric transfer to an over-temperature alarm: move the NTC thermistor (whose resistance falls with heat) to the upper arm and place R₁ = 1.2 kΩ (lesson setting) on the lower arm; at ≥ 65 °C (R_NTC ≤ 2.54 kΩ), U_A ≥ 1.60 V triggers the flashing red beacon.
  • Direct view inside the transparent relay: watch the low-voltage coil, iron core, return spring, moving armature, and high-voltage normally open contact move together (geometry and switching time are illustrative).
Effect of Raising R₁ on Divider Output U_ADarker → higher R_LDR (kΩ)U_A (V)V_T+ = 1.60 VR₁ = 26 kΩ (lights earlier)Raise R₁ = 46 kΩ (darker turn-on)Schmitt Inverter Hysteresis Loop (Lesson Setting)Input U_A (V)U_Y (V)0.80 V (V_T-)1.60 V (V_T+)4.90 V (lamp OFF)0.10 V (lamp ON)ΔV_H 0.80 V

Concept Breakdown

01

Why does heating a tungsten bulb filament raise its resistance, while heating an NTC thermistor probe in hot water makes its resistance plunge?

Semiconductor Sensing: Nonlinear Calibration of NTC Thermistors and CdS Photoresistors

In a pure metal, free-electron density is nearly constant, so higher temperature strengthens cation lattice vibrations and scattering, raising resistivity linearly with temperature. By contrast, NTC thermistors and cadmium sulfide (CdS) photoresistors are built from intrinsic or doped semiconductors. Thermal energy or incident photons excite many valence electrons across the band gap into the conduction band; this exponential surge in free carrier concentration n completely outweighs lattice scattering. In this lesson's left-station model (lesson settings: R₂₅ = 10.00 kΩ, B = 3450 K), warming the water bath from 25.0 °C to 65.0 °C drops NTC resistance sharply to about 2.54 kΩ, swinging the right-zero analog ohmmeter needle strongly to the right and tracing a steep downward R–T curve.

Try in the 3D bench: In Steps 1–3, turn the left water-bath temperature control (15–85 °C), drag the black shading hood over the LDR, and open "Band Chamber" to compare semiconductor carrier excitation against metal lattice scattering.
02

How can one variable resistor choose whether a streetlight turns on at early dusk or deep night while ignoring brief twilight shadows?

Voltage Divider and Schmitt Hysteresis: Preventing Flicker and Tuning Turn-On Darkness

In the +5.0 V voltage divider, placing potentiometer R₁ on the upper arm and photoresistor LDR on the lower arm to ground sets midpoint voltage U_A = 5.0 · R_LDR / (R₁ + R_LDR). In 560 lx daylight, R_LDR is about 2.65 kΩ, so R₁ = 26.0 kΩ keeps U_A near 0.46 V. As night falls, R_LDR surges and pulls U_A upward. Once U_A crosses the Schmitt inverter's preset upper threshold of 1.60 V, output U_Y flips to 0.10 V (low) and turns the streetlight on. Even if passing headlights or thin clouds dip U_A briefly to 1.15 V, the output stays latched until U_A drops below the 0.80 V lower threshold. To save energy by delaying turn-on until darker conditions, increase upper potentiometer R₁ (such as to 42–50 kΩ) so R_LDR must climb to a larger dark resistance before U_A reaches 1.60 V.

Try in the 3D bench: In Steps 4–6, flip the right-station divider swap switch to inspect the "daylight on, night off" polarity fault, switch back to standard wiring, and raise blue potentiometer R₁ to 46.0 kΩ to compare 60 lx versus ≤ 20 lx.
03

Why can you never wire a 5.0 V logic chip pin directly to a 220 V streetlight live line?

Transparent Electromagnetic Relay: Safe Isolation Between Low-Voltage Logic and Mains Power

Digital logic gates operate at 5.0 V and source only a few milliamperes; connecting one directly to a high-voltage AC power circuit would destroy the chip and create a severe shock hazard. An electromagnetic relay places a physical insulation barrier between the two circuits. The logic output only switches the low-voltage electromagnet coil on the left; once the coil energizes (lesson setting: coil voltage ≥ 3.5 V pulls in), the magnetized core attracts the metal armature and drives an insulated actuator to close the separately powered high-voltage normally open contact on the right, switching a streetlight or over-temperature warning beacon safely.

Try in the 3D bench: In Steps 5 and 7, switch to the "Relay Close-Up" camera view to watch coil magnetization, armature pull-in, and return-spring release the moment U_A crosses 1.60 V or 0.80 V.

Reference & Comparison Table

Typical operating modes and control readings on the 3D sensor control bench (computed from lesson settings)
Operating ModeEnvironmental InputSensor & Potentiometer Resistance (Lesson Setting)Node U_A & Inverter U_YRelay & Load State
Room-temp bath baseline (Step 1)Water bath T = 25.0 °CNTC R = 10.00 kΩ (B = 3450 K)Left-station calibrationRight-zero ohmmeter centered at baseline
Over-temp alarm transfer (Step 7)Chamber temp T ≥ 65.0 °CNTC R ≤ 2.54 kΩ, R₁ = 1.2 kΩU_A ≥ 1.60 V, U_Y = 0.10 V (Low)Coil pulls in; flashing red over-temp alarm
Bright daylight standby (standard)Ambient lux E = 560 lxR₁ = 26.0 kΩ, R_LDR = 2.65 kΩU_A = 0.46 V (< 1.60 V), U_Y = 4.90 VCoil de-energized; NO contact open; lamp OFF
Dark-night activation (standard)Ambient lux E ≤ 45 lxR₁ = 26.0 kΩ, R_LDR ≥ 16.25 kΩU_A ≥ 1.92 V (> 1.60 V), U_Y = 0.10 VCoil pulls armature in; streetlight ON
Twilight hysteresis band (Step 5)Rises back to E ≈ 105–170 lx after turn-onR₁ = 26.0 kΩ, 0.80 V < U_A < 1.60 VU_Y stays latched at 0.10 V0.80 V hysteresis band suppresses chatter
Energy-saving dark tune (Step 6)60 lx OFF / ≤ 20 lx ONRaise R₁ to 42–50 kΩ (e.g., 46.0 kΩ)U_A = 1.12 V at 60 lx; 1.94 V at 20 lxStreetlight delays turn-on until darker night
Common Misconceptions

Common Misconceptions

Does every conductor's resistance rise with temperature, making an NTC thermistor just a more sensitive metal wire?

No. Metal thermometers (such as platinum Pt100) do increase in resistance when heated, but NTC thermistors used in automatic control are sintered semiconductor oxides. Heating excites huge numbers of free charge carriers, making NTC resistance drop exponentially—verify this directly in Step 1 and the Band Chamber in Step 3.

In a top-R₁ / bottom-LDR streetlight circuit, should I decrease R₁ to make the lamp wait until darker night before turning on?

No—you must do the opposite. At turn-on, the divider ratio R_LDR / R₁ = 1.60 / (5.0 − 1.60) ≈ 0.471 is fixed. Darker conditions mean a larger R_LDR at turn-on, so you must increase upper potentiometer R₁ proportionally (to 42–50 kΩ); decreasing R₁ makes U_A cross 1.60 V too early. Test 26.0 kΩ versus 46.0 kΩ in Step 6.

Is the 0 Ω mark on an analog pointer ohmmeter on the far left of the dial, just like on a voltmeter?

No. An ohmmeter scale follows closed-circuit Ohm's law: shorting the probes (R = 0 Ω) drives full-scale current, placing 0 Ω on the far right of the dial. As resistance decreases (for instance, when an NTC heats up), the needle swings right across a nonlinear scale—watch this in Step 1.

When an electromagnetic relay switches on, does the 5.0 V control current flow through the contacts to power the 220 V streetlight?

No. The relay coil and load contacts are electrically insulated from each other. The 5.0 V control signal only creates a magnetic field in the coil to pull the metal armature, while the streetlight draws power entirely from its own isolated load circuit—inspect the barrier in Step 5.

Practice Quiz

Test your understanding with 6 diagnostic questions

Check concepts, graphs, and experimental error reasoning with immediate feedback for every choice.

Embed & Source Availability

Embed this simulation

Paste this iframe snippet into your non-commercial course page or learning platform.

Free & Source-Available (CC BY-NC-SA 4.0)

This simulation is licensed under CC BY-NC-SA 4.0 for non-commercial educational use, embedding, and adaptation with attribution.

Browse All 159 Free Labs →
Sources, Revision & Feedback

Sources, Revision & Feedback

Quiz →