Was hoping to see whether anyone may be able to help me with the following. I used the BR Ping/Bar30 sensors in combination with an Arduino Uno + LCD + Datalogging Shield to build a simple altimeter for our camera scooter. The idea was that it can help us keep consistent altitude while conducting diver-based underwater surveys, while at the same time logging altitude/depth every second.
I managed to get it all working except for the SD card logging: for some reason the Arduino freezes up when I try to use both the Ping and SD card reader. If I comment out the init_sdcard()
function - everything works fine (except of course logging to SD card). Similarly, SD card logging works fine when I comment out the init_sonar()
function. I can’t figure out what’s causing the conflict - as far as I know there are no overlapping/conflicting pins (I cut a trace on the datashield to reassign chipselect to pin 8).
Just wanted to post a link to the code here - to see if anyone spots something obvious that I missed? First arduino project for me - so any help would be greatly appreciated! Otherwise altimeter itself worked great - see short video snippet of it in action here.