Bat Detector Overhaul: Automation

In England, the number of bats is declining, and has been for the last 100 years.

Organisations like the Bat Conservation Trust are always looking for volunteers to gather and post information on bat numbers and species in your local area.

While I’m neither a bat expert nor a bat volunteer, I thought it might be interesting to automatically gather data from a fixed location (…as this would save me poncing around the fields in the dark!).

By using a fixed, automatic system, it should be possible to gather data all night, every night, without losing sleep or suffering hyperthermia.

Results could then be compared on a month-by-month and possibly year-by-year basis.

The big idea

Bat Detector Overhaul

I’m thinking about a system located in (and on) my garage, with a roof or mast-head unit feeding back to a Pi based recorder inside the garage.

The mast-head unit consists of a microphone and a bandpass filter. This just needs to cover the range of frequencies that I’m interested in (probably 20 – 80kHz). The output is fed down into the garage where it is amplified (to the very edge of instability!) and divided down to frequencies within the audio range.

The divide by 32 output from the divider is fed to the Raspberry Pi gpio and used as a trigger to log events and record audio, if the calculated [bat] frequency is greater than 20kHz.

The log file will just consist of detected frequencies (greater than 20kHz) with associated time-stamps. The audio files will be 10 second WAV files.

The only bit that is worrying me is the microphone. How do I site this out in the open without it being destroyed by rain water?

Maybe an ordinary electret mic is not suitable, and I need to find a specialised IP65 transducer.

Raspberry Pi interface

The interface between the bat detector divider and the Pi is very simple, and I’ve already got this running.

The audio reaching the Adafruit USB Audio mic input is around 200mV, and alsamixer can be used to adjust the audio level as required.


For more detail: Bat Detector Overhaul: Automation

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top