Quantcast
Viewing all articles
Browse latest Browse all 4825

Beginners • Re: Rpi 5 and Pan Tilt hat

but i didn`t find any new folders in /sys/class/pwm/pwmchip6 folder. Can you give an idea what should be created to check it existance?
First check if your dtoverlay works.

using lsmod you should see the pwm_pca9685 module loaded!

Code:

daniel@Pi5:~ $ lsmod | grep pwmpwm_pca9685            49152  4regmap_i2c             49152  1 pwm_pca9685pwm_fan                49152  0daniel@Pi5:~ $ 
if you don't see the pwm_pac9685 in then something is wrong.
N.B. The pca9685 needs to be connected when you boot the Pi5!

"echo 0 >/sys/class/pwm/pwmchip6/export" should create the folder pwm0 , 1 will create pwm1 , etc....

Well the latest push I did, I put a delay of 500ms after exporting all pwms. that should suffice enough.
Thank you. Now I understand how does it work. Looks like to enable it just enought to put 1 inside 'enable' file which lokated in
/sys/class/pwm/pwmchip6/device/pwm/pwmchip6/pwm0 folder or
/sys/class/pwm/pwmchip6/device/pwm/pwmchip6/device/pwm/pwmchip6/pwm1 folder relatively.
That was a surprise for me. Didn`t expect that folders will be located like this. Okay, it was my first experience with linux Image may be NSFW.
Clik here to view.
:D

Statistics: Posted by jryba — Sun Mar 17, 2024 9:25 pm



Viewing all articles
Browse latest Browse all 4825

Trending Articles