Search results

  1. F

    Help understanding mixer gain()

    Yeah, I struggle with that too, its just not a very elegant implementation. It might help thinking about what happens under the hood, to better conceptualize it: - All audio signals are 16 bit values. - The "mixer" object simply adds the signals together. - any part of the signal which exceeds...
  2. F

    Overflow Errors when using AudioSynthWaveform & pt8211 for creating Stereo Signals

    Overflow Errors when using AudioSynthWaveform & pt8211 for creating Stereo Signals Hi Everyone With some colleagues I'm working on a haptic feedback application. We're using the audio library to generate the control signals of the haptic actuators. We're running into bugs that look like...
  3. F

    Bug in Analog Read for Teensy 3.5

    Hi Everyone Me and colleagues were having problems with reading analog signals on the teensy 3.5. There seemed to be a 'jump' around the mid-way point, if moving from 0 to ~512, the value would jump up to ~560. If moving from 1023 to ~512, the value would jump down to ~550. See the below...
  4. F

    SerialFlash Library - Max Number of Files allowed?

    So 1 page stores 16 times 3 floats + 1 uint32. So I if I wanted to store 32 uint16, I would need 64 bytes, so I could have a page consisting of 4x64. (OK, I do really just need to play around with this and see it work in practice. Thinking out loud here now). I do think I have all the bits. I...
  5. F

    SerialFlash Library - Max Number of Files allowed?

    OK, I was thinking about it incorrectly. I just assumed that the array index of the 'page' variable was referring to the data-frame (or to what you refer to as "page"). I initially didn't quite follow your logic on how you were initializing things. I think your comment cleared things up. I'll be...
  6. F

    SerialFlash Library - Max Number of Files allowed?

    Hi Manitou I tested your code and I am getting behavior that I don't understand. I modified what you sent me a bit, to better understand whats going on: #if 1 pages_written = 0; samples = 1; t = millis(); while (pages_written < pages) { // get IMU data ax = 1; ay = 2; az = az...
  7. F

    SerialFlash Library - Max Number of Files allowed?

    Cool. I will check this out later tonight. Thanks for all your help.
  8. F

    SerialFlash Library - Max Number of Files allowed?

    @manitou Sadly I am so spoiled by Arduino and Processing that I struggle with 'regular' C. If you could show me, in code, how you would use the struct that you wrote in your previous post, it would save me a potential large time experimenting. I'd be super grateful.
  9. F

    SerialFlash Library - Max Number of Files allowed?

    Thanks manitou. I will play with your example. What I need to do will be a little bit more involved, but if I can figure out what you're suggesting, that should help, cause the logging will be essentially equivalent. I'll be collecting information from more data-sources, maintaining specific...
  10. F

    SerialFlash Library - Max Number of Files allowed?

    Reporting back: Yes, you *can*, but its apparently not a good idea. Setting the file limit to 60k (which is what I had in mind) grinds to a halt (individual files take multiple seconds to write). Setting the file limit to 6k led to various errors (multiple files were not read correctly)...
  11. F

    SerialFlash Library - Max Number of Files allowed?

    Thanks for your answer and apologies for cross-posting. Is there a way to check how much space is being allocated for file-names?
  12. F

    SerialFlash Library - Max Number of Files allowed?

    Would be great if PaulStoffregen could weigh in on this. I can probably change things around to stay within the file limits, but that would make some other aspects of the project more complex. I'm super inexperienced with this, so changing code is a lot of work, but understanding unforeseen...
  13. F

    SerialFlash Library - Max Number of Files allowed?

    Hi Everyone Project using prop shield + teensy 3.2 + SerialFlash Library I'm trying to write a program that logs data to Flash. I need it to run for ~ 2 hours, I am planning to adjust my sampling rate to max out the available storage. I had planned to write each data-frame to a file and then...
  14. F

    Storing images or image data on SD (gaming)

    I've been just playing with some of the example code provided here: https://learn.sparkfun.com/tutorials/teensyview-hookup-guide If you scroll down you will find a section about interfacing the display with the prop shield. In that code there is an example of storing images to Flash memory. Is...
  15. F

    Recording Data to Flash using Prop Shield

    Recording Data to Flash using Prop Shield [SOLVED] OK, so I am slowly learning how to use this... As I had trouble finding a file that would help me get started (the examples provided are all too complex for me) I created one. I assume it would help others do their baby steps as well. Maybe...
  16. F

    Recording Data to Flash using Prop Shield

    Hi Everyone I only have very basic programming skills, but would like to do the following: - When the teensy is turned on, it collects some data (for example from the analog input). - At regular intervals this data is stored to flash. - At a later time, I read all the data to my PC via Serial...
Back
Top