Arduino Expansion.png, oct. 2023

 

Expansion shield for Arduino UNO
Version : 14/04/2023

This little board and the source code are part of a CS Bomb-like project to be used in Air-Soft games.
In some situations, the Arduino UNO does not have enough IO ports or you you want to keep some of them free.
This shield adds 16 outputs and 16 inputs. To control them, only 6 wires are needed:

KEY_CLK:   Clock to shift the value to QH (positive edge)
KEY_LATCH: Capture the 16 inputs (active low)
KEY_DATA:  Serialised data (Q7 first, Q0 last)

LED_CLK:   Clock to shift the value from SER (positive edge)
LED_LATCH: Set the 16 output bits
LED_DATA:  Serialised data (Q7 first, Q0 last)

Two source files are provided as example.
Outputs.cpp / Outputs.h
Inputs.cpp / Inputs.h

You could have a look the main.cpp file (pseudo main).

A README.txt contains basic instructions to use inputs and outputs.

Have fun !
Buzz