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

Search:

Type: Posts; User: jpk

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    5,590

    Teensy2 has INT6 on pin24, this sketch works for...

    Teensy2 has INT6 on pin24, this sketch works for me:



    #include <avr/sleep.h>

    const int wakeup_pin = 24; // INT6 at PE6
    const int led_pin =11;

    elapsedMillis blink_stopwatch;
  2. Yes, it helps me saving pins and code. I reset a...

    Yes, it helps me saving pins and code. I reset a DOGM204 display with it (through a voltage divider) and also Teensies 3.5/3.6 powered from DC-DC supplies. Without the MCP100s I couldn't get them...
  3. Maybe a MCP100-315 or -475 could handle the reset...

    Maybe a MCP100-315 or -475 could handle the reset independently from the teensy...
  4. Jay, just to make sure: you want a teensy pin to...

    Jay, just to make sure: you want a teensy pin to drive the reset pin of your ADC: so it's not about resetting the teensy, right?
  5. Replies
    11
    Views
    5,423

    Many thanks, I will try to improve my code with...

    Many thanks, I will try to improve my code with your suggestions!
  6. Replies
    11
    Views
    5,423

    What does your code mean: ...

    What does your code mean:

    waveformMod1.frequency(freq * osc1_oct * transpose);
    waveformMod2.frequency(freq * osc2_oct * detune);
    waveformMod3.frequency(freq * osc3_oct);
    How...
  7. Replies
    11
    Views
    5,423

    Many thanks, this helps a lot. When mentioning...

    Many thanks, this helps a lot.

    When mentioning that FFT was faster than Yin I used default value for AUDIO_GUITARTUNER_BLOCKS. Did you try if adding FFT helps to improve speed?
  8. Replies
    11
    Views
    5,423

    Ok, I am just interested in some detail such as...

    Ok, I am just interested in some detail such as how often do you read notefreqs result, do you adjust gain permanently for a steady level, does EQ the input help reducing wrong estimates, what...
  9. Replies
    54
    Views
    25,776

    Actual Debian with actual Arduino: usb audio out...

    Actual Debian with actual Arduino: usb audio out and analog in / i2c in both on T3.6 and T4 work well. I now get much cleaner signals! Thanks for the enhancements.
  10. Replies
    4
    Views
    3,568

    Thanks! Thats exactly one of the reasons I did...

    Thanks! Thats exactly one of the reasons I did this project: available tuners with notes and cents give the impression you are in tune even if you arent at all by lighting green etc., so if a...
  11. Replies
    11
    Views
    5,423

    Great project! Would you be willing to share your...

    Great project! Would you be willing to share your code?

    For faster guessing of frequencies have a look at my project here:
    https://forum.pjrc.com/threads/60796...th-FFT-and-Yin

    With FFT my...
  12. Replies
    4
    Views
    3,568

    20046 Today I completed the wooden housing for...

    20046

    Today I completed the wooden housing for the T3.6 tuner...
  13. Replies
    4
    Views
    3,036

    Sort of :-) Recently I pulled out the load cells...

    Sort of :-) Recently I pulled out the load cells and fitted better ones. There is always something to improve...

    In my older posts you can see how I tried to write the pulse ramps by myself...
  14. Replies
    3
    Views
    1,714

    Apart from re-thinking the earth/gnd concept I...

    Apart from re-thinking the earth/gnd concept I found a solution to emi-protect pins, i.e. for reading buttons over long and noisy lines, see here.
  15. Replies
    4
    Views
    3,036

    [posted] music string winding device

    Here some info about my main project: a music string winding machine.

    It runs on 2 teensies, communicating via a serial line: a T3.5 controls the cockpit and handles display, buttons, calculations...
  16. Replies
    4
    Views
    3,568

    [posted] guitar tuner with FFT and Yin

    Here a tuner and frequency logger project I just completed.

    The tuner uses yin algorithm from the teensy audio library, fft frequency estimation from here (had to edit cpu defines for T4), a...
  17. Replies
    38
    Views
    16,387

    I already tried to report on the beta3 thread,...

    I already tried to report on the beta3 thread, but my post disappeared: on T3.6 Audio ADC input does not compile (vtable error).
  18. Replies
    67
    Views
    27,426

    Thank you so much, I really appreciate it!

    Thank you so much, I really appreciate it!
  19. Replies
    67
    Views
    27,426

    see here, it's available again since today:...

    see here, it's available again since today: https://www.tindie.com/products/onehorse/ics43434-i2s-digital-microphone/
  20. Replies
    67
    Views
    27,426

    Fantastic, many thanks, thats good news!!! :)

    Fantastic, many thanks, thats good news!!! :)
  21. Replies
    67
    Views
    27,426

    Thanks for the hint! The pulldown can't be...

    Thanks for the hint! The pulldown can't be enabled by pinMode...?



    Thanks! But I don't have space for an additional board...
  22. see this post for further details...

    see this post for further details
  23. Replies
    67
    Views
    27,426

    OK, I read all forum posts about the SPH0645 I...

    OK, I read all forum posts about the SPH0645 I could find and spend quite some hours on fiddling with it. The problem seems to be that SPH0645 violates i2s specs. At least in my case it spits out...
  24. Replies
    67
    Views
    27,426

    Hi Duff, in addition to what I stated in my above...

    Hi Duff, in addition to what I stated in my above post I also can't get your code from this post to work with i2s/i2sQuad as input.
  25. Replies
    67
    Views
    27,426

    Hi, it seems to me that something in the i2s...

    Hi,

    it seems to me that something in the i2s part of the audio library is broken, here is my code:


    #include <Audio.h>

    AudioInputI2S input;
    AudioAnalyzeNoteFrequency notefreq;...
  26. please help with mic board into audio library

    Hi,

    I want to use a single Adafruit SPH0645 mems mic board into the audio library on my Teensy 4 and managed to get it working, but only with i2s_quad with the following code:

    ...
  27. Replies
    88
    Views
    29,935

    On my machine I do the following: #include...

    On my machine I do the following:


    #include "TeensyStep.h"

    Stepper motor(48, 47);
    StepControl controller(5, 1000);

    int motor_steps_per_rev = 200;
    int motor_microstepping = 4;
  28. Replies
    88
    Views
    29,935

    I will try to give some examples... Here my...

    I will try to give some examples... Here my observations. The following works in master branch but not in dev-timer:
    #include "TeensyStep.h"

    Stepper motor(48, 47);
    RotateControl controller(5,...
  29. Replies
    88
    Views
    29,935

    I Did some more tests and found that estop (in...

    I Did some more tests and found that estop (in master branch) works only in one direction:


    #include "TeensyStep.h"

    Stepper motor(22, 41);
    RotateControl RotCtrl(5, 1000);
    StepControl...
  30. Replies
    88
    Views
    29,935

    Thanks a lot!! I think it's a good solution. I...

    Thanks a lot!! I think it's a good solution. I did some tests on my machine, everything works fine. Also the e-stop I can now execute faster without the delay!

    EDIT: just noticed that slow...
  31. Replies
    88
    Views
    29,935

    Thanks for fixing! And sorry for so many...

    Thanks for fixing! And sorry for so many requests...Yes, I think it's good to have. Some of my winding processes move really slow, for example when threading in the wires. With thin wires I could end...
  32. Replies
    88
    Views
    29,935

    At the moment I am using 2 rotate and 2 step...

    At the moment I am using 2 rotate and 2 step controllers for my 5 motors and get along with them if used carefully - but if I add a new motor (say for a future grinding device) I will get in...
  33. Replies
    4
    Views
    1,666

    If you figured out a reliable solution: would you...

    If you figured out a reliable solution: would you mind to post a code example and the values of the voltage devider?
  34. Replies
    88
    Views
    29,935

    Many thanks for your example! I played with it...

    Many thanks for your example! I played with it but couldn't do the following:
    #include "TeensyStep.h"

    Stepper a(22, 41);

    void setup() {
    RotateControl *rctrl_heap_1 = new RotateControl();
    ...
  35. Replies
    4
    Views
    1,666

    I would be interested in this as well!

    I would be interested in this as well!
  36. Replies
    88
    Views
    29,935

    Thanks for clarifying! I see! Does this...

    Thanks for clarifying!



    I see! Does this mean I also could delete a controller manually and define a new one within the scope, re-using the resources?
  37. Replies
    88
    Views
    29,935

    A new observation: moveAsync works only if...

    A new observation: moveAsync works only if stp.controller is defined in global space:


    #include "TeensyStep.h"

    Stepper motor1(22, 41);
    Stepper motor2(43, 42);

    void setup() {
    StepControl...
  38. Replies
    88
    Views
    29,935

    I can confirm: it works. Thanks again for the...

    I can confirm: it works. Thanks again for the great support!!!!
  39. Replies
    88
    Views
    29,935

    Thansk for fixing! But with the new version it...

    Thansk for fixing! But with the new version it seems I can't get callbacks working:


    #include "TeensyStep.h"

    Stepper motor(22, 41);
    StepControl controller;

    bool flag = 0;
  40. Replies
    88
    Views
    29,935

    Yes. I checked the master branch and it did only...

    Yes. I checked the master branch and it did only happen with the develop branch...



    I just tried: it's fixed! Many thanks!! It helps a lot in my multi layer winding applications when spooling...
  41. Replies
    88
    Views
    29,935

    I want to share another observation: if I issue a...

    I want to share another observation: if I issue a stop command during deceleration the motor would speed up and begin a new deceleration ramp:


    #include "TeensyStep.h"

    Stepper motor(22, 41);...
  42. Replies
    88
    Views
    29,935

    You are almost there :) Perfect, I added 2...

    You are almost there :)



    Perfect, I added 2 minor details...
  43. Replies
    88
    Views
    29,935

    That could be the case any time sooner or later...

    That could be the case any time sooner or later :cool: Thanks for letting me know!



    Please feel free to ad it!
  44. Replies
    88
    Views
    29,935

    I managed to prepare a small video, see here:...

    I managed to prepare a small video, see here: https://www.youtube.com/watch?v=SYRmfHMnmTE
  45. Replies
    88
    Views
    29,935

    I saw a difference with extremely slow speeds /...

    I saw a difference with extremely slow speeds / acceleration rates, and you also mentioned the "ugly asymmetry". I thought that was gone with my suggestion...?



    Thanks a lot, this is a very...
  46. Replies
    88
    Views
    29,935

    At fast winding speeds with thin wires (for...

    At fast winding speeds with thin wires (for example 0.12mm wires @ 3000~7000rpm) I get very slow acceleration rates for pitch changes. So what about this:


    if (targetPitch > oldPitch) {
    ...
  47. Replies
    88
    Views
    29,935

    At least it needs to be changed for the next...

    At least it needs to be changed for the next spindle speed change, so we could theoretically update it only before the spindle speed factor changes and keep all pitch changes with the old...
  48. Replies
    88
    Views
    29,935

    Wow, thank you, very convenient! I will play with...

    Wow, thank you, very convenient! I will play with this class and study it. One thing I noticed is that you call feeder.overrideAcceleration() now before feeder.overrideSpeed(): I am wondering if it...
  49. Replies
    88
    Views
    29,935

    Sorry to bother again with a code example, but I...

    Sorry to bother again with a code example, but I read so many times your explanations and still don't understand everything, so I put together another code example. What puzzles me is the difference...
  50. Replies
    88
    Views
    29,935

    I think you understood much better than me :cool:...

    I think you understood much better than me :cool:

    (BTW in the library src the overrides are listed under "Blocking movements"...?)

    Requirement #4 sounds good, but I am not sure because in any...
Results 1 to 50 of 96
Page 1 of 2 1 2