Skip to content

N-rwal/OrangePi-zero-2W-PWM-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OrangePi-PWM-Control

image

A simple hardware PWM control system for Orange Pi zero 2W using WiringOP and Python.

Setup Instructions

  1. Clone the repository
git clone https://github.com/N-rwal/OrangePi-PWM-Control.git
cd OrangePi-PWM-Control
  1. Install WiringOP (if not already installed)
sudo apt update
   
sudo apt install wiringpi

Test with: gpio readall

image

  1. Build the C library
./build.sh
  1. Run the Python script
python3 pwm_control.py

The example script will generate a sweeping PWM signal up to 12% at 50 Hz on the wPi pin 21 which is the PMW1 pin.

Suitable for a servo.

image

Custom Usage

Modify pwm_control.py to set different PWM pins, frequencies, or duty cycles.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors