Vis tid eller bogstaver med dette 4x7 segments display
4 x 7 Segment display
Dette display benytter sig af en driver IC med navnet TM1637. Denne IC sørger for at kontrollere hver eneste LED der er indbygget i displayet på den rigtige måde.
Du kan via kode få fuld kontrol over hvilke symboler der skal vises og hvilken lysstyrke segmenterne skal have.
Tekniske specifikationer
Operativ spænding | 3.3V-5V DC |
Operativ temperatur | 0°C - 100°C |
Dimensioner | 45mm x 21mm x 10mm |
Vægt | 7.2g |
Kode Eksempel
import tm1637
from machine import Pin
tm = tm1637.TM1637(clk=Pin(2), dio=Pin(4))
tm.show('10') #display the number 10 on the display
Pinout
Venstre pin port
Nummer | Navn | Spænding | Rolle |
---|---|---|---|
1 | GND | 0V | Negativ forsyning |
2 | VCC | 3.3-5V | Positiv forsyning |
3 | DIO | 3.3-5V | Data ind og ud |
4 | CLK | 3.3-5V | Clock |
Hvordan fungerer den?
Referencer
Billeder og forklaring: https://lastminuteengineers.com/tm1637-arduino-tutorial/
Micropython kode: https://github.com/mcauser/micropython-tm1637
Datablad: http://www.datasheetcafe.com/tm1637-datasheet-pdf/
TM1637 Micro Python Library: https://github.com/mcauser/micropython-tm1637/blob/master/tm1637.py
Vis tal med TM1637 og ESP32: https://www.robotique.tech/robotics/display-a-number-on-tm1637-display-with-esp32/
Inspiration og kommentarer
Er du faldet over links eller lignende, som kan være relevant for dine medstuderende så send os en mail på nini@kea.dk