Skip to content

SunitRaut/Smart-Duty-Cycling-Arduino

Repository files navigation

Smart-Duty-Cycling-Arduino

GitHub release license

Smart Duty Cycling Library for Arduino. This library keeps ON/OFF timings for your MCU in background so you can perform your tasks without worrying about duty cycling.

Features

  • Generate Duty Cycle with Frequency and Duty Cycle as inputs

  • Alternatively, generate duty cycle with custom wake and sleep periods

  • Non-blocking Duty cycle generation. Perform other operations in your code without being blocked by library operations.

  • You can synchronize two or more MCUs to go into Sleep/Wake period at the same time.

Applications

This library can be used for following applicaions:

  • PWM Generation using Digital Pins

  • Sleep-Wake Cycles for Power Saving in Wireless Devices and other embedded systems

  • Any Application that operates in periodic ON/OFF, Active/Inactive, Wake/Sleep Periods.

Please check sample Examples provided with this library for understanding library usage.

Here is an instructable with simple LED example

If you Like my Work, Buy me a Coffee!

If this library makes your life easier and has helped bring your project to reality, I would appreciate a small token of gratitude. Click on the below icon to contribute.

Buy Me A Coffee