Gordy_website_02.jpg  Colleen_website_02.jpg   MENU.jpgMenu_Icon_03.jpgABOUT US.jpgOUR LOCATION.jpgClock_IMG_20151023_211824096_HDR_C_1_02.jpg PIR_20190702_144702_02.jpg TV_IMG_3118_03.jpg Gardena_R80Li_pic_02.jpg Electric_Fence_Energiser_02_IMG_0079.jpg Seeed XIAO 05.jpg Great Cow 02.jpg ConcreteCMS_Logo_02.jpg                                           

Bat Detector

BAT Detector

10 August 2018

While working on my Dog Ultrasonic Deterrent I needed or wanted a means of detecting Ultrasonic Sound.

I discovered Bat Detectors:

http://home.earthlink.net/~bat-detector/BatDetector.html

http://www.nutsvolts.com/magazine/article/june2011_berber

https://www.elektormagazine.com/labs/bat-detector-with-amplitude-recovery

https://hackaday.io/project/8353-worlds-smallest-bat-detector

 

This one is an ingeniously simple circuit.

http://www.micro-examples.com/articles/index.php/PicoBat

It uses the signal from an ultrasonic receiver to clock a microcontroller which is divided by 4 to toggle a little piezo speaker

For instance a 25kHz ultrasonic signal produces about 6kHz in the speaker.

So I decided to build one myself.

PicoBatG_01_schem.jpg

PCB 20180810_124924.jpg

After some tests I decided to add an amplifier for more sensitivity

DetUS_3V_02_Schem.jpg

PCB 20180904_141937.jpg

 

 

Here is my Basic main code. 
Used GCBasic, 12F1840, ultrasonic transmitter (I had lying around).
Maybe would be more sensitive if I had an ultrasonic receiver.

;Chip Settings
#chip 12F1840
#config OSC=ECL, FCMEN=OFF
'
Start:
'
set wpua5 = 0 'PU off
' ultrasonic sensor on PA5
'
dir porta.0 out ' piezo
dir porta.1 out ' piezo
dir porta.2 out ' LED for program test
'
set porta.0 0
set porta.1 1
set porta.2 0
'
Do Forever
    lata = lata xor 0b111
loop
'