Search results

  1. T

    Hardware Quadrature Code for Teensy 3.x

    Sorry for the necro. This is a great library, but there's one catch - tlb uses pointers and non-template functions in the headers. If you try to include the library in your sketch and into another library (e.g. trying to allow a communications library to use encoder data), you'll get a pile of...
  2. T

    Working: Semi-accurate "RTC" for Teensy LC from internal clock

    Thanks, that's good to note. I'll check into why that's happening to see if there's another solution. I can't speak to your questions about power draw, but I'll happily dig into the datasheet and try to verify what you found. My experience with other chips lines up with what you wrote.
  3. T

    New Stepper Motor Library

    Alright, after spending the day with this, there are some unexpected behaviors and room for improvement, but otherwise a solid library. Here's a sketch that uses an encoder connected to the output of the stepper motor. The stepper accelerates to some high speed, and if/when it stalls, it is...
  4. T

    New Stepper Motor Library

    This is a great library! I can see why Paul featured it! Really beautiful code; you have a great grasp of the language and very solid coding practices. My experience using it has been good so far. Examples compiled fine with Teensyduino 1.4.0 and Arduino 1.8.5. I couldn't get it to compile...
  5. T

    Discussion about a simple way to change the sample-rate

    Ha, this is exactly what I was working on in this thread. As usual, your solution is much better than mine (run-time adjustments to AUDIO_SAMPLE_RATE). Your solution works flawlessly, and it warps the audio if the sample rates don't match, like I was looking for. There have a been a number of...
  6. T

    Frank B's MP3 lib - changing sample rate

    Just speeding up and slowing down a song according to a sensor input. Silly little tool to help people keep a particular tempo
  7. T

    Frank B's MP3 lib - changing sample rate

    Oh, sorry, I meant other sample rates if you don't mind warping the audio. I'll take a look at downsampling when this project is over :)
  8. T

    Frank B's MP3 lib - changing sample rate

    Thanks, I found: if((mp3FrameInfo.samprate != AUDIOCODECS_SAMPLE_RATE ) || (mp3FrameInfo.bitsPerSample != 16) || (mp3FrameInfo.nChans > 2)) { //Serial.println("incompatible MP3 file."); lastError = ERR_CODEC_FORMAT; stop(); return lastError; } (line 142 of play_sd_mp3.cpp, in...
  9. T

    Frank B's MP3 lib - changing sample rate

    Hey, I'm working on a project where I'd like to be able to speed up and down the playback of a mp3 file - I don't care about the audio getting warped. I'm using Frank B's great MP3 library with the Teensy Audio lib (thanks to Frank B and Paul and everyone else who contributed! This is a really...
  10. T

    Working: Semi-accurate "RTC" for Teensy LC from internal clock

    Wow, thanks for putting in time to test my work! That's really generous of you! I'm definitely aware of the inaccuracy, and I appreciate the succinct solution you use for compensation. I wonder if we can use the compensation registers to improve the accuracy further, but that's for another time...
  11. T

    All things - Low Power

    Aha! I figured it out! My mistake was trying to read the before and after, and find settings that could persist through the library's adjustments. Snooze aggressively shuts things down for the sake of low power, which is great, since that's the point, but it shuts down the timer and resets the...
  12. T

    All things - Low Power

    It sounds like you understand what I'm running into: "how long was I asleep" with a digital wakeup (in my case, with a timer wakeup as backup), and I appreciate that. The RTC could be one solution if we're really clever about it (and I definitely don't put that past you), but I was thinking if...
  13. T

    All things - Low Power

    Hey duff, I really love the library. I've learned a lot about embedded development just by trying to understand how it all works and why you designed it the way you did; I really appreciate the work you have and continue to put into it. In my project, a processor is logging PWM inputs and sends...
  14. T

    Working: Semi-accurate "RTC" for Teensy LC from internal clock

    Hey all! I decided to get the LC's RTC module "working". Maybe it'll help someone else do something interesting. Now, to be extremely clear, the reasons Paul and others have decided not to support the LC's RTC are very good - you can't just use an external crystal like with the 3.1/3.2, you...
  15. T

    MPU6050 & teensy 3.1 problem

    I just wanted to say thank you for posting this. I've read basically every thread on using the MPU6050 DMP with Teensy 3.1/3.2, and was able to get the code working by switching libraries with various other fixes. Still, I couldn't figure out why reading any pin would only return low, even when...
Back
Top