View: 31575|Reply: 9

i am trying to control PWM with my orangepi zero

[Copy link]

4

threads

6

posts

49

credits

Novice

Rank: 1

credits
49
Published in 2016-11-27 16:36:37 | Show all floors |Read mode
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

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-4-1 13:36:38 | Show all floors
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


10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-1-23 20:44:53 | Show all floors
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

1

threads

4

posts

21

credits

Novice

Rank: 1

credits
21
Published in 2017-1-22 10:25:46 from mobile | Show all floors
i need help Android Qpython3 How to gpio pin ON/OFF?  what library can work? my board is OPI+2E with Android 4.2

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-1-31 21:41:05 | Show all floors
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

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-2-2 19:37:56 | Show all floors
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.

0

threads

3

posts

20

credits

Novice

Rank: 1

credits
20
Published in 2017-3-25 05:59:56 | Show all floors

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.

6

threads

32

posts

626

credits

Senior member

Rank: 4

credits
626
Published in 2017-6-25 09:25:53 | Show all floors
I made PWM C Library for H3/H2+ Sunxi SoC.
And it can control using command line(pwmc).

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

OPi's: 3 Zero, 4 One, 1 Plus, 1 PC2, 1 cam
OPi on transit: 1 One, 1 2G-IOT, 1 2G IOT Touch LCD
3 RPi 3, 1 RPi 2, 3 RPi cam

0

threads

1

posts

10

credits

Novice

Rank: 1

credits
10
Published in 2018-2-6 00:06:36 | Show all floors
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

0

threads

22

posts

88

credits

Registered member

Rank: 2

credits
88
Published in 2023-6-23 17:45:54 | Show all floors
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
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list