Questions tagged [dtoverlay]
8 questions
5
votes
1 answer
Turn off GPIO fan when the temperature lowers by more than 5 degrees
I am able to trigger my Raspberry Pi 3B's fan to turn on at 50 °C with the following line in /boot/config.txt:
dtoverlay=gpio-fan,gpiopin=3,temp=50000
However, it automatically turns off again when the temperature has dropped by 5 °C when it gets…
Paradox
- 153
- 4
2
votes
0 answers
Changing SPI mode from multi to single on Raspberry Pi 5
I'm trying to connect my Raspberry Pi 5 to Arduino via SPI inteface.
As a reference, I've used connection scheme and code from this manual on penguintutor and it worked like a charm.
But in my project SPI0 bus will be connected to display, so I…
42isanswer
- 21
- 2
1
vote
0 answers
Issue with TCA8418 Keypad on Raspberry Pi - Only Receiving MSC_SCAN Events
I am working with a TCA8418 keypad controller connected to a Raspberry Pi via I2C. The keypad is an 8x8 matrix, and I have buttons connected to row 7. My goal is to detect key events properly, specifically KEY_UP, but I am only receiving EV_MSC…
Florian Berndl
- 111
- 2
1
vote
2 answers
How to set Hardware PWM Pins
I need a fairly deterministic PWM duty cycle. I don't believe it's rocket science to use hardware PWM.
Numerous sources tell us that we can modify /boot/config.txt by adding
dtoverlay=pwm-2chan
which defaults to PWM0 = GPIO18 and PWM1 = GPIO19. We…
KDM
- 718
- 1
- 9
- 24
0
votes
1 answer
MCP23017 overlay error -EIO: can't write IOCON 32
I’m trying to set up an MCP23017 GPIO expander on my Raspberry Pi running latest raspbian, but I’ve run into an issue. Here’s what I’ve done:
I updated the /boot/firmware/config.txt file as follows:
dtoverlay=mcp23017
Rebooted the system.
After…
Test
- 1
0
votes
0 answers
Cannot set pull down on RPI4 using overlay
As my device is using interrupt pin (active high), I'm trying to set pull down resistor on the interrupt pin (GPIO4), however for some reason it does not work. Here is my devicetree overlay:
/dts-v1/;
/plugin/;
#include…
bielu000
- 119
- 1
0
votes
0 answers
Cannot determine pins to use when connecting 3 SPI devices to Pi 5
I am trying to connect 3 SPI devices to my pi 5, they are all RFID-RC522 modules and so they all have the same device id, so I put them on separate busses.
I researched and selected these three overlays for the /boot/firmware/overlays/config.txt…
spl
- 101
- 1
-1
votes
1 answer
raspberry pi zero 2w inconsistent GPIO configuration after DTO settings
i am trying to add Basic Audio Output to a Raspberry Pi Zero 2W. I followed the same metod proposed in many tutorials using Device Tree Overlay :
1st step adding :
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
in the…
bbd 666
- 109
- 6