daniyal876 post at 2016-11-27 16:36:37

i am trying to control PWM with my orangepi zero

HI
i am trying to find any library by which i can control orangepizero PWM0 but i am failed please can any one help me to find?
i am new with these devices. and once i found blinky.c program but i tried to understand that code but fail.
Please guide me

nopnop2002 post at 2017-4-1 13:36:38

Edited by nopnop2002 at 2017-4-3 23:02

iboguslavsky replied at 2017-3-25 05:59
There is a new PWM driver available (it uses UART0_RX pin on the UART breakout header):

https://g ...
I made PWM C Library for H3/H2+ Sunxi SoC.
And it can control using command line(pwmc).

https://github.com/nopnop2002/pwmlib-opi


nopnop2002 post at 2017-1-23 20:44:53

Edited by nopnop2002 at 2017-1-23 21:01

The port which can be used in PWM0 is UART0_RX.
UART0_RX (PA5) is middle pin of the UART header.
Locating the UART header is here.

https://linux-sunxi.org/Xunlong_Orange_Pi_One

iibb01 post at 2017-1-22 10:25:46

i need help Android Qpython3 How to gpio pin ON/OFF?what library can work? my board is OPI+2E with Android 4.2

nopnop2002 post at 2017-1-31 21:41:05

Edited by nopnop2002 at 2017-1-31 21:57

jps replied at 2017-1-31 19:32
But acording with this document, the PWM port is:but i can not find the way to control, for example ...
I have a data seat of H3 here.

http://linux-sunxi.org/images/4/ ... _Datasheet_V1.2.pdf

There is an explanation of PWM in P74, but there are no functions of PWM in PA6.

You can use 16 Channel 12-bit PWM/Servo Driver-I2C interface of PCA9685.It's only $1.8

nopnop2002 post at 2017-2-2 19:37:56

jps replied at 2017-2-2 02:51
Yes, but then, what about this:
PA6 (SIM_PWREN/PWM1/PA_EINT6)


I think this is a mistake.

iboguslavsky post at 2017-3-25 05:59:56


There is a new PWM driver available (it uses UART0_RX pin on the UART breakout header):

https://github.com/iboguslavsky/pwm-sunxi-opi0.git

Have a look at the examples also.

bozden post at 2017-6-25 09:25:53

I made PWM C Library for H3/H2+ Sunxi SoC.
And it can control using command line(pwmc).

https://github.com/nopnop2002/pwmlib-opiThank you for sharing this...

skravtsov post at 2018-2-6 00:06:36

Hi all, I forked PiZyPWM library, so now we got Python PWM library for Orange PI. Tested on Orange Pi Lite with motor drivers. Feel free to use and fork https://github.com/evergreen-it-dev/orangepwm

kanehad12 post at 2023-6-23 17:45:54

Unfortunately, many parents don't know the basics of car seat safety, and as a result, their children are at risk. That's why we've created Carseatdaily, a comprehensive resource for parents who want to keep their children safe in the car. best convertible car seat for small cars
page: [1]
View full version: i am trying to control PWM with my orangepi zero