Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nano Pi Neo Core PWM in Kernel &.X

Featured Replies

Good morning,

I have a NanoPi Neo Core that I want to use to generate a PWM wave. As far as I understand, the pin for this is PA5, which is shared with UART. However, by using the corresponding overlay, the UART would be disabled, and PWM would be enabled. Is that correct?

What would be the next steps to verify that this is correct and to generate the PWM wave? Is there a specific command to do this?

Thanks for your help, and best regards!

Hi MastinZgZ,

 

You would need to make sure the overlay has a pin control node to set PA5 to PWM function. Given this is most likely used for serial console as it is UART0, you should ideally route console output to another Serial port if available. When set up correctly you should be able to configure PWM output via /sys/class/pwm/pwmchip0. Then pin first has to be exported before it can be used and you also have to be in super user mode to configure the behavior.

 

Hope this helps

 

Ryzer

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.