Git Product home page Git Product logo

sw_pwm_nordic's Introduction

Software Pulse-Width Modulation

This project was created during the Nordic Workshops 2023 in Kraków.

Tested on nRF52840DK

nRF52840DK

Note: if you want to use PWM and your board supports it, it will be much better to use hardware PWM.

Description

Pulse-Width Modulation is a method of controlling the average power delivered by an electrical signal. The average value of voltage (and current) fed to the load is controlled by switching the supply between 0 and 100% at a rate faster than it takes the load to change significantly.

After successful building you will be able to see smoothly blinking LEDs: LED1 and LED4:

blinking LEDs

You can also control the brightness of LED2 with BTN1 and BTN2. It can be turned off with BTN3 and turned on with BTN4.

Building

west build -b nrf52840dk_nrf52840
west flash

More about building you can find here.

You can also use nRF Connect for VSCode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.