TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136807 times)
  2. FAT32 Library (69983 times)
  3. Network Ethernet Library (55951 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41892 times)
  6. FT800 Library (41192 times)
  7. GSM click (28990 times)
  8. PID Library (26420 times)
  9. mikroSDK (26376 times)
  10. microSD click (25382 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

PWM Demo

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.0.0.18

mikroSDK Library: 2.0.0.0

Category: Force

Downloaded: 255 times

Not followed.

License: MIT license  

The application demonstrates PWM functionality.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "PWM Demo" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "PWM Demo" changes.

Do you want to report abuse regarding "PWM Demo".

  • Information
  • Comments (0)

mikroSDK Library Blog

PWM DEMO

This is a simple example that utilizes mikroSDK 2.0 PWM driver library. In this demo, we demonstrate how to configure and enable PWM module and adjust the duty cycle using buttons. Increasing the duty cycle results in a brighter LED illumination, while decreasing it reduces the brightness.

  • Author : MIKROE
  • Version : 2.0.0.18
  • Date : June 2023.

Hardware Support

  • Put PORT LED switches in ON position.

    • image
  • Put switches for buttons on the left side of the board in PULL DOWN position

    • in case of 8-bit port:
      • image
    • in case of 16-bit port:
      • image

Software Support

We provide demo code for demonstrating the usage of functions contained in PWM driver library. To run this example, follow these steps:

  1. Install the package from Package manager.
  2. Open example.
  3. It will take you to setups, so make one for your hardware.
  4. Choose adequate setup and the project will open.
  5. Program it by clicking on Flash.
  6. Press PA0 to increase duty ratio or PB0 to decrease it and see how it translates to the PWM pin LED.

ALSO FROM THIS AUTHOR

Magnetic Rotary 4 click

0

Magnetic Rotary 4 Click is a compact add-on board for accurate magnet-position sensing. This board features the AS5047D, an SPI-configurable high-resolution rotary position sensor for fast absolute angle measurement over a full 360-degree range from ams AG. The AS5047D is equipped with revolutionary integrated dynamic angle error compensation (DAEC™) with almost 0 latency and offers a robust design that suppresses the influence of any homogenous external stray magnetic field. It also comes with an onboard header reserved for incremental and commutation signals of their respective A/B/I and U/V/W signals alongside embedded self-diagnostics, including magnetic field strength, lost magnet, and other related diagnostic features.

[Learn More]

LTE IoT click

5

LTE IoT click is a Click board that allows connection to the LTE and 2G networks, featuring the compact form-factor SARA R410 LTE/2G module, which offers two LTE technologies aimed at Machine to Machine communication (M2M) and the Internet of Things (IoT).

[Learn More]

6DOF IMU 13 Click

5

6DOF IMU 13 Click is a compact add-on board that contains an eCompass that consists of a 3-axis linear accelerometer and a 3-axis magnetic field sensor. This board features the MC6470, a 6 DoF accelerometer, and a magnetometer sensor solution, from mCube Inc.

[Learn More]