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

Search:

Type: Posts; User: janbor

Search: Search took 0.00 seconds.

  1. I think you are correct. I find that I am unable...

    I think you are correct. I find that I am unable to install systemd-devel providing the libudev.h file needed to compile TyQt too. I can do a cat /dev/ttyACM0 so it appears I have proper rights, but...
  2. Indeed I see the /dev/ttyACM0 choice. I can read...

    Indeed I see the /dev/ttyACM0 choice. I can read from the Teensy using the serial monitor in the IDE (or other ones). When I try to upload compilation goes well, but at the end I get the following...
  3. I am afraid this is not a viable option for me. I...

    I am afraid this is not a viable option for me. I have to be able to do this through USB or else I may have to ditch Teensy as my platform... That would be disasterous as I already have spent 6...
  4. I have tried TyQt, but I cant make it work - I...

    I have tried TyQt, but I cant make it work - I cant even compile it. Doing ">python configure.py" crashes when I say "yes". Apparently I need to have a working "sip" in my PATH. What is a "sip"? I...
  5. I see. No, I have no such thing running. Before I...

    I see. No, I have no such thing running. Before I upgraded to Fedora23 I did, though. I could have several cat's doing "cat /dev/ttyACM*" but the arduino IDE would work even so... The only thing I...
  6. I already have copied the file...

    I already have copied the file https://www.pjrc.com/teensy/49-teensy.rules to the locations specified in the same file (I have tried both). Do I need more?

    The teensy may be running the standard...
  7. How to upload without pushing the button on Teensy 3.1

    I could do this before I formatted my disk and installed Fedora 23, but now I have to push the button for arduino-1.6.5-r5 to upload the program. Can I fix this?

    I have found that if I use the...
  8. Replies
    4
    Views
    3,096

    Too bad. OTG (on-the-go) has gotten fairly easy...

    Too bad. OTG (on-the-go) has gotten fairly easy to do with arduino and it opens up a lot of cool possibilities - you can use your phone, or tablet, to program, interact or display data from the...
  9. Replies
    3
    Views
    989

    Do you mean something like this:

    Do you mean something like this:
  10. Replies
    3
    Views
    989

    Sub micro timing

    Hello. I need a timing that is more accurate than micros(). That is; I need to wait for a duration of 0 to 1 full second doing nothing, and then at a given time call a function. I know beforehand for...
  11. Replies
    7
    Views
    1,304

    3889 have tried to replace the...

    3889

    have tried to replace the "delayMicroseconds(1);" with a simple arithmetic operation in case the delayMicroseconds were to cause the interrupts, but it does not help.
  12. Replies
    7
    Views
    1,304

    Thanks. I'm looking at it, but I need precise...

    Thanks. I'm looking at it, but I need precise writing not reading (that will come later). I do:



    and the write rate I get is not stable. For the most part it is quite good, but ever so often...
  13. Replies
    7
    Views
    1,304

    Ok, I will. I care only a little about the actual...

    Ok, I will. I care only a little about the actual sampling frequency (it is good enough as it is), but if the sampling frequency changes during sampling I'm in trouble.
  14. Replies
    7
    Views
    1,304

    Crystal for timing

    I'm trying to sample an analog signal as fast as possible simply doing:


    I keep the CPU_SPEED constant at 120 MHz, but even so the sample rate changes.
    Is this normal?
    I notice there is a...
  15. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    This is a really good piece of code. At 144 MHz...

    This is a really good piece of code. At 144 MHz it takes 3 ms to complete a 1024 cross correlation and peak identification. NICE.
  16. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    This is awesome. I'll get right on trying to...

    This is awesome. I'll get right on trying to implement/understand it. I'll let you know how it works. Thanks.
  17. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Indeed I was just realizing my confusion. I do...

    Indeed I was just realizing my confusion. I do indeed need the cross-correlation.
  18. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Wow. I would appreciate that very much.

    Wow. I would appreciate that very much.
  19. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Aha. This is good enough for me, as I'm to do...

    Aha. This is good enough for me, as I'm to do streaming data as well. I will have to learn this.
  20. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Forward AND backward in a single transform?...

    Forward AND backward in a single transform? Really?
  21. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Hmm. Really? Could you shed some more light on...

    Hmm. Really? Could you shed some more light on this? Could you write it using the Teensy Audio analyz_fft function?
  22. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    I'm not that sophisticated. I simply do this...

    I'm not that sophisticated. I simply do this, but I am fully aware the FFT-way is faster. I only need mono though.
  23. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Hmmm. Interesting. I too would like 200 kHz in...

    Hmmm. Interesting. I too would like 200 kHz in the future, but for now 44 is ok. I know it is possible, but I have never calculated the autocorrelation using fft. Maybe I should look into it. I...
  24. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    I would like 1024 samples (or possibly even...

    I would like 1024 samples (or possibly even more), but if 256 is possible I might try it... Have you done it?
  25. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Good idea. If I were to pursue this I would...

    Good idea. If I were to pursue this I would follow you suggestion. I have, however, decided to use the teensy simply to gather the data on an SD card and then use a laptop to do the processing after...
  26. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Did not work. I does work if the load on the cpu...

    Did not work. I does work if the load on the cpu is very low, otherwise the delay between receiving an audio_block_sample and calling record_queue's update() is not fixed. Turn's out I can tune the...
  27. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Interesting. Can I be sure there will be a fixed...

    Interesting. Can I be sure there will be a fixed time delay between the audio object and my new timestamp-object?
  28. Thread: Audio Timestamp

    by janbor
    Replies
    41
    Views
    8,319

    Audio Timestamp

    Im using teensy 3.1 with the audio shield to record audio. Im trying to process the audio, but the calculations are heavy so I end up loosing audio packets. This is fine, because I dont really need...
  29. Replies
    5
    Views
    1,213

    Ahh. Thanks. Btw: this one still says...

    Ahh. Thanks.

    Btw: this one still says milliseconds: http://www.pjrc.com/teensy/gui/?info=AudioSynthToneSweep
  30. Replies
    5
    Views
    1,213

    Also, the sweep can not handle negative sweeps: ...

    Also, the sweep can not handle negative sweeps: sweep(08,1000,900,1), and finally, the duration most certainly is not in milliseconds.
  31. Replies
    5
    Views
    1,213

    Thanks. I feel special. ;) Is this...

    Thanks. I feel special. ;)

    Is this careful/drastic approach necessary. I'm thinking a very small t_time and abs(t_hi-t_lo) is well defined and sometimes even useful - f.inst. when they are the...
  32. Replies
    5
    Views
    1,213

    AudioSynthToneSweep never ends

    If I do an AudioSynthToneSweep sweep(0.8, 1000, 1000, 1) the sweep never ends. This is because the tone_tmp and tone_incr is 0 and so the loop never triggers the end-check (if((tone_freq >> 32) >...
  33. Replies
    16
    Views
    4,717

    It appears you have a different version of i2c_t3...

    It appears you have a different version of i2c_t3 than me. I find this:

    // Set rate and filter
    #if F_BUS == 48000000
    switch(rate) // Freq SCL...
  34. Replies
    16
    Views
    4,717

    Thats because the library 'i2c_t3' in fact...

    Thats because the library 'i2c_t3' in fact require that you choose 24 or 48 MHz to work.
  35. Replies
    16
    Views
    4,717

    Cool. I read something about this in my search...

    Cool. I read something about this in my search for getting 16 MHz to work, but for now power consumption is paramount.

    NB. I did make the change in boards.txt though.... for future projects.
  36. Replies
    16
    Views
    4,717

    Wow. Excellent. That did the trick. Thank you...

    Wow. Excellent. That did the trick. Thank you very much. I really love the Teensy option to lower power consumption (I'll hook up my amp meter to verify :-) ).

    Sincerely, Jan
  37. Replies
    16
    Views
    4,717

    Very interesting. I compile 'blink' and I get the...

    Very interesting. I compile 'blink' and I get the same error... It's time I reveil that I have:

    > uname -a
    Linux nano 3.17.7-200.fc20.i686+PAE #1 SMP Wed Dec 17 03:53:33 UTC 2014 i686 i686 i386...
  38. Replies
    16
    Views
    4,717

    Nope. If I check 16 MHz and press Ctrl-R...

    Nope. If I check 16 MHz and press Ctrl-R (compile) I get the following:

    hardware/teensy/cores/teensy3/usb_dev.c:16:31: error: 'NUM_ENDPOINTS' undeclared here (not in a function)...
  39. Replies
    16
    Views
    4,717

    Underclocking teensy 3.1

    It is easy enough to set the clock frequency using the arduino IDE, but I am unable to set the lower frequencies (lower than 24 MHz) and still compile my code. I realize I have to turn USB off, but...
Results 1 to 39 of 39