PWM Output (Tracking Power) - DitroniX/IPEM-IoT-Power-Energy-Monitor GitHub Wiki
A feature added to the main Test Code is the ability have PWM Output from the IPEM Board, which tracks Power (or any other variable provided).
An example of the output can be seen in this Output File
Three User Variables are provided, which enable and disable this function.
Variables USER and External (Power Up Default)
-
EnablePWMLocal= true; // Enable/TurnOn PWM Local. Default(false) Soft Switch for Local Direct Control /PWM-On /PWM-Off
-
EnablePWMRemote= false; // Enable/Allow PWM Remote Power Control. Default(false) Soft Switch for Remote Control /PWM-Remote
Development and testing Use. EnablePWMTestOutput will over-ride EnablePWMLocal and EnablePWMRemote
- EnablePWMTestOutput= false; // Enable/TurnOn Continuous PWM Cycle Test. Will Bypass Actual Readings. Default(false)
Note
A PWM connection can be taken from the USER GPIO pads on the bottom of the board, marked 17/TX and 16/TX. The default GPIO in the PWM code uses GPIO17. So you can simply connect the 17 and GND (Ground).
WIP. These notes are work-in-progress and will be expanded.