Controling fan rotation using PWM and spindle gauge

Easy scenario. Students should change of fan rotation in the lab. Warning: directly observed fan rotation is impossible (due net lag)

Target group

This hands-on lab guide is intended for the Beginners.


Generally students need understand voltage controlled by PWM. For realising scenario, students need access to documentation PWM register.


  1. using schematic, check fan connection,
  2. using ESP documentation check registers with PWM controling,
  3. write the program which:
  • send value 0 as duty of PWM,
  • wait 15 seconds,
  • send value 50 as duty of PWM,
  • wait 15 seconds,
  • send value 100 as duty of PWM.
  1. using the camera observe spindle gauge.
  2. You can use other wait time and value of duty, but wait time should allow observe effect by camera (against net lag)


On display should be visible value of effective voltage on fan.


Check the start effective voltage.


Instead using built-in PWM, you can send “0” and “1” for obtain required duty factor.

Result validation

Only way for validation is check spindle gauge by camera.


This section is to be extended as new questions appear.
When using the printed version of this manual please refer to the latest online version of this document to obtain the valid and up-to-date list of the FAQ. Provide some FAQs in the following form:
Question?: Answer.

en/iot-open/remotelab/sut/generalpurpose/b3.txt · Last modified: 2019/01/03 00:37 by gdrabik Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0