RaspberryPI - OpenWinch/OpenWinch-Python GitHub Wiki

tested on RaspberryPI 1B. based on Rasbian Lite Pi-electrical

Install

Enable PWM

sudo systemctl disable alsa-state.service
echo "dtoverlay=pwm" >> /boot/config.txt
ls /sys/class/pwm
ls /sys/class/pwm/pwmchip0

cat /sys/class/pwm/pwmchip0/npwm

Enable I2C (for LCD)

sudo apt-get install -y python-smbus
sudo apt-get install -y i2c-tools
echo "dtparam=i2c_arm=on,i2c_arm_baudrate=400000" >> /boot/config.txt

Interfacing Options > Advanced > I2C > Enable

and reboot

sudo i2cdetect -y 1