Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • microderm's Avatar
    04-17-2019, 12:02 AM
    Ok, I use one buffer. It never fills up as it is emptied long before that eventuality. I tested my theory of SPI conflict when reading the sensor data. I commented out the sensor read and filled the array with fake...
    16 replies | 337 view(s)
  • microderm's Avatar
    04-16-2019, 10:13 PM
    (2) The accelerometer interrupt: I'm not pushing the limits. I designed the system to have idle time, as sometimes it needs it. I call the SD code from the main loop, not in response to an interrupt. I...
    16 replies | 337 view(s)
  • microderm's Avatar
    04-16-2019, 09:36 PM
    Yes, I believe I have. Utilities is just for conversion functions etc. Yes, the use of String here is just for debug. When commented out, it crashes just the same. Yes, that's why it's time to either confirm...
    16 replies | 337 view(s)
  • microderm's Avatar
    04-16-2019, 07:33 PM
    Yes, it's always sensible to question the simple things first before digging deep, but here my utility function does the appropriate checks so as not to overrun the buffer (I checked when writing it). Even if it didn't,...
    16 replies | 337 view(s)
  • microderm's Avatar
    04-16-2019, 02:34 PM
    I hope the code snippets I've posted succinctly describe what I'm trying to do and how I'm going about it? From here, I would like to understand in what ways interrupts will cause problems. For example, I read that...
    16 replies | 337 view(s)
  • microderm's Avatar
    04-16-2019, 02:09 PM
    An SD file is opened and remains open until recording is stopped. All data is carefully parsed into char arrays of fixed size and inserted into a large char array. The char array is written to the SD card. The data...
    16 replies | 337 view(s)
  • microderm's Avatar
    04-16-2019, 12:48 AM
    The accelerometer uses an IntervalTimer to get regular readings. It does not call any other functions, but I am not using the SPI.usingInterrupt(interrupt) code, as I don't know how to get the interrupt number from the...
    16 replies | 337 view(s)
  • microderm's Avatar
    04-16-2019, 12:38 AM
    Yes, one of the interrupts calls a function in the main .ino file. The GPS module attempts to allow Teensy to get accurate timing by finding the relationship between the system mills() and GPS UTC time using the PPS...
    16 replies | 337 view(s)
  • microderm's Avatar
    04-15-2019, 08:54 PM
    I'm using Teensy with various devices including an accelerometer (SPI1), an OLED (SPI0), GPS (USART) and the SD card for data logging. The accelerometer is read using an IntervalTimer interrupt to get frequent, regular...
    16 replies | 337 view(s)
No More Results
About microderm

Basic Information

About microderm
Location:
London
Interests:
Sports computing
Occupation:
Programmer

Statistics


Total Posts
Total Posts
32
Posts Per Day
0.14
Last Post
SD, SPI and Interrupts 04-17-2019 12:02 AM
General Information
Last Activity
04-17-2019 12:02 AM
Join Date
10-03-2018