![]() Inspired by this article I wrote a script for the Pi: sudo nano examples/segment. ![]() git clone & cd max721Īfter the installation sudo python setup.py install Dengan kata lain, arus dibawa oleh elektron yang. Ketika arus mengalir, elektron bermuatan negatif mengalir. Sel elektrokimia, tabung sinar katoda, dan tabung sinar-X adalah beberapa contoh di mana kita menemukan anoda dan katoda. If you have already done this (for example because of the LED dot matrix) you can, of course, skip it. Anoda dan katoda diperlukan untuk pengaturan listrik di mana aliran arus terlibat. Soldered to a breadboard it looks like this:įirst of all, we install a library for the MAX7219 / 7221 so that we can control it more easily. I have only 4 segments connected to SEG A – SEG D. If you have less than 8 segments, you will go from right to left all through and some SEG pins will be empty. SEG DP => V + the leftmost segment (only for 8 segments).SEG B => V + the second segment from the right.SEG A => V + the segment on the far right.DIG 7 => Connections DP (parallel to all).DIG 0 => Connections A (parallel to all).Usually, for a cathode display it would be DIG 0 – DIG 7 for each of the V+ of a display (therefore also maximally 8 segments per MAx7219) and SEG A to SEG DP connected parallel to the respective connections of the segment display (SEG A to all pin A’s of the segments, etc.).But since anodes are now polarized the other way round, we also have to swap the connections: In addition, the structure of such a display In addition, the structure of such a display (to make sure the pins are the same, you can test each pin on two 1.5V batteries in series, V+ on the positive pole and the respective pin on the negative pole, which V + pin you connect does not matter): Now it goes to the connections between the 7-segment display and the MAX7219. wait for 2.5 ms (for a refresh rate of 100 Hz) set LOW the cathode-controlling output. set HIGH the output that controls that digits cathode through the NPN transistor. RPi Pin 6 (GND) => Pin 4 and Pin 9 (GND) The algorithm is as follows: drive the 7 anodes with the appropriate signals for one of the digits we want to show.RPi Pin 2 (5V) with 10k ohm resistor => Pin 18 (ISET). ![]() The connection with the Raspberry Pi looks like this: Let’s take a look at the datasheet of the IC first. if necessary soldering tools and solder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |