T
T
Tenebrius2019-07-24 13:49:05
Raspberry Pi
Tenebrius, 2019-07-24 13:49:05

How to connect many buttons and diodes to Raspberry Pi 3 b+?

There is a need to connect the following things to the raspberry:
~ 10 buttons (remove the signal is pressed / released)
~ 3 rotary controls (like a volume control)
~ 3 three-position switches
1 rotation sensor (not sure what it is called, like a volume control, only it can rotate endlessly in one direction, you need to consider the speed)
~ 5 LEDs
The number of connected elements may change in one direction or another.
As I understand it, it is usually supposed to be connected via GPIO, but the number of pins is limited there. What are the options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radjah, 2019-07-24
@Radjah

> ~10 buttons (take a signal pressed / released)
Matrix keyboard, for example.
> 1 rotation sensor (I'm not sure what it's called, like a volume control, it can only rotate endlessly in one direction, you need to count the speed)
An encoder or an encoder is called.
> ~5 LEDs
You can hang on i2c PCF8574 and drive diodes through optocouplers.

K
kalapanga, 2019-07-24
@kalapanga

You would first practice connecting each of these elements to the Raspberry Pi separately. And then you don’t know their names, but you already want everything at once and a lot. Learn everything gradually. Then you will find out, for example, that raspberries do not have their own ADC and just like that, without an additional circuit, 3 potentiometers (your ~ 3 rotary controls (like a volume control)) it makes no sense to connect that even with ordinary buttons due to the fact that they are "in quite different places "You can run into pitfalls.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question