Input controls
I’m intending that Sirima will run as a self-contained unit – it won’t use a computer display, but will have switches for the settings. until it gets used for real, I can’t be sure what features will be the most useful, but certainly I want to control:
- the number of bells that are being rung,
- the speed,
- the method or exercise being rung ; and
- let the ringers choose which bells they are ringing.
My thought is that I can control these with a multi-position switch or potentiometer which outputs a different voltage according to its setting. This is read by an analogue to digital converter. And there is a suitable one readily available, the MCP3008 which has eight input channels and uses the SPI interface of the Pi, so I could connect 8 input switches.
Multiplexing the output
Update 07/04/22
This got me thinking that I hadn’t investigated whether there is a chip that can control multiple output channels without using too many of the GPIO pins. One possibility is the SN74HC595N 8-bit shift register with 8 x 3-state (high, low, off) latching output registers. The 74HC259 is a directly addressable latch that might be even better. The outputs can source 35 mA: I thought this would be enough to drive my LEDs directly, just need limiting resistors, but I’ve realised that the total current from all the outputs is 70 mA, which is not be enough to drive all the LEDs at the same time. However, you can get a Darlington Driver Array chip (18-pin DIP) such as the ULN2801A, which can supply up to 500 mA per Darlington pair, more than plenty for my LEDs
I’m coming to realise that I can greatly simplify my circuit board by making use of these ICs which are remarkably inexpensive – I have been rather blinkered by out-of-date techniques!
If the machine is successful, it would be much easier to make another one using these techniques.

