Cours:SaéSBC robotAutonome : Différence entre versions
Ligne 17 : | Ligne 17 : | ||
***echo 3 > /sys/class/pwm/pwmchip2/export | ***echo 3 > /sys/class/pwm/pwmchip2/export | ||
***modifier duty_cyle et period | ***modifier duty_cyle et period | ||
+ | |||
+ | =tfmini= | ||
+ | |||
+ | *https://github.com/TFmini/TFmini-I2C-MasterExample_Arduino/blob/master/TFminiReadData/TFminiReadData.ino |
Version du 30 septembre 2024 à 21:48
pi5 et pwm
- config : modifier le fichier /boot/firmware/config.txt
dtoverlay=pwm-2chan,pin=18,pin2=19
- vérif :
dtoverlay=pwm-2chan,pin=18,pin2=19
- https://gist.github.com/Gadgetoid/b92ad3db06ff8c264eef2abf0e09d569
- https://community.element14.com/products/raspberry-pi/m/files/148385
- https://forums.raspberrypi.com/viewtopic.php?t=359251
- pwmchip2
- channel 2 => gpio18
- echo 2 > /sys/class/pwm/pwmchip2/export
- modifier duty_cyle et period
- channel 3 => gpio19
- echo 3 > /sys/class/pwm/pwmchip2/export
- modifier duty_cyle et period
- channel 2 => gpio18