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

Search:

Type: Posts; User: vladn

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    836

    There is one difficulty - Jacobsen MQE requires...

    There is one difficulty - Jacobsen MQE requires complex FFT which I run anyway, I can post the cfft code with the estimator, compatible with the audio lib (if you tell me where and how, I am bad at...
  2. Replies
    6
    Views
    836

    If you need to find a peak frequency at the...

    If you need to find a peak frequency at the sub-bin resolution there is a computationally efficient option, google "Jacobsen MQE". In the most recent paper he has options for different windows.
    If...
  3. Replies
    40
    Views
    6,572

    I want to clarify my previous question. I...

    I want to clarify my previous question. I frequently run 2 instances of the IDE to check examples but with a single Teensy connected. Would that still be a problem ? I am asking since I need to patch...
  4. Replies
    3
    Views
    610

    I do exactly that on T3.5, but in my case I...

    I do exactly that on T3.5, but in my case I compile for 24MHz and dynamically switch to 48MHz depending on the load. At minimum it requires a change to F_CPU via SIM_CLKDIV1 and millis() counter via...
  5. Replies
    40
    Views
    6,572

    Quick question - for those of us that connect...

    Quick question - for those of us that connect only one Teensy at a time (although of different types) does the issue above have any consequences ? Platforms - Windows 10, Mac, Linux.
  6. Sorry, can't help on this without digging into...

    Sorry, can't help on this without digging into the math textbooks. There probably is a jitter calc somewhere for simple fractional dividers. But if I can clearly see the Mclk edge jitter on the scope...
  7. "There is no cycle to cycle jitter or duty cycle...

    "There is no cycle to cycle jitter or duty cycle variance when the divide ratio is an integer or half integer, otherwise..." If you reduce the fraction by the GCD that precisely means that MULT could...
  8. It is not my personal rule, it is in the K6x...

    It is not my personal rule, it is in the K6x reference manual - only 1 and 2 in the MULT generate low jitter Mclk. In case MULT=2 the divider simply uses both edges of the reference clock. Any MULT >...
  9. There are multiple sources for the frac synth in...

    There are multiple sources for the frac synth in Teensy - F_CPU, F_PLL etc. For 180MHz it is F_CPU (I think), so the default Mclk = 180MHz * (16 / 255) = ~11.29MHz, and the SR is ~11.29MHz / 256 =...
  10. Frank, I am usually using the Audio library...

    Frank,

    I am usually using the Audio library "liberally" in the sense that I create a reduced copy of it in my local project library directory (only the files that I need) and then change them...
  11. I've tried to use the Teensy audio library in the...

    I've tried to use the Teensy audio library in the slave mode recently and it did not work properly. I modified the latest slave code such that Teensy was generating Mclk, but the codec was generating...
  12. For our SDR applications the sampling frequency...

    For our SDR applications the sampling frequency does not have to be exact as long as we know it exactly :) I actually use Si5338 synth on my board with a spare 4th output wired via 0-ohm to the I2S...
  13. Software switching the codec power supply...

    Software switching the codec power supply eliminated the occasional offset errors during full power-up, but did not help neither during USB downloads nor during Snooze deepSleep (I use it for...
  14. Replies
    49
    Views
    8,247

    Works for me, thanks much.

    Works for me, thanks much.
  15. I have the same exact problem with SGTL5000 I/Q...

    I have the same exact problem with SGTL5000 I/Q offset in my own superhet with DSP AF. Caused me tons of time and frustration - I initially thought that it is in my main code, then tried various...
  16. Replies
    49
    Views
    8,247

    This code fails only with a combination of beta4...

    This code fails only with a combination of beta4 and T3.5. Every other combination of software version and Teensy type give the correct result. Something to do with a memory expansion ?
  17. Replies
    49
    Views
    8,247

    Could someone please verify this simple sketch on...

    Could someone please verify this simple sketch on 3.5 on beta4 with expanded RAM. It works just fine on my 3.6 and 3.2, but fails specifically on 3.5:


    void setup() {
    Serial.begin(115200);
    ...
  18. Replies
    49
    Views
    8,247

    analogRead() is OK, there is some memory...

    analogRead() is OK, there is some memory corruption that did not show up in the previous versions (41 42.b3), still need to investigate...
    I think I narrowed it down to sprintf not accepting %.2f...
  19. Replies
    49
    Views
    8,247

    Something happened to the analogRead() in the...

    Something happened to the analogRead() in the beta4 - reads zeroes (works fine under beta3). I need to investigate further.
  20. Thread: GND vs AGND

    by vladn
    Replies
    15
    Views
    3,544

    Here is my experience: 1. If you know the...

    Here is my experience:
    1. If you know the circuit requirements precisely (and that usually means a discrete circuit design by yourself), it is possible to drop the noise / distortion quite a bit by...
  21. Q for Paul - can I use SGTL5k in my own RX "shield" ?

    Paul, would I violate something if I integrate the SGTL5k chip directly into my receiver "shield" using conventional Teensy pin assignments ? The reasons vs using your audio adapter are:
    - my...
  22. Replies
    101
    Views
    19,394

    I don't see ST3 as an IDE or even as a...

    I don't see ST3 as an IDE or even as a full-fledged development environment. The quality of plugins is rather uneven at the moment. But the editor core is fast, configurable, and looks nice on both L...
  23. Replies
    101
    Views
    19,394

    I've been using SublimeMerge for few days already...

    I've been using SublimeMerge for few days already and it is quite good, and it can be configured. Not quite as comfortable to me as W "Compare It!", mostly because I got accustomed to it for nearly...
  24. Replies
    101
    Views
    19,394

    I realized quickly that Stino is (unfortunately)...

    I realized quickly that Stino is (unfortunately) not quite ready.

    My second and critical problem is how to replace a very polished Tortoise GIT that I used for years and that easily integrates in...
  25. Replies
    101
    Views
    19,394

    I've played with Stino plugin for Sublime Text 3...

    I've played with Stino plugin for Sublime Text 3 and managed to build and upload one of the Teensy examples, all within the editor. Then I changed something minor in my setup and now the plugin hangs...
  26. Replies
    45
    Views
    13,757

    I've just tried 64bit Arduino+Teensyduino on my...

    I've just tried 64bit Arduino+Teensyduino on my Linux laptop - it is surprisingly much faster that the windows version on my main development desktop.
    Sorry for OT, but that's another nail in the w...
  27. Paul, here is my take on it. Please note that...

    Paul, here is my take on it. Please note that TimeTeensy3 does not have any comments at all, and that was what I was trying to use most of the time.

    /*
    To sync Teensy RTC to the PC host time with...
  28. Once I installed "Processing" and ran...

    Once I installed "Processing" and ran SyncArduinoClock.pde I've got the sync error down to about -1sec, which is fully acceptable for my project, so the problem is solved.

    Nevertheless I killed...
  29. Ok, figured it out after a lot of pain ... One...

    Ok, figured it out after a lot of pain ... One needs a separate tool called Processing, it has an IDE similar to Arduino (sketches). You need to run SyncArduinoClock.pde Processing sketch provided in...
  30. What is even more confusing is that I can not get...

    What is even more confusing is that I can not get anything back from the USB Serial, no matter how fast (or slow) I am sending the Serial.write(TIME_REQUEST).
    Tried 1.8.5/1.41 and 1.42b3 with both...
  31. syncing RTC to a PC via USB Serial, accuracy ?

    I have trouble getting a reasonably accurate time sync of the Teensy RTC to a PC host. Teensy is always behind the PC by the 0.5-5 minute range. I am using TimeTeensy3 example with no library mods...
  32. Replies
    11
    Views
    1,534

    Tried to load my chaining method circuit diagram...

    Tried to load my chaining method circuit diagram in the .png format but got a strange cryptic error from the uploader. Oh well...
  33. Replies
    11
    Views
    1,534

    dereckbc - do you need a permanently connected...

    dereckbc - do you need a permanently connected BMS or a an accurate charge monitor ? In the later case the circuit above will work just fine. In the former case it will run the pack out of balance...
  34. Replies
    8
    Views
    1,339

    The best place for such mux is Teensy itself....

    The best place for such mux is Teensy itself. Then there is no need to cut the trace host/device. But the pin functions change slightly - Vin to external power input only and Vusb to Vout (mux...
  35. Replies
    11
    Views
    1,534

    And the chain does not have to be optical (the...

    And the chain does not have to be optical (the most simple one requires 1 transistor and 1 resistor per module). The main point is to send the digital signal downward, not to multiplex analog...
  36. Thanks, I have both. I also have some low-temp...

    Thanks, I have both.
    I also have some low-temp SnBi solder paste that I can use to put a new resistor in without affecting other components.
  37. Replies
    11
    Views
    1,534

    Having an EE background I've killed few years of...

    Having an EE background I've killed few years of my spare time on RC hobby (helicopters), and then another few years on electric bikes... There is no simple and clean high precision solution to your...
  38. Replies
    12
    Views
    1,045

    I've installed 1.42b3 into a separate directory...

    I've installed 1.42b3 into a separate directory and switched to teensy_sermon. It does indeed detect the "reappearing" serial port, thanks Paul !

    It took me a while to get the delays dialed in. I...
  39. Replies
    45
    Views
    13,757

    Thank you.

    Thank you.
  40. Replies
    45
    Views
    13,757

    On a windows system can it be installed in a...

    On a windows system can it be installed in a different directory ? I'd like to have both the 1.41 and 1.42b3 on the same computer.
  41. Paul, what is the "case code" for the 470ohm resistor in series with the LED on 3.5 ?

    The LED is shared with the RX line when Teensy is used with the audio adapter. It can not be turned off. I want to replace the series resistor with something ~10k. I have SMD rework tools, just need...
  42. Replies
    8
    Views
    1,339

    There are fancy ICs that allow automatic power...

    There are fancy ICs that allow automatic power source switching, but a simple jumper is the best. During the development I run both Teensy and my board from the USB power 90% of the time (jumper ON).
  43. Replies
    12
    Views
    1,045

    I am not in a big hurry on the monitor restart,...

    I am not in a big hurry on the monitor restart, can probably wait for 1.42 release, especially since I have to patch few files in the core libraries for my frequency hacks to work properly. Have...
  44. Replies
    12
    Views
    1,045

    Ok, after few mandatory host reboots I got it...

    Ok, after few mandatory host reboots I got it almost working. It is based on the register access sequence from the Snooze libary. I had to fiddle a bit with the delays around the USB disable-enable...
  45. Replies
    12
    Views
    1,045

    I was thinking along these lines. My concern was...

    I was thinking along these lines. My concern was how the host reacts to this if it is done on the fly (while connected to the host using HID driver). In the sense that I want to use USB Serial...
  46. Replies
    12
    Views
    1,045

    No, I simply want to stop clocks to all unused...

    No, I simply want to stop clocks to all unused peripherals to save power in a battery RX project.
    I will eventually use all or parts of the Snooze library to implement a full standby. However I also...
  47. Replies
    12
    Views
    1,045

    Tried it but the USB (and in fact Serial) work...

    Tried it but the USB (and in fact Serial) work just fine after Serial.end() :). It is the USB HID Serial, not the hardware UART.
    I want to power down the USB peripheral. I know how to disable/enable...
  48. Replies
    12
    Views
    1,045

    gracefully stop/restart USB ?

    Is there a way to gracefully stop/restart K6* USB controller on the fly, such that host OS (Windows, Linux) would recognize and handle stop/restart events correctly.
  49. It took some effort but the dynamic 24/48...

    It took some effort but the dynamic 24/48 switching seem to work. I have used a 24MHz compile setting and then modified only the core/system clock. I did not change the 24MHz bus clock since it...
  50. Thanks Paul, You gave me a good starting point....

    Thanks Paul,
    You gave me a good starting point. Basically at 16ksps audio path I fit into 24MHz CPU speed, but with occasional USB Serial lock-up that requires an effort to recover from...
Results 1 to 50 of 94
Page 1 of 2 1 2