V
V
Vadim Khubuluri2020-06-16 19:51:27
Arduino
Vadim Khubuluri, 2020-06-16 19:51:27

How to light individual LEDs on a 4x4x4 Arduino cube?

I've been trying to write sketches for the Led Cube on Arduino for a month now, and all in vain. Tell me, what code should I write to light individual LEDs?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grigory Boev, 2020-06-16
@ProgrammerForever

Everything is 100% dependent on how the cubed diodes are switched. See the diagram, track where you need to apply + power (log 1), and where 0 to turn on a specific diode. And in accordance with this, set the legs on the controller.
To save conclusions, shift registers are usually used in such cases, for example, 74HC595 as a serial-to-parallel converter. They are a little more difficult to control than just a kick, and the speed decreases proportionally, but there is the possibility of theoretically unlimited expansion of the conclusions along 3 wires

V
VT100, 2020-06-16
@VT100

Telepaths on vacation - what cube model, what sketches?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question