# Arduino GPS and Accelerometer Data Problem

**URL:** <https://forum.arduino.cc/t/arduino-gps-and-accelerometer-data-problem/698632>\
**Category:** Programming\
**Created:** [March 3, 2021, 7:03pm UTC](https://forum.arduino.cc/t/arduino-gps-and-accelerometer-data-problem/698632 "2021-03-03T19:03:49Z")\
**Posts on this page:** 3\
**Page:** 3

<div class="post-metadata">

**Author:** ![tomparkin](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomparkin/32/757629_2.png) [@tomparkin](https://forum.arduino.cc/u/tomparkin)\
**Post date:** [March 19, 2021, 7:55pm UTC](https://forum.arduino.cc/t/arduino-gps-and-accelerometer-data-problem/698632/41 "2021-03-19T19:55:20Z")

</div>

I think you've misunderstood what I'm suggesting.

Each time you write you're sending a certain number of bytes to the SD. You can know what this number is (either by coding such that it's a fixed/known quantity, or by calculating it somehow).

So on a write-by-write basis you can validate that the SD card writes the number of bytes you expect, and use that to toggle the LED.

This said, you probably need to validate the approach by messing with the SD card wiring and checking the library reacts in the way you expect. This is the approach I'd look into, but I don't know for sure it'll work in all circumstances. I suspect you'd be better off ensuring the wires don't come adrift than trying to flag up the error from the software domain.

---

<div class="post-metadata">

**Author:** ![drmpf](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/drmpf/32/1126438_2.png) [@drmpf](https://forum.arduino.cc/u/drmpf)\
**Post date:** [March 20, 2021, 12:41am UTC](https://forum.arduino.cc/t/arduino-gps-and-accelerometer-data-problem/698632/42 "2021-03-20T00:41:45Z")

</div>

As a side issue, if you get any problems with SD card startup or writes, check there are 10K pullups on signal leads and add a 100uF low ESR cap across the SD power lines close to/on the SD board. The SD can draw \>100mA in spikes.  
Well actually 10uF to 47uF would probably do but 100uF worked for me so I stopped there.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 18, 2021, 12:42am UTC](https://forum.arduino.cc/t/arduino-gps-and-accelerometer-data-problem/698632/43 "2021-07-18T00:42:01Z")

</div>

Closed on July 18, 2021, 12:42am UTC

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.arduino.cc/t/arduino-gps-and-accelerometer-data-problem/698632.md?page=2)
