/batdetect

My Own Bat Detector

Primary LanguageCMIT LicenseMIT

BATDETECT

Project for an DIY Bat detector based on ultrasound spectrum analysis.

Hardware

RP2040 RP2350 Pins used

st7789 is using SPI instance spi1

Signal Pin
CS 9
DC 8
RST 7
BL 6
TX 11
CLK 10

SDIO card is using (see hw_config.c)

Signal Pin
D0 2
D1 3
D2 4
D3 5
CMD 1

Vero/Stripboard layout

Drawn with the highly recommend DIY Layout Creator (available as Flatpak, Mac and Windows). DIY Layout Creator file

stripboard view

Credits

The software depends on the Raspberry pico SDK Version 2. kissfft no-OS-FatFS-SD-SDIO-SPI-RPi-Pico

Possible Improvements

  • Set time on files correctly: see get_fattime. But where to get the time from ?
  • Obsolete with pico2?: Have an PIO program when reading ADC to store 3 bytes only
  • Obsolete with pico2?: Use 256 FFT, but have the load shared in both cores
  • Should use subdirectry rather root dir
  • Datalogger only
  • GPS data

Bugs

  • Some green lines on the lower display
  • Orientation is wrong

Notes on Performancs

  • kissfft took 153ms to compute
  • meow_fft took 134ms to computerec