Author Topic: How to write from Ultrasonic sensor to SD Shield?  (Read 1933 times)

pararah

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to write from Ultrasonic sensor to SD Shield?
« on: March 07, 2014, 01:10:36 AM »
Anyone know how to write data from Ultrasonic sensor to SD Shield??

edorphy

  • RFduino Full Member
  • ***
  • Posts: 86
  • Karma: +0/-0
    • View Profile
Re: How to write from Ultrasonic sensor to SD Shield?
« Reply #1 on: March 09, 2014, 10:43:20 AM »
Are you using a ping sensor or a 4 pin like hc sr04?

There are some SD card examples. You should be able to calculate the distance using the ping example in sensors > ping.

Create a file
Open a file
write to a file
close file