How to connect a membrane keyboard to a microcontroller? How to turn on the 7 segment indicator?
Is it possible to do this on one microcircuit? It turns out yes!
This video is a continuation of the previous one, here again the MCP23S17 microcircuit is involved.
This is an expander of I / O ports, works through the SPI interface.
One port is used for working with a membrane keyboard, in the second it gives signals to a 7-segment indicator.
All this is controlled by the STM32 microcontroller.
Part of the equipment:
1) Microcontroller stm32f103c8t6, brains of the system
2) Batteries 3.7 V 2 pcs with a switch
3) 7 segment indicator KEM-5161AG
4) Microcircuit MCP23S17
5) Membrane keyboard 4 * 4, 16 buttons
6) Pulse converter LM2596S
+) Connecting wires, straight arms and a desire to figure out how everything works here
Creative Commons Attribution 4.0 license to use the track Chance, Luck, Errors in Nature, Fate, Destruction As a Finale (artist: Chris Zabriskie): [ Ссылка ]
Source: [ Ссылка ]
Artist: [ Ссылка ]
# stm32 #keil #microcatchan # stm32f103c8t6 # mcp23s17
STM32 MCP23S17 KEYBOARD | EXTENDED USE | #41
Теги
stm32diybluepillcmsisstm32 firmwaremcp23s17mcp23s17 arduinomcp23017mcp23s17 spimcp23s17 spi examplemcp23s17 datasheetmcp23s17 schematicmcp23s17 addressmcp23s17 stm32 examplemcp23s17 keyboardspi keyboardstm32 spi keyboardmcp23s17 led 7led blinkstm32 ledled 7 segment display arduinostm32 led7-segment7-segment display7-segment decoder7-segment led driver7-segment display codestm32 keilkeil uvisionmicrocatmicrocatchanstm32f103