An optical sensor (光学センサー) is a sensor that detects whether light is falling on it and how strong that light is, then converts this into an electrical signal.
A sensor is an input-side component that reads a physical quantity such as light, sound, temperature, or movement and turns it into an electrical signal a computer can work with. An optical sensor converts the amount of light reaching its light-receiving surface into a current or voltage level, so it can tell a device whether it is bright or dark, or whether something is blocking the light. When a smartphone brightens or dims its screen to suit the room, for example, the work is done by an ambient light sensor, one type of optical sensor.
AnalogyThink of a lookout posted in a room who notices when the light changes and reports it.
Exam points
ExamA sensor (センサー) brings a physical quantity in as an electrical signal, while an actuator (アクチュエーター) does the reverse, turning an electrical signal it receives into movement or force.
An infrared sensor (赤外線センサー) detects infrared light, which has a longer wavelength than visible light and cannot be seen by the human eye.
A person approaches
The infrared reaching the sensor changes
The change becomes an electrical signal
The light switches on
The device receives the signal, concludes someone is there, and turns on the light.
3 / 3
Any object with a temperature gives off infrared light that depends on how warm it is. An infrared sensor reads the amount of this infrared and how it changes, so it can tell when people come and go, or how warm an object is, even in the dark. It is found in the motion detectors of lights that switch on as someone walks up, and also in the part of a TV that picks up the infrared signal sent by the remote control.
AnalogyIt is like skin so sensitive to heat that it can feel a person's warmth even in total darkness.
How to remember"Infra" is Latin for "below": infrared sits just below red in frequency, past the edge of what the eye can see.
Exam points
Mix-upAn infrared sensor (赤外線センサー) also works by receiving light, but what it detects is invisible infrared. Unlike an optical sensor (光学センサー), which measures brightness, it uses heat such as body warmth as its cue and can spot people in the dark.
Optical sensor vs. Infrared sensor
Aspect
Optical sensor
Infrared sensor
Key differenceLight detected
Presence or strength of light (brightness) in general
Infrared only (such as that given off by warm objects)
What it reveals
How bright the surroundings are, whether light is blocked
Whether a warm object is present, and its temperature
A magnetic sensor (磁気センサー) detects the strength and direction of the magnetic field around it.
A magnetic field is the region around a magnet or an electric current where magnetic force acts. The Earth produces a weak field of its own, so measuring its direction with a magnetic sensor reveals which way is north; this is how a smartphone's electronic compass shows your heading in a map app. Fix a magnet to a door, and the same kind of sensor can also tell whether the door is open or shut from whether the field is present.
AnalogyIt is a pocket compass that reports north with an electrical signal instead of a needle.
Exam points
Mix-upWhat a magnetic sensor (磁気センサー) learns from the Earth's field is direction, meaning which way is north. A device's tilt and how fast its orientation changes are handled by sensors that measure different quantities: acceleration and angular velocity.
An accelerometer (加速度センサー) detects how quickly an object's speed changes, which is its acceleration.
Tilt the device sideways
The direction of gravity shifts
Changes in acceleration on each axis are detected
The screen turns to landscape
From those readings the device works out its tilt and switches the screen orientation.
3 / 3
Acceleration is the amount by which speed changes per unit of time. Besides changes in speed such as starting off or stopping suddenly, an accelerometer also senses the direction of gravity, which acts even when the device is still, so it can tell how the device is tilted. It is what lets a smartphone switch between portrait and landscape, and what lets a pedometer count the jolts of each step.
AnalogyIt is like a train passenger who knows the train is braking because their body is pulled forward.
How to rememberThe word itself says it: accelerating means changing speed. Cruise at a steady speed and the reading stays the same.
Exam points
Mix-upAn accelerometer (加速度センサー) measures acceleration including gravity, so it can tell tilt even when the device is still. How fast the device is rotating is measured by a gyroscope sensor (ジャイロセンサー).
A gyroscope sensor (ジャイロセンサー) detects how fast an object is rotating, which is its angular velocity.
Angular velocity is how many degrees an object's orientation changes per unit of time. A gyroscope sensor measures which axis a device is turning around and how fast, so it can follow small changes in orientation. It keeps camera images steady and drones level, and it is often paired with an accelerometer to work out a device's orientation.
AnalogyIt is like sitting in a swivel chair with your eyes closed and still feeling it when someone spins you around.
How to remember"Gyro" comes from the Greek word for "turning"; the name traces back to the gyroscope, a device that relies on a spinning top keeping its axis pointed the same way.
Exam points
Mix-upA gyroscope sensor (ジャイロセンサー) gives a reading only while orientation is changing. If the device stays tilted but stops moving, the rotation speed is 0.
Accelerometer vs. Gyroscope sensor
Aspect
Accelerometer
Gyroscope sensor
Key differenceQuantity measured
Change in speed (acceleration) and the direction of gravity
Speed of rotation (angular velocity)
Strength
Sensing tilt, shaking, and impacts
Tracking quick changes in orientation
Example uses
Portrait/landscape switching, step counters
Shake correction, drone attitude control
Key points
A sensor is an input-side component that turns a physical quantity into an electrical signal, and it is how an IoT device learns about its surroundings.
Each sensor detects a different quantity (light, infrared, magnetic field, acceleration, or angular velocity), and that quantity decides what the device can find out.
A single device such as a smartphone often carries several sensors and combines their readings.