A simple bell tower simulator setup - for installation into a tower of church bells for silent ringing practice.
Main simulator flow [Bell Sensor -> Arduino -> RaspberryPI -> Speakers]
plus optionally [RaspberryPI -> PC] for serial output to a pc or laptop running additional bell ringing software
Bells can also be silenced using the simulator webpage to turn off bells that you want to ignore
Default bell sounding delays can be configured within the nodered flow for handstroke and backstroke. A reset to handstroke button is on the simulator webpage
Photo Library shows how this system has been installed in the Sherfield English tower in Hampshire UK.
The sensors being used are cheap and readily available KY-032 IR obstacle sensors (others could be used with changes to the Arduino code). The KY-032 sensor is particularly good because R5 and R6 in the image below allow you to alter sensitivity and distance of detection.
The Raspberry PI is connected to the Arduino via a USB cable therefore providing power to it. The Arduino in turn also powers all the KY-032 sensors (they are very low power). 3 wires are required to each sensor - Ground, +5v and Sense. The Ground and +5v can be shared from the Arduino to all the sensors but each sensor requires its own Sense wire run independently to the Arduino. Therefore 8 bells require 10 wires from the Arduino to where the bells are hung. Cheap multicore house alarm cable is recomended for this purpose
The Arduino monitors each Sense wire from the sensors via the Arduino pin it is connected to. If the Sense pin changes then the bell has swung past the sensor and the audio sound should be triggered following a suitable delay in milliseconds.
A simple NodeRed flow on the Raspberry PI is used to monitor the USB serial line comming from the Arduino - the Arduino outputs a sinlge character '1' to 'x' representing each bell sensor trigger. The NodeRed flow uses the bell number to trigger the approviate audio wav file for that bell to be played. The NodeRed flow also attempts to forward the same bell number ie '1' to 'x' to a second serial port so that optionally a computer/laptop can be used to run bell ringing software such as Virtual Belfry.
If you have a Raspberry PI v3 B+ and at least an 8GB flash card then you can use the binary images provided to fast start your setup. You can use the Raspberry PI Imager to install it on a suitable flash card
Once installed and successfully booted you will need the following id's and passwords
Your PI should start up with the wifi AP belltower active. Connect to it and direct your browser to http:\\10.42.0.1 or http:\\tower
Any version of a Raspberry PI is suitable for this purpose but one with a headphone socket is preferable
Note: This code assumes an Arduino Nano but can easily be modified for other Arduino device.
The Photo Library shows how this system has been installed in the Sherfield English tower in Hampshire UK.