Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: swarfrat

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    655

    Pin change interrupt - minimum duration?

    I'm wanting to do some Piezo TDOA detection using a Teensy LC (if it matters). I'm planning up to about 5 piezos - 3 for TDOA and 2 others for external noise rejection. The 3 TDOA sensors are spaced...
  2. Replies
    8
    Views
    2,621

    I hooked it up to pins AGND, 3.3V, and A9. Yes...

    I hooked it up to pins AGND, 3.3V, and A9. Yes it's biased to 1/2 VCC but A9 reads that range anyway - it can't read negative. Raw reading shows bias reads 512 over time, as I'd expect it to. The...
  3. Replies
    8
    Views
    2,621

    The source in the first post will do it -...

    The source in the first post will do it - removing the analogread for clarity will result in the app running as expected, but never going below 10 once the mic clipped.



    #include <Audio.h>...
  4. Replies
    8
    Views
    2,621

    Thanks for clarifying that it makes sense - I was...

    Thanks for clarifying that it makes sense - I was just trying to independently verify what was going on. AudioAnalyzePeak however still seems to get stuck with a non-clearing peak value of 10 in the...
  5. Replies
    8
    Views
    2,621

    Audio lib hanging

    I'm hesitant to say it's the audio library hanging, but on my Teensy 3.0, I have a couple problems with this simple program (below). I've got an Adafruit MAX4466 board wired up to pin 9, running off...
  6. Replies
    6
    Views
    3,956

    Doh. and thank you.

    Doh. and thank you.
  7. Replies
    6
    Views
    3,956

    Ok, still getting poor sample rates (about 345 Hz...

    Ok, still getting poor sample rates (about 345 Hz on a 96 Mhz Teensy 3.0) Here's my code:


    #include <Audio.h>
    #include <Wire.h>

    AudioInputAnalog microphone(A9);
    AudioRecordQueue rq;...
  8. Replies
    6
    Views
    3,956

    Thanks - that's sufficient for the audio analysis...

    Thanks - that's sufficient for the audio analysis portion of my project. But .. I looked at the AudioAnalyzePrint class, and besides verbage saying not to use it - I couldn't seem to get it to tell...
  9. Replies
    6
    Views
    3,956

    fast peak detection

    I'm doing an SPL meter stoplight, and using analogRead() with a Teensy 3.0, I'm only getting about 390Hz sample rate. I've got analogReadResolution(6) and analogReadAveraging(0), running open loop...
  10. You could, but that's actually more complex if...

    You could, but that's actually more complex if the circuit already has a teensy involved.
  11. You're just wanting a noise activated trigger?...

    You're just wanting a noise activated trigger? You can just sample, rectify, filter and level trigger off that. Doesn't require anything as complex as FFT unless you want to trigger off specific...
  12. Yes, I'm familiar with the Hall Effect, and did...

    Yes, I'm familiar with the Hall Effect, and did look at a couple Hall effect sensors I was familiar with from past projects - but nothing I was familiar with would survive hundreds of amps while...
  13. Current Measurement robust against massive overcurrent

    I'm thinking about throwing a teensy on my car battery - I have something which appears to be draining the battery, but it's not always on. (Charging, Starter, Battery all check out fine). So I want...
  14. Replies
    2
    Views
    2,992

    I've been doing some more thinking, and I like...

    I've been doing some more thinking, and I like the per string processing rather than just doing 2 octaves down on a summed mix. The highest frequency I'd need to detect is 784 Hz, the lowest possible...
  15. Replies
    2
    Views
    2,992

    Audio - 2 octave down pitch shift

    I was looking to do an octave pitch shift, and I have a couple teensy 3.0's laying around. Basically this is supposed to be a polyphonic octave effect, and I'd like to shift down 2 octaves, fixed...
  16. Replies
    46
    Views
    42,392

    I can build frBlink inside the arduino IDE. I can...

    I can build frBlink inside the arduino IDE. I can build a simple arduino blink from a makefile. But I can't seem to build frBlink from a makefile. It builds if I insert a main, but it doesn't run....
  17. Replies
    4
    Views
    3,903

    A google search brought me to Freescale's web...

    A google search brought me to Freescale's web site, and found MK20DX128VLH5 in the K20_50 family, but I too came up blank on any sort of SDK to make spacewrench's makefile happy.
  18. Replies
    1
    Views
    1,214

    Is this a multi input single output system, and...

    Is this a multi input single output system, and is that three nested loops, orthree parallel loops, selecting the most restrictive output? Describing the problem sounds like the latter case, but it...
  19. Replies
    23
    Views
    14,598

    It's on! (Like Donkey Kong, since there's a 10...

    It's on! (Like Donkey Kong, since there's a 10 character min post limit)
  20. Replies
    1
    Views
    1,214

    multivariable pid

    I'm using a teensy3 as a glorified power supply monitor/controller/logger. One of my outputs is a 0-450V linear supply, limited to 20mA or 8W, and I'd like software control of the limits. I'm using...
  21. Replies
    3
    Views
    5,175

    Linux loader is giving me fits. At least one "you...

    Linux loader is giving me fits. At least one "you should never see this error, contact Paul" error, plus numerous infinite waits that can't be killed with even kill -9.
  22. Another approach might be to just LPF at 1.5 khz,...

    Another approach might be to just LPF at 1.5 khz, sample at 3khz, and do your envelope tracking in software.
  23. I have really limited cycles right now (with a...

    I have really limited cycles right now (with a baby in the house). But it frustrates me enough that I end up using my available cycles trying to get a makefile working to build it as static libs...
  24. I thought it was a simple overlay. However, I...

    I thought it was a simple overlay. However, I don't use the arduino executable either. It's klunky and frustrating for anyone used to a real editor. But Arduino source is downloadable too. The...
  25. Is there a reason that it's only delivered in an...

    Is there a reason that it's only delivered in an executable? I know this is common place in the Windows world, but it's really disturbing for some of us ingrained this way.
  26. Replies
    10
    Views
    4,209

    I'm still in the sketching phase, but I'm...

    I'm still in the sketching phase, but I'm planning to run NiMH instead of LiPo because I can run boost converter and avoid the futzing that comes with extracting 3.3v out of a battery that can range...
  27. Thread: Teensy 3 CRC

    by swarfrat
    Replies
    4
    Views
    3,789

    Thanks, I'll check out the AES lib. Up until...

    Thanks, I'll check out the AES lib. Up until recently I was under similar impression about CRC. I'm not sure how I picked up the idea that it could work for authenticating the sender. (Seed perhaps)...
  28. Thread: Teensy 3 CRC

    by swarfrat
    Replies
    4
    Views
    3,789

    Teensy 3 CRC

    I've looked over the docs on the CRC module a few times, (mostly on the tiny phone screen, which never helps). I think I can figure out how to feed it stuff and get results out. I'm a bit unsure of...
  29. If you do run it of an ATX power supply you might...

    If you do run it of an ATX power supply you might want to consider running off the 5V standby (purple) line instead. This is designed to run low power devices while the primary 5V and 12V rails are...
  30. Replies
    4
    Views
    3,534

    In the microcontroller world this is usually done...

    In the microcontroller world this is usually done with interrupts, but its not a 1:1 translation from multithreading. I'm looking at rewriting my arduino app to be driven off the IntervalTimer...
  31. Replies
    11
    Views
    5,969

    On more reflection... The oversampling is way...

    On more reflection... The oversampling is way over. Even if i did attempt the extraction of harmonics... The higher the frequency goes, the less important it becomes. In standard tuning, a 24 fret...
  32. Replies
    11
    Views
    7,619

    I figured it was a simple divider. ...

    I figured it was a simple divider.
    http://joflaherty.org/MidiExprPedal/Midi%20Pedal%20schematic.png

    A couple options - you treat the input pin as a capacitive sensor at startup, see if it's...
  33. Replies
    11
    Views
    7,619

    Sorry - I meant an unused (but non switching) pin...

    Sorry - I meant an unused (but non switching) pin on the connector, not the micro. You could use the ring for it if you weren't already using it for signal. Of course, if you have need of that info,...
  34. Replies
    11
    Views
    7,619

    It's common (no pun intended) to just short them...

    It's common (no pun intended) to just short them to ground, though a series resistor can reduce switching transients. I've seen some amazingly clever things done with just a humble switching jack....
  35. Replies
    11
    Views
    7,619

    I'd strongly consider a switching jack over a...

    I'd strongly consider a switching jack over a pullup on an analog pin, especially if the other end isn't really low impedance
  36. Replies
    4
    Views
    3,313

    I have a stockpile of them I use for more mundane...

    I have a stockpile of them I use for more mundane purposes. The pullup (or pulldown, if its active low) swamps the power dissipation calculation. However...

    You really should also consider a...
  37. Replies
    4
    Views
    3,313

    Last reply dissapeared. I've read of someone...

    Last reply dissapeared. I've read of someone doing something similar for their child. For an adult you strongly need a slight but nonzero chance of detecting zombies just far enough away that you...
  38. Replies
    7
    Views
    6,054

    It works, but only in the installed directory (in...

    It works, but only in the installed directory (in this case /usr/local/arduino-1.04/hardware/teensy/cores/teensy3). Thanks - that's helpful. I see now (with a bit o sleep and that clue I had missed)...
  39. Replies
    7
    Views
    6,054

    Teens3 Makefile

    I'm trying to get my program building via Makefile. I've stripped it down to this amalgamation of modified sample code.#include <unistd.h>

    #include "mk20dx128.h"
    #include "usb_serial.h"
    #include...
  40. Replies
    11
    Views
    5,969

    Yes. They're buffered and go out the 13 pin jack....

    Yes. They're buffered and go out the 13 pin jack. The number of frets doesn't really help unless you're doing something like a capacitive or resistive input sensor, and that doesn't get you velocity...
  41. Replies
    11
    Views
    5,969

    No - but I do have hex pickups (piezo). Actually,...

    No - but I do have hex pickups (piezo). Actually, in an effort to get pitch tracking latency down, I was thinking something like
    96khz sample rate
    96khz [BUFF] ... rollover shifts average into...
  42. Replies
    11
    Views
    5,969

    Ah drat. I actually bought it for more mundane...

    Ah drat. I actually bought it for more mundane project, but the idea of way more power than an AVR based Arduino sorta got to my head, and I started having delusions of grandeur. Especially when I...
  43. Replies
    11
    Views
    5,969

    Teensy3 - fast multichannel adc

    Most microcontrollers with multiple analog inputs mux a single adc. How fast can i sample if I need to switch between inputs?

    I'm not certain exactly how much precision I need. The source is...
Results 1 to 43 of 43