New answers tagged

0 votes

Raspberry Pi pwm fan control

https://raspberrypi.stackexchange.com/a/133849/8697 explains how to turn a fan on/off at a given temperature. Normally PWM fans use varied speeds but these need a controller and there are Device Tree ...
Milliways's user avatar
  • 59.5k
0 votes

Multiple (ramped) square waves, independently controlled (multi stepper motor control)

I solved this problem, PWM didn’t cut it for me, as I wanted motors to run independently, potentially being of different kind and max PPS and torque. I also needed to reach max speed as soon as ...
juanmf's user avatar
  • 101
0 votes

Can’t control servo with Raspberry Pi 5

Try Joan's lgpio which has timed PWM. There are examples https://abyz.me.uk/lg/py_lgpio.html#tx_servo. This is also the library used by the latest gpiozero V2 (which has examples).
Milliways's user avatar
  • 59.5k
0 votes

Can’t control servo with Raspberry Pi 5

Noobie here, I'm struggling with something similar, I tried to connect a RFID-RC522 module on a pi 5. Apparently, the new chip doesn't support the old RPi.GPIO library. You need to use GPIOZERO for ...
Bruh255's user avatar
1 vote

Is it possible to have 4 hardware PWMs on RPi 5?

The Pi5 does have appear to have 4 PWM channels on pwmchip2. pwmchip0 has 2 of which are accessible on the 40 pin header. It appears only one pair can be activated at a time (unlike earlier Pi). One (...
Milliways's user avatar
  • 59.5k
1 vote

Disable automatic fan speed control of the Raspberry Pi 5 to control it manually

I also searched for a few days and didn't find what I was looking for. So for me (with the official Raspbian) and without any modifications it actually works amazingly easy. I use the official case ...
H-OS's user avatar
  • 11
0 votes

Multiple (ramped) square waves, independently controlled (multi stepper motor control)

This seems like using a sledgehammer to crack a nut. Waves is overkill. All you need to do is generate a square wave using gpioPWM(user_gpio, dutycycle) which you can do on multiple pins. Set ...
Milliways's user avatar
  • 59.5k

Top 50 recent answers are included