Uploaded March 2026 | Updated November 2026, 2 days ago
PWM sensors send their reading as a duty cycle. Learn how frequency and duty cycle work, and how to test a PWM sensor with a digital multimeter.
▶ Need sensors tested and troubleshot on your machines? We can help: realpars.com/solutions/instrumentation?utm_source=youtube&utm_medium=video&utm_campaign=instrumentation&utm_content=pwm-sensors
▶ For companies, train your whole team with RealPars Business: realpars.com/business?utm_source=youtube&utm_medium=video&utm_campaign=business&utm_content=pwm-sensors
▶ For individuals, learn industrial automation at your own pace: realpars.com/?utm_source=youtube&utm_medium=video&utm_campaign=individual&utm_content=pwm-sensors
Chapters:
0:00 Intro
0:42 Where PWM sensors are used
0:56 Why potentiometers are being replaced
1:39 PWM absolute encoders
2:21 How PWM works
2:49 Frequency and period
3:47 What is duty cycle?
4:33 Example, a PWM encoder
5:04 Why 10 to 90 percent
5:30 Checking it on an oscilloscope
6:37 Testing with a multimeter
8:17 Testing without a duty cycle function
9:02 Summary
==========================
More and more systems use pulse width modulation, or PWM, instead of an analog signal. The output switches on and off at a fixed frequency, so it resists noise and uses less power. PWM sensors measure position, pressure, force, speed and RPM. They are replacing potentiometers, which wear out, and optical encoders, which are sensitive to dust and oil.
The frequency stays the same. What changes is the duty cycle, the on time divided by the period, as a percentage. For example, 0.5 seconds on in a 2 second period is a 25 percent duty cycle. The example encoder runs at 244 Hz on 5 VDC. Its duty cycle goes from 10 percent at 0 degrees to 90 percent at 360 degrees. The range stops short of 0 and 100 percent on purpose, so a reading below 10 or above 90 percent points to a fault.
A PWM sensor is active, so you cannot test it with an ohmmeter. A multimeter that measures frequency and duty cycle, like the Fluke 875, is enough. The frequency should stay steady while the duty cycle follows the movement. If your meter has no duty cycle function, measure DC volts. The reading is the average of the pulses and should rise as the duty cycle rises. If it does not change, the sensor is suspect.
▶ Mastering Motor Control course: realpars.com/courses/mastering-motor-control
▶ Read the full article: realpars.com/blog/pwm-sensors
==========================
Watch next:
What Causes Analog Drift?: youtube.com/watch?v=BYZSTULbR4o
Smart Sensor Explained, What Makes a Sensor Smart: youtube.com/watch?v=5b5xJu8KYrc
Types of Sensors in Industrial Automation: youtube.com/watch?v=J_KoRp8SnoE
Basics of the LVDT: youtube.com/watch?v=o_hEmYip248
==========================
Subscribe for new videos: youtube.com/@realpars?sub_confirmation=1
Follow us on LinkedIn: linkedin.com/company/realpars
Follow us on Instagram: instagram.com/realparsdotcom
Like us on Facebook: facebook.com/therealpars
Follow us on X: https://x.com/realpars
#PWM #Sensors #RealPars
PWM sensors send their reading as a duty cycle. Learn how frequency and duty cycle work, and how to test a PWM sensor with a digital multimeter.
▶ Need sensors tested and troubleshot on your machines? We can help: realpars.com/solutions/instrumentation?utm_source=youtube&utm_medium=video&utm_campaign=instrumentation&utm_content=pwm-sensors
▶ For companies, train your whole team with RealPars Business: realpars.com/business?utm_source=youtube&utm_medium=video&utm_campaign=business&utm_content=pwm-sensors
▶ For individuals, learn industrial automation at your own pace: realpars.com/?utm_source=youtube&utm_medium=video&utm_campaign=individual&utm_content=pwm-sensors
Chapters:
0:00 Intro
0:42 Where PWM sensors are used
0:56 Why potentiometers are being replaced
1:39 PWM absolute encoders
2:21 How PWM works
2:49 Frequency and period
3:47 What is duty cycle?
4:33 Example, a PWM encoder
5:04 Why 10 to 90 percent
5:30 Checking it on an oscilloscope
6:37 Testing with a multimeter
8:17 Testing without a duty cycle function
9:02 Summary
==========================
More and more systems use pulse width modulation, or PWM, instead of an analog signal. The output switches on and off at a fixed frequency, so it resists noise and uses less power. PWM sensors measure position, pressure, force, speed and RPM. They are replacing potentiometers, which wear out, and optical encoders, which are sensitive to dust and oil.
The frequency stays the same. What changes is the duty cycle, the on time divided by the period, as a percentage. For example, 0.5 seconds on in a 2 second period is a 25 percent duty cycle. The example encoder runs at 244 Hz on 5 VDC. Its duty cycle goes from 10 percent at 0 degrees to 90 percent at 360 degrees. The range stops short of 0 and 100 percent on purpose, so a reading below 10 or above 90 percent points to a fault.
A PWM sensor is active, so you cannot test it with an ohmmeter. A multimeter that measures frequency and duty cycle, like the Fluke 875, is enough. The frequency should stay steady while the duty cycle follows the movement. If your meter has no duty cycle function, measure DC volts. The reading is the average of the pulses and should rise as the duty cycle rises. If it does not change, the sensor is suspect.
▶ Mastering Motor Control course: realpars.com/courses/mastering-motor-control
▶ Read the full article: realpars.com/blog/pwm-sensors
==========================
Watch next:
What Causes Analog Drift?: youtube.com/watch?v=BYZSTULbR4o
Smart Sensor Explained, What Makes a Sensor Smart: youtube.com/watch?v=5b5xJu8KYrc
Types of Sensors in Industrial Automation: youtube.com/watch?v=J_KoRp8SnoE
Basics of the LVDT: youtube.com/watch?v=o_hEmYip248
==========================
Subscribe for new videos: youtube.com/@realpars?sub_confirmation=1
Follow us on LinkedIn: linkedin.com/company/realpars
Follow us on Instagram: instagram.com/realparsdotcom
Like us on Facebook: facebook.com/therealpars
Follow us on X: https://x.com/realpars
#PWM #Sensors #RealPars

![IO-Link to Cloud with ifm and MQTT
Send sensor data straight to the cloud with an ifm DataLine IO-Link master and MQTT, without touching the PLC program. A full step by step demo.
▶ Need IO-Link sensors and plant data connected to your systems? We can help: https://www.realpars.com/solutions/instrumentation?utm_source=youtube&utm_medium=video&utm_campaign=instrumentation&utm_content=io-link-to-cloud
▶ For companies, train your whole team with RealPars Business: https://www.realpars.com/business?utm_source=youtube&utm_medium=video&utm_campaign=business&utm_content=io-link-to-cloud
▶ For individuals, learn industrial automation at your own pace: https://www.realpars.com/?utm_source=youtube&utm_medium=video&utm_campaign=individual&utm_content=io-link-to-cloud
Chapters:
0:00 Intro
0:27 Why send data from sensor to cloud
1:50 The Y path of IO-Link data
2:55 MQTT, JSON and HTTPS
3:19 The demo hardware
3:54 Connecting the IO-Link master
4:17 Finding the master in moneo configure
4:29 The IoT-Core Visualizer page
5:05 Setting up the data subscription
6:18 MQTT broker settings
7:04 Running the Mosquitto broker
8:12 Viewing the data in MQTTX
9:10 Summary
ifm DataLine IO-Link masters can send sensor data to the cloud without changing the control system. Companies can change what data they collect without stopping the process, and the PLC cycle time is not affected, because the PLC does not collect or forward the data. This is the Y path. According to ifm, only about 5 percent of a sensors data is process data for the PLC. The other 95 percent, like diagnostics and alarms, can go straight to higher level software over MQTT, JSON or HTTPS for condition, energy and quality monitoring.
The demo sends data from an O5D150 distance sensor through an AL1326 IO-Link master using MQTT, a lightweight publish and subscribe protocol. Connect the PC to the masters IoT port, not the EtherNet/IP ports. Find the master in moneo configure, then open its IoT-Core Visualizer at the IP address followed by /web/subscribe. Set Timer[1] to 5000 so it changes every 5 seconds, and add a subscription that sends the pdin process data each time the timer changes. Enter a consumer ID, the PCs IP address, port 1883 and a topic.
On the PC, run the Mosquitto broker with a listener and anonymous access allowed. Open the firewall for port 1883 if needed. Then subscribe to the topic in an MQTT client like MQTTX and watch the values change as the sensor moves. For a real setup, you can swap the local broker for a cloud broker like HiveMQ.
▶ IO-Link Essentials course: https://www.realpars.com/courses/io-link-essentials-industry-4-0
▶ Previous IO-Link video: https://youtu.be/jv-Xiv3GcLc
▶ Read the full article: https://www.realpars.com/blog/io-link-to-cloud
Watch next:
Sensor to Cloud with Emerson Smart Devices: https://www.youtube.com/watch?v=JlsbTJC3Lr0
Smart Sensors & Actuators: Basics and Benefits in IIoT: https://www.youtube.com/watch?v=i0_gJFYyb2g
Smart Sensor Explained, What Makes a Sensor Smart: https://www.youtube.com/watch?v=5b5xJu8KYrc
Profibus PA vs Profibus DP Explained: https://www.youtube.com/watch?v=OZPLOMj_M6U
Subscribe for new videos: https://www.youtube.com/@realpars?sub_confirmation=1
Follow us on LinkedIn: https://www.linkedin.com/company/realpars
Follow us on Instagram: https://www.instagram.com/realparsdotcom/
Like us on Facebook: https://www.facebook.com/therealpars/
Follow us on X: https://x.com/realpars
#IOLink #IIoT #RealPars IO-Link to Cloud with ifm and MQTT](https://i.ytimg.com/vi/VbC3P8NX91o/mqdefault.jpg)








