2
2
20strannik082018-12-19 17:22:02
Python
20strannik08, 2018-12-19 17:22:02

What is the correct way to signal 74hc595 via Raspberry and python 2.7?

Please help dear! Stepper motors and a lot of garbage are connected to the Raspberry pi, there are not enough ports. For unloading, I decided to use 74HC595. Could you give some simple example of HIGH and LOW pins on 74HC595 (on python 2.7)? Two cases are of interest, when the 74HC595 is alone in the circuit, and when there are several of them included (like a "garland").
The register clings to the raspberry on three pins, and at the output it gives 8. What should I apply to these three pins?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-12-19
@20strannik08

I didn’t work with raspberries, even more so on python, but the shift register works somehow like this:
A logic level is applied to the data input D.
A pulse is applied to the clock input and the input level D is written to the register.
This is repeated 8 times.
Then the Latch pulse flips all 8 bits from the register to the outputs.
But IMHO raspberry is a high-level machine, it’s not worth it to do kicking. It is better to transfer such "iron" tasks to some stm32 and communicate with it via USB. And he will have more legs and he will be much closer to real time, it is a pleasure to turn the same steppers with timers!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question