Bat Simulator

If you have made a Raspberry Pi bat recorder/detector, you will want to test its functionality.  Without bats around to try it, you’ll need to simulate bat calls.

The best device for simulating bat calls is Tony Messina’s Bat Chirp.  His website also has details on making bat detectors.  A recent search for the Bat Chirp was unsuccesful – it may have been removed from his site.

An (inferior) alternative can be made quite cheaply with an Arduino Pro Mini, a 40kHz Ultrasonic Transmitter and 3 AA batteries. The Arduino can be programmed to emit ultrasonic test pulses that can be used to check the functioning of a bat recorder/detector.

Bat Simulator


Circuit Diagram

Circuit diagram of the Bat Simulator:


Arduino sketch

Bat Simulator for checking ultrasonic microphones
Connect +ve terminal of transducer to Arduino Pin 8, and -ve to GND

int times = 0;
boolean flag = false;

void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);

void loop()
if (flag == false)
for (times=0; times < 5; times++)
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
flag = true;
tone(8, 60000, 1);

 Bat Simulator video

Video of the Bat Simulator in action.  A heterodyne Bat Detector is being used to playback the sound, and the Multi-Function Raspberry Pi Bat Recorder/Detector is being used to display the frequencies.

Bat Simulator Spectrogram and Peak Frequency Graph:

The spectrogram and peak frequency graph of the simulated bat calls shows the range of frequencies produced:


figMake a Bat Simulator

Contact me if you are interested in making a Bat Simulator.  Here’s one in a small, slim project case (6.5cm x 6.5cm x 1.9cm).